Initializing help system before first use

XPRS_msp_readslxsol

XPRS_msp_readslxsol


Purpose
Reads one or more solutions from an ASCII solution file ( .slx). Solution files can be created with a call to XPRS_msp_writeslxsol.
Synopsis
int XPRS_CC XPRS_msp_readslxsol(XPRSmipsolpool msp, XPRSnamelist col_name_list, const char * sFileName, const char *sFlags, int * const iSolutionId_Beg, int * const iSolutionId_End)
Arguments
msp 
The current MIP solution pool.
col_name_list 
An object used to map column names on to solution indices. May be NULL if not required.
sFileName 
Null terminated string containing the file name from which the solution(s) are to be read.
sFlags 
Flags for XPRS_msp_readslxsol. None currently.
iSolutionId_Beg 
Pointer to an integer returning the solution ID of the first solution successfully loaded from the file. May be NULL if not required.
iSolutionId_End 
Pointer to an integer returning the solution ID of the last solution successfully loaded from the file. May be NULL if not required.
Further information
1. The user can obtain a reference to the object mapping column names to indices for a problem by calling XPRSgetnamelistobject with type 2. Passing this object down to XPRS_msp_readslxsol means that only solutions in the .slx file with column names contained in the mapping are loaded into the MIP solution pool. The loaded solutions will have the same column count as the mapping. The values for any columns that do not have an entry in the .slx file for a solution are set to zero.
2. If col_name_list is passed as NULL then all solutions are read into the MIP solution pool using the position of the solution value in the file section as the solution index.
Related topics