Search found 8 matches

by i_sam
1 year ago
Forum: Syntax
Topic: Loop and summation upper limit
Replies: 12
Views: 3559

Re: Loop and summation upper limit

Dear Michael, Yes, the fact that the model is solved to optimality in less than a second is strange. I realised that I can read the results on excel to validate the model. After using the command: execute_unload "results.gdx" ; I got the results file which I can open using GAMS. The next s...
by i_sam
1 year ago
Forum: Syntax
Topic: Loop and summation upper limit
Replies: 12
Views: 3559

Re: Loop and summation upper limit

Hello,

Attaching my latest model file. The model is compiling without errors however it is not solving to optimality.

I tried reading a lot but I am still unable to fix the issue. Can you please help me figure out what I can do to fix the issue?

Best regards,
Sami
WSC1 Edited.gms
(27.97 KiB) Downloaded 66 times
by i_sam
1 year ago
Forum: Syntax
Topic: Loop and summation upper limit
Replies: 12
Views: 3559

Re: Loop and summation upper limit

Hello all,

My model is running error free now. However, it is converging in less than a second, which is not supposed be the case. Can you please help fix this issue?

i cannot thank you enough for the provided help!
by i_sam
1 year ago
Forum: Syntax
Topic: Loop and summation upper limit
Replies: 12
Views: 3559

Re: Loop and summation upper limit

Dear Michael, Thanks a lot for your thorough response. I was able to eliminate all the errors in the code. However, I am getting errors 66 and 256 next to the "solve" command upon running the code. Some online sources suggested that some data might be missing, but I already made sure it is...
by i_sam
1 year ago
Forum: Syntax
Topic: Loop and summation upper limit
Replies: 12
Views: 3559

Re: Loop and summation upper limit

Hello Michael,

Here is the requested model.

Thank you
WSC Model.docx
(33.07 KiB) Downloaded 83 times
WSC1.gms
(22.41 KiB) Downloaded 86 times
by i_sam
1 year ago
Forum: Syntax
Topic: Loop and summation upper limit
Replies: 12
Views: 3559

Re: Loop and summation upper limit

Hello guys, I have another question regarding the model attached in the above post. I am trying to type this equation (see image), and I am getting a bunch of errors. Eqn11(PL(j),tp,t).. sum((tp$(ord(tp)<=ord(t)),k),NU(j,k,tp)) =l= Umax2(j) ; Upon running this code, I get the following errors: 125, ...
by i_sam
1 year ago
Forum: Syntax
Topic: Loop and summation upper limit
Replies: 12
Views: 3559

Re: Loop and summation upper limit

Thank you so much Michael! Finally got that much needed help! Thanks a lot for the quick response too.
by i_sam
1 year ago
Forum: Syntax
Topic: Loop and summation upper limit
Replies: 12
Views: 3559

Loop and summation upper limit

Hello everyone! I have an MILP model, which I have coded on GAMS. However, there is an equation, which I was not able to code, and would appreciate any help and insight from you guys. I attached the equation I am struggling with as well as the extract related to this equation from the GAMS code. I a...