Hi,
I have to maximize an objective function given linear and non linear constraints.
I have five variables, i.e. c l n K g. K and g take a value for each period of time, t=1:T; the other three variable vary according to time and the agent index, i=1:N.
Given these framework, my objective function is the sum for each "i" and "t" of a non linear expression depending on c(t,i), l(t,i) and g(t). I have two set of constraints.
1) for each t and i, l(t,i) + n(t,i) = 1
2) for each t, a non linear constraint depending on K(t), K(t+1), g(t) and the sum for each i of c(t,i) and n(t,i).
Do you think that this type of problem could be solved with fmincon? If the answer is yes, how could I specify these variables that varies or in one dimension, t, or in two, i.e. t,i?
Best,
Tiziano
Best Answer