Specifies a partial starting point for the next invocation of the method solve
.
var
. var
. x
, dj
, or var
to be used. var
for which starting point information is to be set. rng
. rng
. slack
, pi
, or rng
to be used. rng
for which starting point information is to be set.Starting point information is exploited at the next call of the method solve
. In particular, if the active model is an LP or QP, and the parameter Cplex.IntParam.RootAlg
is Cplex.Algorithm.Primal
or Cplex.Algorithm.Dual
, the starting point information provided with this method is used to construct a starting basis for the simplex algorithm.
If the active model is a MIP, only x
values can be used. Values may be specified for any subset of the integer and continuous variables in the model, either through a single invocation of setVectors
, or incrementally through multiple calls. When optimization commences or resumes, CPLEX will attempt to find a feasible MIP solution that is compatible with the set of specified x
values. When start values are not provided for all integer variables, CPLEX tries to extend the partial solution to a complete solution by solving a MIP on the unspecified variables. The parameter SubMIPNodeLim
controls the amount of effort CPLEX expends in trying to solve this secondary MIP. If CPLEX finds a complete feasible solution, that solution becomes the incumbent. If the specified values are infeasible, they are retained for use in a subsequent solution repair heuristic. The amount of effort spent in this heuristic can be controlled by parameter RepairTries
.
The starting point information is provided in the parameters of this method. null
can be passed for any of the arrays. However, if x
or dj
are not null
, var
must not be null
. Similarly, if slack
or pi
are not null
, rng
must not be null
. Also, if vnum
is not 0, x
and dj
must not both be null
, and if rnum
is not 0, slack
and pi
must not both be null
.
For the variables specified in var
, x[j]
is the primal starting value for variable var[j]
. Similarly, dj[j]
is the starting reduced cost for variable var[j]
. For the constraints specified in rng
, slack[i]
is the starting slack value for rng[i]
. Similarly, pi[i]
is the starting dual value for rng[i]
.
Cplex Class | ILOG.CPLEX Namespace | Cplex.SetVectors Overload List