Forum Discussion
FICO
1 year agoCommunity Manager
How to detect between termination by timeout or tolerance
The documentation doesn't clearly explain XPRS_UNF. I believe it means the optimisation finished either due to a XPRS_MAXTIME being reached or a tolerance being met. Without comparing time and tolera...
FICO
1 year agoCommunity Manager
You can query the solver attribute STOPSTATUS. Assuming you are working with Mosel, you could use for example:
declarations
STOPVAL: array(integer) of string
end-declarations
STOPVAL::([XPRS_STOP_NONE, XPRS_STOP_TIMELIMIT, XPRS_STOP_CTRLC,
XPRS_STOP_NODELIMIT, XPRS_STOP_ITERLIMIT, XPRS_STOP_MIPGAP,
XPRS_STOP_SOLLIMIT, XPRS_STOP_MEMORYERROR, XPRS_STOP_USER,
XPRS_STOP_SOLVECOMPLETE, XPRS_STOP_LICENSELOST, XPRS_STOP_NUMERICALERROR])
["solve completed normally", "time limit hit", "user hit control C",
"node limit hit", "LP iteration limit hit", "MIP gap is sufficiently small",
"solution limit hit", "insufficient memory", "user interrupt",
"MIP solve completed without fully exploring the tree",
"license has been lost", "numerical errors encountered"]
if getprobstat=XPRS_UNF:
writeln(STOPVAL(getparam("XPRS_STOPSTATUS")))
Related Content
Related Content
Error with Knitro tolerance parameters
Years ago, I used Knitro tolerance parameters XKTR_PARAM_OPTTOL and XKTR_PARAM_FEASTOL successfully. Now (FICO Xpress Mosel 64-bit v6.4.4, FICO Xpress v9.3.0), there seems to be an issue. setparam...2 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum7 unread comments7 unread0Views0likes7CommentsHow to apply termination conditions to each objective function in multi-objective model
Hello everyone, I am implementing a multi-objective model in Python, and I would like to set a time limit for each objective function. It would be best if I could set different time limits for each,...1 year agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread3Views0likes4CommentsWhat is the code for increasing calculation tolerance?
I am now implementing my program in Xpress Mosel IVE. I have a problem about calculation tolerance in Xpress. I calculate factorial of 20 (20!) by using "prod" function. But i found out that Xpress r...7 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum1 unread comment1 unread0Views0likes1Comment