Search found 3 matches
- 1 year ago
- Forum: Syntax
- Topic: This“ Activity level ” attribute is not reset
- Replies: 2
- Views: 1828
Re: This“ Activity level ” attribute is not reset
The var.l in equation syntax just replaces the val.l with the initial value, so GAMS and the solver see: cost2 =e= sum((t,i)$( (1000+1000+1000)<100), sum(b,30*gs(t,i,b,ny)) ; the 3000<100 is false for every pair (t,i) and hence the sum is epty making cost2 = 0. Makes all sense. What many people who...
- 1 year ago
- Forum: Syntax
- Topic: This“ Activity level ” attribute is not reset
- Replies: 2
- Views: 1828
This“ Activity level ” attribute is not reset
GAMS Documentation 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.' but the g_lin.l is not reset ! thanks! g_lin.l(t,i...
- 1 year ago
- Forum: Syntax
- Topic: why use '.l' to set the Initial value of variable, the '.l' do not change
- Replies: 0
- Views: 2374
why use '.l' to set the Initial value of variable, the '.l' do not change
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...