Search found 21 matches

by Bingo LI
2 months ago
Forum: Modeling
Topic: Model has been proven infeasible.
Replies: 0
Views: 648

Model has been proven infeasible.

1-main2.gms
(8.09 KiB) Downloaded 24 times
Hello all,
I am trying to solve a model,however, the “MODEL STATUS” is “4 Infeasible” . I try my best to correct it, however, there is no effect.
If anyone can help me, I will so appreciate it!!

Thank you.
Li
by Bingo LI
2 months ago
Forum: Modeling
Topic: How to express the Constraint i≠k
Replies: 1
Views: 227

How to express the Constraint i≠k

Hello all, I am trying to express the constraint: sets i / 1*10 / t / 1*24 /; alias(i,j,k); sets conex /1.2 2.3 3.4 4.5 5.6 6.7 7.8 8.9 9.10/; conex(i,j)$(conex(j,i))=1; eq2(j,t)..P(j,t)=e=sum(i$conex(j,i),Pij(i,j,t))-sum(k$conex(j,k),Pij(j,k,t)); however, I can not add the condition "i≠k" into the ...
by Bingo LI
7 months ago
Forum: Syntax
Topic: Problem with loop
Replies: 2
Views: 2005

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
7 months ago
Forum: Syntax
Topic: Problem with loop
Replies: 2
Views: 2005

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
1 year ago
Forum: Modeling
Topic: Infeasibility row 'eqcut1(2.24)': 0 = -1
Replies: 0
Views: 1275

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
1 year ago
Forum: Modeling
Topic: Dual infeasible due to empty column
Replies: 0
Views: 1196

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: 1408

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: 1408

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: 1408

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: 1641

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