Initializing help system before first use

writesol

writesol


Purpose
Write a solution to a file.
Synopsis
procedure writesol(fname:string,options:string)
procedure writesol(ms:mpsol,sname:string,fname:string,options:string)
Arguments
fname 
Extended file name
options 
String of options
ms 
A solution object
sname 
Solution name
Further information
1. When using the first syntax this procedure writes the current solution to a file by calling the Optimizer function XPRSwriteslxsol. For more detail on the options and behavior of this procedure, refer to the Xpress Optimizer Reference Manual.
2. With the second syntax, the file is generated from a solution object. In this case, the solution name has to be provided (default name is "solution") and the only supported option is "x" to output the numbers in hexadecimal.
3. Solution save/read procedures can be used only if the constraint and variable names have been loaded into the Optimizer (parameter XPRS_loadnames set to true) and all constraints are named.
Related topics
Module