XPRS_msp_getsolname
XPRS_msp_getsolname |
Purpose
Gets the name of a solution stored in a MIP solution pool.
Synopsis
int XPRS_CC XPRS_msp_getsolname(XPRSmipsolpool msp, const int iSolutionId, char *sname, const int iStringBufferBytes, int * const iBytesInInternalString, int * const iSolutionIdStatus)
Arguments
msp
|
The current MIP solution pool.
|
||||||
iSolutionId
|
Id of the solution whose name is to be retrieved.
|
||||||
sname
|
Pointer to a string where the name of the solution (plus null terminator) will be returned. This argument can be passed with NULL.
|
||||||
iStringBufferBytes
|
Maximum number of bytes to be returned in sname.
|
||||||
iBytesInInternalString
|
Pointer to the integer where the number of bytes required storing the name (including null terminator) will be returned.
|
||||||
iSolutionIdStatus
|
Pointer to an
int where the status of the
iSolutionId will be returned. The returned value is one of:
|
Further information
1. Names of solutions stored in a MIP solution pool are unique.
2. The user will obtain the solution id
iSolutionId from interaction with the MIP solution pool via functions such as
XPRS_msp_findsolbyname,
XPRS_msp_getdblattribprobextreme,
XPRS_msp_getintattribprobextreme and
XPRS_msp_getsollist.
3. Names of solutions enter the MIP solution pool via functions such as
XPRS_msp_loadsol,
XPRS_msp_setsolname and
XPRS_msp_readslxsol. Solutions entering the MIP solution pool directly from attached problems are given automatic names.
Related topics
XPRS_msp_setsolname,
XPRS_msp_findsolbyname,
XPRS_msp_getdblattribprobextreme,
XPRS_msp_getintattribprobextreme,
XPRS_msp_getsollist.