Veda2.0 Released!


Locating inconsistent constraints
#1
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
Reply
#2
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.
Reply
#3
(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!
Reply
#4
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CO2 constraints [email protected] 0 401 16-04-2024, 12:46 AM
Last Post: [email protected]
  Constraints not responding UKTM User 9 3,446 21-08-2023, 12:51 AM
Last Post: UKTM User
  overriding user constraints dtsintsk 2 1,096 19-07-2023, 12:46 AM
Last Post: dtsintsk

Forum Jump:


Users browsing this thread: 1 Guest(s)