Originally posted by: JorisK
Dear,
Normally, when I export a Mixed Integer Programming file (generated using cplex 12.4+java), I get a neatly ordered file like this:
===============================================
Minimize
obj: 12 x_v0,c1 + 19 x_v0,c2 + 31 x_v0,c3 + 22 x_v0,c4 + 17 x_v0,c5
+ 23 x_v0,c6 + 12 x_v0,c7 + 24 x_v0,c8 + 34 x_v0,c9 + 12 x_v0,c10
Subject To
custLinking(c1): x_v0,c1 + x_c1,c2 + x_c1,c3 + x_c1,c4 + x_c1,c5
+ x_c1,c6 + x_c1,c7 + x_c1,c8 + x_c1,c9 + x_c1,c10
+ x_c1,c11 + x_c1,c12 + x_c1,w13 + x_c1,w14 + x_c1,w15
+ x_c1,w16 + x_c1,w17 + x_c1,w18 + x_c1,w19 + x_c1,w20
+ x_c1,w21 + x_c1,w22 + x_c1,w23 + x_c1,w24 + x_c1,w25
+ x_c1,v26 - 2 z_c1,c1 = 0
===============================================
This looks nice and is very readable. Now I created a new MIP model, but for some unknown reason, it adds a "#counter" after every constraint, and after every term:
===============================================
Maximize
obj: 20 y1#0 + 35 y2#1 + 15 y3#2
Subject To
leaveDepot.k0#0: x(v0,c0(0),0)#3 + x(v0,c0(1),0)#4
+ x(v0,c0(2),0)#5 + x(v0,c0(3),0)#6
+ x(v0,c1(0),0)#7 + x(v0,c1(1),0)#8
+ x(v0,c1(2),0)#9 + x(v0,c1(3),0)#10
+ x(v0,c1(4),0)#11 + x(v0,c1(5),0)#12
+ x(v0,c1(6),0)#13 + x(v0,c2(0),0)#14
+ x(v0,c2(1),0)#15 + x(v0,c2(2),0)#16
+ x(v0,v10)#17 = 1
===============================================
Any clue why this happens? How can I get rid of the '#counter' prefix? Each constraint and each variable has its own unique name already, so I don't know why '#counter' is added?
#CPLEXOptimizers#DecisionOptimization