NO FRAMES

CPXchgmipstart

public int CPXchgmipstart(CPXCENVptr env, CPXLPptr lp, int cnt, const int * indices, const double * values)
Definition file: cplex.h

The routine CPXchgmipstart modifies or extends a MIP start. If the existing MIP start has no value for the variable x[j], for example, and the call to CPXchgmipstart specifies a start value, then the specified value is added to the MIP start. If the existing MIP start already has a value for x[j], then the new value replaces the old. If the model has no MIP start, CPXchgmipstart creates one. Start values may be specified for both integer and continuous variables.

See the routine CPXcopymipstart for more information about how CPLEX uses MIP start information.

Example

 status = CPXchgmipstart (env, lp, cnt, indices, values);

See Also:

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

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

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.

values

An array of length cnt containing the values to use for the starting integer solution. The entry values[j] is the value assigned to the variable indices[j]. An entry values[j] greater than or equal to CPX_INFBOUND indicates no value is set for the variable indices[j].

Returns:

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