CPXXparamsetwrite and CPXparamsetwrite
The routine
CPXXparamsetwrite/CPXparamsetwrite
writes a parameter file that contains the parameters in the
parameter set.
int CPXXparamsetwrite( CPXCENVptr env, CPXCPARAMSETptr ps, char const * filename_str)
int CPXparamsetwrite( CPXCENVptr env, CPXCPARAMSETptr ps, char const * filename_str)
Description
The routine
CPXXparamsetwrite/CPXparamsetwrite
writes a parameter file that contains the parameters in the
parameter set.
This routine writes a file in a format suitable for reading
by CPXXparamsetreadcopy/CPXparamsetreadcopy
or by CPXXparamsetreadcopy/CPXparamsetreadcopy.
The file is written in the PRM format which 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
- A character string containing the name of the file to which the content of the parameter set should be written.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXparamsetwrite (env, ps, "myparams.prm");
See also Parameter sets and Examples for multiobjective optimization in the CPLEX User's Manual.