1

I have a log linear equation of the form $y = w_1(\log{X1}) + w_2(\log{X2}) + ... + w_n(\log{Xn})$.

How can I find the value of X's that maximize the value of y subject to a constraint $(X_1+X_2+...+X_n \le t)$ in python or excel?

I tried using Excel solver but ran into issues where one of the X variables became 0 in the process and gave undefined results.

Ethan
  • 1,625
  • 8
  • 23
  • 39
my_cse lab
  • 11
  • 2
  • 1
    Fair question: Should it not be the maximum with respect to w_i instead?And so the constrains should be fixed to w_i also – Multivac Mar 25 '21 at 22:35
  • Julio, in this case, the regression model used X_i's as predictors to predict the value of Y_i. So, the value of w_i is constant (equal to coefficients from regressions) throughout – my_cse lab Mar 26 '21 at 03:18

0 Answers0