Hello
I am trying to linearize and solve a nonlinear integer program. The nonlinear term(s) is a result of multiplication of two binary variables (Xikmj and Ylnr).
I substituted the Xikmj *Ylnr by a new binary variable of Zikmjlnr i.e.,
Zikmjlnr =Xikmj *Ylnr
And added the following three new constraints:
Zikmjlnr<= Xikmj
Zikmjlnr<= Ylnr
Zikmjlnr>= Xikmj+ Ylnr-1
Trying to solve the model I receive the following message:
“Warning: After zero iterations CPLEX 12.3 was interrupted and LeastCost is still infeasible”
Please note that this is a part of larger math program with other nonlinear terms. The model works (and can be solved nicely) when I do the same procedure described above for the other nonlinear terms (ignoring the above described part). But as soon as I add this section I got the error.
Please let me know if you have any suggestion to resolve this issue.
Thank you,
Jean
Hi Guido,
Many thanks for your reply. Here is the complete message copied from AIMMS message window:
“There is 29.695 Mb in use.
CPLEX Error 1001: Out of memory.
Warning: After zero iterations CPLEX 12.3 was interrupted and LeastCostHubandSpoke is still infeasible.”
Regards,
Nader
Hi Guido,
The problem instance that I was able to solve has 325704 variables and 303428 constraints (according to the info posted at progress report window). As I added the new three constraints (mentioned above), the number of variables and constraints raised to 456384 and 1334479 respectively. I did what you said (i.e., eliminating combinations of indices from generation by introducing a domain condition on the index domain). And as a result, the number of variables reduces to about 330000. Since the error is still there, perhaps the error is being generated because of the number of constraints . Please let me know if you have any suggestion.
Thank you,
Nader
Hi Marcel,
Here are the info about the variables and constraints:
#of constraints: 985193
#variables: 340404
#nonzeros: 2595447
CPLEX quits in about 3 min after execution begins. For changing the range of Variable Z, I have already done that for all Auxiliary variables of type Z. As expected the number of variables reduced significantly but still I can’t get any results. I tried setting CPLEX option “aggregator” to 0; it didn’t help either.
Thank you,
Nader
Hi,
I changed the range of variable Zikmjlnr and other auxiliary variables into [0,1] and solver to CPLEX (ps). Here is some info reported in progress report after 50 sec:
#Constraints: 985192
#Variables: 2598
#Nonzero: 1320810
Infeasibility: na
Best solution: na
Program status: Integer infeasible
Any suggestion to resolve this issue is appreciated in advance.
Nader
Hi Marcel,
Many thanks for your reply.
I don’t get the message that CPLEX is out of memory any more. Here is the copy of the CEPLEX 12.x.sta:
“Tried aggregator 1 time.
Infeasibility row 'NumberOfOpenHubs': 0 = 3.
Presolve time = 4.66 sec.
Memory in use by CPLEX 12.3.0.1: 77111944 bytes.”
Thanks you,
Nader