NO FRAMES

CPXchgprobtypesolnpool

public int CPXchgprobtypesolnpool(CPXCENVptr env, CPXLPptr lp, int type, int soln)
Definition file: cplex.h

The routine CPXchgprobtypesolnpool changes the current problem, if it is a mixed integer problem, to a related fixed problem using a solution from the solution pool. The problem types that can be used appear in the table.

Table 1: Problem Types
ValueSymbolic ConstantMeaning
3CPXPROB_FIXEDMILPProblem with ctype information, integer variables fixed.
8CPXPROB_FIXEDMIQPProblem with quadratic data and ctype information, integer variables fixed.

A mixed integer problem (CPXPROB_MILP, CPXPROB_MIQP) can be changed to a fixed problem (CPXPROB_FIXEDMILP, CPXPROB_FIXEDMIQP) where bounds on integer variables are fixed to the values attained in the integer solution.

Example

 status = CPXchgprobtypesolnpool (env, lp, 1, CPXPROB_FIXEDMILP);
 

See Also:

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX LP problem object as returned by CPXcreateprob.

type

An integer specifying the target problem type.

soln

An integer specifying the index of the solution pool member whose values are to be used. A value of -1 specifies that the incumbent solution should be used instead of a solution pool member.

Returns:

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