I'm using docplex to build up a mixed integer program which is then solved via cplex. However, upon trying to solve the MIP I receive the following error:
CPLEX> read plan.lp
CPLEX Error 1434: Line 184224: Couldn't convert '1<->' to a number.
No file read.
Looking at the lp file, the following line can be seen to be the problem:
1 <->
M13790
+ M13791
>= 1
And the line which creates the constraint is:
ilp.add_if_then(
ilp.sum([x.select_var for x in self.allX]) >= 1,
self.select_var == 1,
)
Where ilp is the docplex.mp.model object and each select_var is a binary decision variable. I'm really unsure of why this may be happening, and I'd appreciate any help with it!