XPRESS is not generating the optimization log in the console #3002
Replies: 1 comment
|
FYI: confirm solution of @davidhdezf works for me |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What version of OR-tools and what language are you using?
Version: source V7.5 stable
Which solver are you using (XPRESS)
What operating system and version?
Windows 10
What did you do?
Try to use xsolver.EnableOutput
*What did you expect to see
Optimization Log in the console output
What did you see instead?
The log was not generated
****Problem and solution
In xpress_interface.cc the next code is used to generate the output
XPRSsetintcontrol(mLp, XPRS_OUTPUTLOG, 1);Nevertheless this code is not enough to generate the output the next code needs to be added. Note: I am printing all the messages levels.
Next code should be added inside SOLVE before optimizing.
/* Tell Optimizer to call optimizermsg whenever a message is output */ XPRSsetcbmessage(mLp, optimizermsg, NULL);All reactions