Forum Discussion
FICO
10 years agoCommunity Manager
ADDMIPSOL and XPRS_CB_SOLNOTIFY
Hi everyone, I am looking for how to use "addmipsol" and find online the following example: public procedure solnotify(id:string, status:integer) writeln("Optimiser loaded solution...
FICO
10 years agoCommunity Manager
You could extend the "solnotify" routine as follows:
public procedure solnotify(id:string, status:integer)
declarations
SOLSTAT: array(range) of string
end-declarations
SOLSTAT:: (0..7)["Solution not checked",
"Solution is feasible",
"Solution feasible after reoptimizing with fixed globals",
"Feasible solution discovered by local search heuristic",
"Local search heuristic applied, no solution found",
"Solution infeasible, local search not applied",
"Partial solution, local search not applied",
"Failed to reoptimize with globals fixed"]
writeln("Optimiser loaded solution '", id, "' status: ", SOLSTAT(status))
end-procedure
Related Content
Related Content
Xpress solver freezes when using addmipsol
I have run my code, which includes adding heuristic solutions at each leaf node of the branch-and-bound tree. The added solution is feasible and accepted by the solver. However, at a certain point, t...1 year agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum5 unread comments5 unread0Views0likes5CommentsRe: How to load a MIP solution?
Thank you for your answer. When using addmipsol, XPRS_CB_SOLNOTIFY returns me the status code 8. However, I cannot find an overview of solnotify codes similar to loadmipsol exit codes (https://www.fi...7 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum5 unread comments5 unread1View0likes0Comments