[Soplex] SoPlex zero variables omitted in result

Ambros Gleixner gleixner at zib.de
Sat Sep 16 08:53:13 CEST 2023


Hi Hartmut,

Sorry for the delayed response over the summer!

There is no option to do this, but it would be easily to patch the 
soplexmain.cpp file such that all variables are printed.  You need to 
remove the if in

https://github.com/scipopt/soplex/blob/555f5d5427305d71eebfa1f28d48a91117763cc6/src/soplexmain.cpp#L304

and other relevant lines.

This is on the master, and note that there has been a recent change to 
this file, but also in the released version you should find the similar 
lines easily.

Please open a github issue if you have any further questions!

Best,
Ambros



Am 08.08.2023 um 11:49 schrieb Hartmut Henkel:
> Dear SoPlex team,
> 
> the result file of some soplex run on an .lp file here gives a sorted
> list of result variables s1...s20 with values, but variable s13 is
> missing in the list. The info at the end of the result file tells "All
> other variables are zero...", so s13 = 0, which it should be, all fine.
> But parsing this text file list into a table is a bit tricky, since at
> the end the table for variables s* now has a gap, and the result file
> does not plainly tell that there are 20 variables s* to be expected, so
> it's not straight-forward to prime the s* table with zeros... It's
> possible to work around it, yes, but my question is:
> 
> Is there some trick to let all variables appear in the result file, even
> if their values are zero?
> 
> Best Regards
> Hartmut
> _______________________________________________
> SoPlex mailing list
> SoPlex at zib.de
> https://listserv.zib.de/mailman/listinfo/soplex


More information about the SoPlex mailing list