Python Forum
Budget optimization in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Budget optimization in python
#1
I am trying to perform a budget optimization on equation I have, and I do not have much python experience.

My equation is the top one in this link: https://imgur.com/a/F2gnPUK . I have all the values for alpha(hat) and beta(hat) as I have already performed the regressions in a different program, and minimum individual values for X_i, as well as a total budget constraint for all values of X (the sum of all X's is equal to $200m). I am trying to follow a guide I found online (https://towardsdatascience.com/a-simple-...0cda7fd3e0) where I would just input all my coefficients for alpha(hat) and beta(hat), and set minimum values for all X's and a total maximum value for the sum of X's.

Firstly, would this work to allocate each additional dollar to the position with the largest marginal gain in Compensated wins for that dollar all the way to the budget constraint?

Would I just have to type the value of the coefficients that I already have into the equation in python, or would I have to perform the regression again?

And also is there any way to make it so that I do not have to type out the entire equation (the bottom picture in the imgur link), making the code much tidier?

Thanks in advance:)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Please help me to create company budget mad_accountant 2 2,032 Nov-21-2019, 06:01 PM
Last Post: mad_accountant
  how to specify options or tickle python to output points swept by the optimization? bsmile 3 2,610 Aug-02-2019, 10:31 PM
Last Post: scidam
  Keep a running total(budget) mcmxl22 3 4,511 Dec-07-2016, 11:04 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020