Posts: 9
Threads: 2
Likes Received: 0 in 0 posts
Likes Given: 0
Joined: Sep 2023
I have bumped into a problem in my model runs. The model is found to be infeasible while mentioning two constraints as inconsistent. I wanted to know how I can actually locate the constraints that the model run gives me their code/number, I suppose. I have even enabled solprint so that I can have access to all the equations, but I cannot find the codes (equation number) in the produced .lst file. Does anyone have any idea what to do?
Here is what I get from the command window:
Constraints 'c1056213' and 'c2774488' are inconsistent.
Presolve time = 4.63 sec. (2185.63 ticks)
Barrier time = 4.63 sec. (2185.63 ticks)
Total time on 5 threads = 4.63 sec. (2185.63 ticks)
--- LP status (3): infeasible.
--- Cplex Time: 4.64sec (det. 2205.31 ticks)
Best,
Farzin
Posts: 1,956
Threads: 26
Likes Received: 55 in 47 posts
Likes Given: 15
Joined: Jun 2010
You apparently have the option names no in your cplex.opt options file, which is meant for disabling cplex from keeping track of the original equation names (because it saves some memory). Change it to names yes or names 1, and then you will get those equation names reported. Even better, use also OPTION SYSOUT=ON; in the RUN file, and you will get the report also in the listing file.
Posts: 9
Threads: 2
Likes Received: 0 in 0 posts
Likes Given: 0
Joined: Sep 2023
(23-01-2025, 10:32 PM)Antti-L Wrote: You apparently have the option names no in your cplex.opt options file, which is meant for disabling cplex from keeping track of the original equation names (because it saves some memory). Change it to names yes or names 1, and then you will get those equation names reported. Even better, use also OPTION SYSOUT=ON; in the RUN file, and you will get the report also in the listing file.
Yes, that is exactly how this was defined in our solver setting. Should we add the "option sysout=on" in .opt file or elsewhere? Thank you for the prompt reply!
Posts: 1,956
Threads: 26
Likes Received: 55 in 47 posts
Likes Given: 15
Joined: Jun 2010
24-01-2025, 12:58 AM
(This post was last modified: 24-01-2025, 03:21 PM by Antti-L.)
In any case, you would need to replace the names no with names 1, in the cplex.opt file. The cplex.opt templates are in the AppData\SolverOptFiles folder, and you can edit the files with any text editor.
By using also OPTION SYSOUT=ON; – in the RUN file – you will get the report also in the listing file (in addition to seeing it in the command window). You can modify the run file best by using the VEDA run file modification mechanism.