Forum Discussion
FICO
4 years agoCommunity Manager
Hello all! My question is: how can I check the computation time and optimality gap in a nonlinear model (using "mmxnlp")? Thank you :)
1 Reply
- FICOCommunity Manager
You can use Mosel's 'gettime' function to measure solve time, for example:
uses "mmxnlp", "mmsystem" (...model statement...) stime:=gettime minimize(myobj) writeln("Total solve time: ", gettime-stime, " sec")For MIP problems you can calculate the gap value from solver parameters:
uses "mmxprs" (...state and solve the problem...) mipobj:= getparam("XPRS_MIPOBJVAL") bbound:= getparam("XPRS_BESTBOUND") relgap:= abs( (mipobj-bbound)/mipobj )For general NL problems solved with local solvers, I don't think that you can obtain any really meaningful 'bestbound' value.
Related Content
Related Content
What does it means "MMXNLP: (16) Error in optimization"
Hi! i was trying to run an optimization but i got an error that does not explain too much what is the problem: im using a community license, any one can help me? thanks!5 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum2 unread comments2 unread0Views0likes2Comments

