why use '.l' to set the Initial value of variable, the '.l' do not change

Problems with syntax of GAMS
Post Reply
zifeiyu
User
User
Posts: 3
Joined: 1 year ago

why use '.l' to set the Initial value of variable, the '.l' do not change

Post by zifeiyu »

The documentation guides say :"Activity level for the variable, also the current value or starting point. This attribute is reset to a new value when a model containing the variable is solved. The activity level is used to construct a basis for the model."
I use cplex to MIP problem.

g_lin.l(t,i,b)=200;

objective function.. cost= sum((t,i)$( (g_lin.l(t,i,'b1')+g_lin.l(t,i,'b2')+g_lin.l(t,i,'b3'))<100), sum(b,30gs(t,i,b,ny)) ;

display g_lin.l; the result shows g_lin<100, but the cost =0;

the g_lin.l(t,i,b) is not reset ! always equal to 200

can you tell me why? or I forget something?
thanks!
Post Reply