CPXXparamsetapply and CPXparamsetapply

The routine CPXXparamsetapply/CPXparamsetapply applies the parameter values in the paramset to the environment.

int  CPXXparamsetapply( CPXENVptr env, CPXCPARAMSETptr ps)

int  CPXparamsetapply( CPXENVptr env, CPXCPARAMSETptr ps)

Description

The routine CPXXparamsetapply/CPXparamsetapply applies the parameter values in the paramset to the environment. In a sense, this a convenience function; it is equivalent to querying what parameters are in ps, querying their values, then setting those parameters in env.

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

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/CPXparamsetcreate using env as the environment.

Return

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

Example


        status = CPXparamsetapply (env, ps);
      

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