I have error in my work
CPLEX Error 1217: No solution exists.
Problem is integer infeasible.
please help me to understand my fault
Sets
c/191/
t/120/
r/14/
s/18/
TT/1*10/
;
parameter y/1/
z/3/
Cap(r)/1 130
2 60
3 60
4 60/
Di(r)/1 1
2 1.5
3 2
4 3/
E(s)/1 64
2 65
3 32
4 18
5 12
6 33
7 16
8 10/
F(s)/1 64
2 56
3 32
4 18
5 12
6 33
7 16
8 10/ ;
parameter RR(s,c);
loop(s,
loop(c,
if(( (ord(s) eq 1 and ord(c) le 11 ) or (ord(s) eq 2 and ord(c) ge 12 and ord(c) le 25 ) or (ord(s) eq 3 and ord(c) ge 26 and ord(c) le 38 ) or (ord(s) eq 4 and ord(c) ge 39 and ord(c) le 51 ) or (ord(s) eq 5 and ord(c) ge 52 and ord(c) le 65 ) or (ord(s) eq 6 and ord(c) ge 66 and ord(c) le 73 ) or (ord(s) eq 7 and ord(c) ge 74 and ord(c) le 81 ) or (ord(s) eq 8 and ord(c) ge 82 and ord(c) le 91 )),
RR(s,c)=1;
); ;);
binary variable x(s,r,t,c);
variable obj;
;
equation
Objective
con1(r,t)
con2(t,s)
*con3(s,TT)
con4(s,c)
con5(s,TT)
con6(s,c)
;
Objective… Obj=e=sum((s,r,t,c)(RR(s,c) eq 1),Di(r)*x(s,r,t,c));
con1(r,t).. sum((s,c)(RR(s,c) eq 1),F(s)x(s,r,t,c))=l=cap(r);
con2(t,s)… sum((r,c)(RR(s,c) eq 1),x(s,r,t,c))=l=1;
*con3(s,TT).. sum((t,r,c)( ord(t) le ord(TT)+y(z+1)-1 ),fx(s,r,t,c))=l=1;
con4(s,c)(RR(s,c) eq 1).. sum((r,t),f(s)*x(s,r,t,c))=l=E(s);
con5(s,TT).. sum((t,r,c)( ord(t) le ord(TT)+3 and (RR(s,c) eq 1)),x(s,r,t,c))=l=3;
con6(s,c)… sum((t,r),x(s,r,t,c))=e=RR(s,c);
- sum((r,t)$(RR(s,c) eq 1),x(s,r,t,c))=e=1;
model emamat /all/;
solve emamat using mip minimizing obj;
display x.l
\
— Job Emamat.gms Start 02/10/15 05:08:48 24.1.2 r40979 WEX-WEI x86_64/MS Windows
GAMS 24.1.2 Copyright (C) 1987-2013 GAMS Development. All rights reserved
Licensee: Gary Goldstein G010614:2121CA-WIN
Decision Ware, Inc. DC2807
— Starting compilation
— Emamat.gms(77) 3 Mb
— Starting execution: elapsed 0:00:00.008
— Emamat.gms(43) 4 Mb
— Generating MIP model emamat
— Emamat.gms(75) 14 Mb
— 1,140 rows 58,241 columns 118,301 non-zeroes
— 58,240 discrete-columns
— Executing CPLEX: elapsed 0:00:00.573
IBM ILOG CPLEX 24.1.2 r40979 Released Jun 16, 2013 WEI x86_64/MS Windows
— GAMS/Cplex licensed for continuous and discrete problems.
Cplex 12.5.1.0
Reading data…
Starting Cplex…
Tried aggregator 1 time.
MIP Presolve eliminated 801 rows and 51621 columns.
MIP Presolve modified 945 coefficients.
Reduced MIP has 339 rows, 6620 columns, and 24163 nonzeros.
Reduced MIP has 6620 binaries, 0 generals, 0 SOSs, and 0 indicators.
Presolve time = 0.17 sec. (41.79 ticks)
Dual steepest-edge pricing selected.
Probing time = 0.02 sec. (4.22 ticks)
Clique table members: 1822.
MIP emphasis: balance optimality and feasibility.
MIP search method: dynamic search.
Parallel mode: none, using 1 thread.
Tried aggregator 1 time.
No LP presolve or aggregator reductions.
Presolve time = 0.00 sec. (2.28 ticks)
Iteration log . . .
Iteration: 1 Dual objective = 1.000000
Iteration: 113 Dual objective = 46.000000
Iteration: 232 Dual objective = 71.044643
Iteration: 343 Dual objective = 90.890625
Iteration: 450 Dual objective = 92.095982
Iteration: 547 Dual objective = 105.406250
Root relaxation solution time = 0.05 sec. (19.25 ticks)
Nodes Cuts/
Node Left Objective IInf Best Integer Best Bound ItCnt Gap
0 0 infeasible 609
Root node processing (before b&c):
Real time = 0.34 sec. (100.88 ticks)
Sequential b&c:
Real time = 0.00 sec. (0.00 ticks)
Total (root+branch&cut) = 0.34 sec. (100.88 ticks)
MIP status(119): integer infeasible or unbounded
Cplex Time: 0.34sec (det. 100.88 ticks)
CPLEX Error 1217: No solution exists.
Problem is integer infeasible.
— Restarting execution
— Emamat.gms(75) 3 Mb
— Reading solution for model emamat
— Executing after solve: elapsed 0:00:01.410
— Emamat.gms(77) 4 Mb
*** Status: Normal completion
— Job Emamat.gms Stop 02/10/15 05:08:49 elapsed 0:00:01.412
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.