CPXXparamsetreadcopy and CPXparamsetreadcopy
The routine
CPXXparamsetreadcopy/CPXparamsetreadcopy
reads parameter names and settings from the file specified by
filename_str and copies
them into the parameter set.
int CPXXparamsetreadcopy( CPXENVptr env, CPXPARAMSETptr ps, char const * filename_str)
int CPXparamsetreadcopy( CPXENVptr env, CPXPARAMSETptr ps, char const * filename_str)
Description
The routine
CPXXparamsetreadcopy/CPXparamsetreadcopy
reads parameter names and settings from the file specified by
filename_str and copies
them into the parameter set. Note that the content of the
parameter set is not cleared out before the parameters in the
file are copied into the parameter set. The parameters are read
from the file one by one and are added to the parameter set, or,
if the parameter was already present in the set, then its value
is updated.
This routine reads and copies files in the PRM format, as
created by CPXXwriteparam/CPXwriteparam.
The PRM format is documented in the
CPLEX File Formats Reference Manual
.
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX. - ps
-
A pointer to the CPLEX parameter set as returned by
CPXXparamsetcreate/CPXparamsetcreateusingenvas the environment. - filename_str
- Name of the file to read and copy into the parameter set.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXparamsetreadcopy (env, ps, "myparams.prm");
See also Parameter sets and Examples for multiobjective optimization in the CPLEX User's Manual.