XPRSreadbinsol
|
READBINSOL
|
Purpose
Reads a solution from a binary solution file.
Synopsis
int XPRS_CC XPRSreadbinsol(XPRSprob prob, const char *filename, const char *flags);
READBINSOL [-flags] [filename]
Arguments
prob
|
The current problem.
|
filename
|
A string of up to 200 characters containing the file name from which the solution is to be read. If omitted, the default problem_name is used with a .sol extension.
|
flags
|
Flags to pass to XPRSreadbinsol (READBINSOL):
m
|
load the solution as a solution for the MIP.
|
|
Example 1 (Library)
A previously saved solution can be loaded into memory and a print file created from it with the following commands:
XPRSreadprob(prob, "myprob", "");
XPRSreadbinsol(prob, "", "");
XPRSwriteprtsol(prob, "", "");
Example 2 (Console)
An equivalent set of commands to the above for console users would be:
READPROB
READBINSOL
WRITEPRTSOL
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.