Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXcopymipstart
is used to copy MIP starting
values to a CPLEX problem object of type CPXPROB_MILP
,
CPXPROB_MIQP
, or CPXPROB_MIQCP
.
Values must be specified for all integer and SOS member variables. Optionally, values may be specified for continuous variables. If the provided starting values are compatible with an integer feasible solution, that solution becomes the incumbent at the start of the optimizations. Otherwise, the starting values are ignored. The values for member variables of Special Ordered Sets are used to indicate which members of the set take on nonzero values.
The parameter CPX_PARAM_MIPSTART
must be set to
CPX_ON
(1) for the values to be used. If it is set to zero,
which is the default, the values are not used.
Example
status = CPXcopymipstart (env, lp, cnt, indices, value);
See Also:
CPXreadcopyorder, CPXreadcopymipstart
env | A pointer to the CPLEX environment as returned by |
lp | A pointer to a CPLEX problem object as returned by |
cnt | An integer giving the number of entries in the list. |
indices | An array of length cnt containing the numeric indices of the columns corresponding to the variables which are assigned starting values. |
value | An array of length cnt containing the values to be used for the starting integer solution. The entry Example status = CPXcopymipstart (env, lp, cnt, indices, value); |