-1

Following is a piecewise function. I need to optimize it. q is the decision variable while the objective is to minimize the overall function subject to the constraint that it never gets zero.

enter image description here

How can I optimize this piecewise. all other variables other than q are constant values.

Erwin Kalvelagen
  • 15,677
  • 2
  • 14
  • 39

1 Answers1

0

Using y(t,m,i) = q(t,m,i) + eps/MI, and ln(a/b)=ln(a)-ln(b) there are two terms to worry about:

 f(y(t,m,i)) = y(t,m,i) ln y(t,m,i)

and

 g(y(t,m,i),y(t-1,m,i)) =  y(t,m,i) ln y(t-1,m,i)

The first one is easy. The second one not so much, see link for some notes.

Erwin Kalvelagen
  • 15,677
  • 2
  • 14
  • 39