Initializing help system before first use

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

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.