Search found 19 matches

by Bingo LI
3 months ago
Forum: Syntax
Topic: Problem with loop
Replies: 2
Views: 1274

Re: Problem with loop

Thank you for your answer.
The problem is solved by setting converge_ini to 0.
The function of “break” or “continue” is not contained in GAMS 24.4.
Again, thank you.

Li
by Bingo LI
3 months ago
Forum: Syntax
Topic: Problem with loop
Replies: 2
Views: 1274

Problem with loop

Dear All, I am solving a problem with GAMS 24.4/cplex. There are two Loop in my model, and they have to exist in my model. In addition, the function of “break” or “continue” is infeasible. I want to terminate the inner LOOP "t", and start a new outer LOOP "k" when some condition is met, such as " b(...
by Bingo LI
10 months ago
Forum: Modeling
Topic: Infeasibility row 'eqcut1(2.24)': 0 = -1
Replies: 0
Views: 1065

Infeasibility row 'eqcut1(2.24)': 0 = -1

Hello all, I am trying to solve a model using C&CG, and there is a problem about the solution: Infeasibility row 'eqcut1(2.24)': 0 = -1. The solution summary is as follows. MODEL master OBJECTIVE TC TYPE MIP DIRECTION MINIMIZE SOLVER CPLEX FROM LINE 314 **** SOLVER STATUS 1 NORMAL COMPLETION **** MO...
by Bingo LI
10 months ago
Forum: Modeling
Topic: Dual infeasible due to empty column
Replies: 0
Views: 1009

Dual infeasible due to empty column

Hello all, I am trying to solve a model using GAMS, and I am getting a problem: Dual infeasible due to empty column 'eta0'. What can I do to solve this problem. The log of solving the problem is as follows, and the code can be attached if needed. Many thanks. LI Reading data... Starting Cplex... Dua...
by Bingo LI
1 year ago
Forum: Modeling
Topic: assign parameters in sequence
Replies: 4
Views: 923

Re: assign parameters in sequence

Hi Renger,
It solves my problem perfectly.
Thank you.
Li
by Bingo LI
1 year ago
Forum: Modeling
Topic: assign parameters in sequence
Replies: 4
Views: 923

Re: assign parameters in sequence

Thanks for your answer.
However, a vector (P_1(ii)) is needed as there are other variables in my programm.
The purpose of this programm is that I want to eliminate P_1(1) when ii=2.
Could it be done?
by Bingo LI
1 year ago
Forum: Modeling
Topic: assign parameters in sequence
Replies: 4
Views: 923

assign parameters in sequence

Hello all, I'm working on assigning a parameter in sequence. In my purpose, the sequence of the parameters is: i=1 P_1= 13 i=2 P_1= 24 i=3 P_1= 15. However. the result in my programm is i=1 P_1= 13 i=2 P_1=1 13 2 24 i=3 P_1=1 13 2 24 3 15. The code is attached. Could someone help me with this proble...
by Bingo LI
1 year ago
Forum: Archive Google Group
Topic: unable to understand nature of obtained results
Replies: 2
Views: 1327

Re: unable to understand nature of obtained results

Hi Archiver,
I'm facing a similar problem, did you find a solution to this issue ?

Regards
Li
by Bingo LI
1 year ago
Forum: Modeling
Topic: Need help to programm j≠i
Replies: 2
Views: 840

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
1 year ago
Forum: Modeling
Topic: Need help to programm j≠i
Replies: 2
Views: 840

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 declared ...