CPXXparamsetcopy and CPXparamsetcopy

The routine CPXXparamsetcopy/CPXparamsetcopy copies the content of one parameter set into another.

int  CPXXparamsetcopy( CPXCENVptr targetenv, CPXPARAMSETptr targetps, CPXCPARAMSETptr sourceps)

int  CPXparamsetcopy( CPXCENVptr targetenv, CPXPARAMSETptr targetps, CPXCPARAMSETptr sourceps)

Description

The routine CPXXparamsetcopy/CPXparamsetcopy copies the content of one parameter set into another, overlaying the content of sourceps on targetps. In a sense, this a convenience function; it is equivalent to querying what parameters are in sourceps, querying their values, then add those parameters to targetps.

The CPLEX Parameters Reference Manual provides a list of parameters with their types, options, and default values.

Arguments

targetenv
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
targetps
A pointer to the CPLEX parameter set as returned by CPXXparamsetcreate/CPXparamsetcreate using targetenv as the environment.
sourceps
A pointer to the CPLEX parameter set as returned by CPXXparamsetcreate/CPXparamsetcreate using sourceenv as the environment.

Return

The routine returns 0 (zero) if successful and nonzero if an error occurs.

Example


        status = CPXparamsetcopy (targetenv, targetps, sourceps);
      

See also Parameter sets and Examples for multiobjective optimization in the CPLEX User's Manual.