Search found 21 matches

by Bingo LI
4 years ago
Forum: Modeling
Topic: Need help to programm j≠i
Replies: 2
Views: 3797

Re: Need help to programm j≠i

Hi Fred,
Thank you for your prompt reply. It solves my problem perfectly.
Just as you said, I misinterpret the GAMS syntax 'j ≠i ' as 'j<>i '.
Again, thank you!

Best,
Li
by Bingo LI
4 years ago
Forum: Modeling
Topic: Need help to programm j≠i
Replies: 2
Views: 3797

Need help to programm j≠i

Hello all, I want to programm a formulation: sum(t, sum(j∈N & j≠i, P(i,j,t))). The code is as follows: set i / 1,2,3 / t / 1*24 /; alias(i,j); sum((t,j)$(t,j<>i), p(i,j,t)) However, the programm repor some errors: 148 Dimension different - The symbol is referenced with more/less indices as decla...
by Bingo LI
4 years ago
Forum: Solvers
Topic: Can someone help me with GAMS Error 148
Replies: 4
Views: 7245

Re: Can someone help me with GAMS Error 148

It works
Thank you very much!!

Best,
Li
by Bingo LI
4 years ago
Forum: Solvers
Topic: Can someone help me with GAMS Error 148
Replies: 4
Views: 7245

Re: Can someone help me with GAMS Error 148

Hi Renger, Thanks for your answer. In my purpose, I exactly want to minimize each ETA (ETA(1), ETA(2), ETA(3)) because I want to utilize some distributed algorithm. And p_pvf(i,t) is a variable in my future formulation. Could you give me some advice to write it under the rule "write one objecti...
by Bingo LI
4 years ago
Forum: Solvers
Topic: Can someone help me with GAMS Error 148
Replies: 4
Views: 7245

Can someone help me with GAMS Error 148

Hello all,
I have difficulties in solving my problem. Can someone help me with GAMS Error 148

Error Messages
148 Dimension different - The symbol is referenced with more/less
indices as declared
257 Solve statement not checked because of previous errors

Thank you,
Li
by Bingo LI
4 years ago
Forum: Solvers
Topic: the solver found integer solution
Replies: 11
Views: 9692

Re: the solver found integer solution

Hi Fred,
Thanks for your reply.
I have no idea to deal with my programm now. I just want to solve it with the status "1 optimal" through adding some constrains. In this case, could you tell me how to modify it?

LI
by Bingo LI
4 years ago
Forum: Solvers
Topic: the solver found integer solution
Replies: 11
Views: 9692

Re: the solver found integer solution

Hi Fred,
The attachment (Untitled_2_log) should be the log file (reslim=30000), I'm sorry to make a mistake.
The GAMS and Cplex is a old version because I'm a student, and I cannot afford the License even the acadamic license. Thanks for your pertinent suggestion.
LI
by Bingo LI
4 years ago
Forum: Solvers
Topic: the solver found integer solution
Replies: 11
Views: 9692

Re: the solver found integer solution

Hi Michael,
Thanks for your repely.
I update the new file as Fred suggestion, please see the attachment under the new reply.
Again, thank you very much for your patience.

LI
by Bingo LI
4 years ago
Forum: Solvers
Topic: the solver found integer solution
Replies: 11
Views: 9692

Re: the solver found integer solution

Hi Fred, Thanks for your reply again. I try to set "option reslim=3000, 5000", the result is same as "reslim=1000". When I set reslim=30000, SOLVE SUMMARY is **** SOLVER STATUS 4 TERMINATED BY SOLVER **** MODEL STATUS 14 NO SOLUTION RETURNED Because of the Absolute gap is so huge...
by Bingo LI
4 years ago
Forum: Solvers
Topic: the solver found integer solution
Replies: 11
Views: 9692

Re: the solver found integer solution

Hi Fred, Thank you very much for your reply. I set optcr=0 when the SOLVER STATUS is "1 OPTIMAL", and the result of MODEL STATUS is "1 OPTIMAL ". However, I guess the description of my model is not correct when the SOLVER STATUS is "3 resource interrupt". I tried to che...