|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ilog.cplex.CpxModel | +--ilog.cplex.IloCplex
IloCplex
is the class used to create and solve LP
(linear program), QP (program with quadratic terms in the
objective function), QCP (quadratically constrained program),
and MIP (mixed integer program)
Mathematical Programming models. This class implements the
IloMPModeler
modeling interface and its base interfaces.
See the
ILOG CPLEX User's Manual for more information about modeling.
Models to be solved by IloCplex
should be built using
the IloMPModeler
(and base interface) methods to construct
objects from the following list:
IloNumVar
and its
extensions IloIntVar
, IloBoolVar
,
and IloSemiContVar
IloRange
with (piecewise) linear or quadratic expressionsIloConstraint
of the form
expr1 relation expr2,
where both expressions are linear or quadratic and may optionally
contain piecewise linear terms.IloLPMatrix
IloObjective
with a (piecewise) linear
and/or quadratic expressionsIloConversion
IloSOS1
or
IloSOS2
IloCplex
stores such models internally in the standard
math programming matrix representation:
Minimize (or Maximize) c'x + x'Qx subject to L <= Ax <= U a_i'x + x'Q_i x <= r_i, for i = 1, ..., q l <= x <= u.
Thus A is the matrix of linear constraint coefficients, and L and U are the vectors of lower and upper bounds on the vector of variables, x. The Q matrix must be positive semi-definite (or negative semi-definite in the maximization case) and represents the quadratic terms of the objective function. The matrices Q_i must be positive semi-definite and represent the quadratic terms of the i-th quadratic constraint, and the a_i are vectors containing the correponding linear terms. For more about the Q_i, see the chapter about QCP in the ILOG CPLEX User's Manual.
If the model contains integer, Boolean, or semi-continuous variables,
or if the model has special ordered sets (SOSs), the model is referred to
as a mixed integer program (MIP). You can query whether the
active model is a MIP with the method
IloCplex.isMIP
.
A model with quadratic terms in the objective is referred to as
a mixed integer quadratic program (MIQP) if it is also a MIP,
and a quadratic program (QP) otherwise.
You can query whether the active model has a quadratic objective
by calling method IloCplex.isQO
.
A model with quadratic constraints is referred to as a quadratically
constrained program (MIQCP) if it is also a MIP, and as QCP otherwise.
You can query whether the active model is
quadratically constrained by calling the method
IloCplex.isQC
.
A QCP may or may not have a quadratic objective; that is, a given problem
may be both QP and QCP. Likewise, a MIQCP may
or may not have a quadratic objective; that is, a given problem may be
both MIQP and MIQCP.
If there are no quadratic terms in the objective, no integer constraints, and the problem is not quadratically constrained, it is called a linear program (LP).
If there are no quadratic terms in the objective, and the problem is not quadratically constrained, but there are integer variables, it is called a mixed integer linear program (MILP).
Special ordered sets (SOS) fall outside the conventional representation in terms of A and Q matrices and are stored separately.
Information related to the matrix representation of the model can be queried through these methods:
IloCplex.getNcols
for querying the number of columns of A,IloCplex.getNrows
for querying the number of rows of A; that is,
the number of linear constraints,IloCplex.getNQCs
for querying the number of quadratic constraints,IloCplex.getNNZs
for querying the number of nonzero elements in A, and IloCplex.getNSOSs
for querying the
number of SOS
s.Additional information about the active model can be obtained through iterators defined on the different types of modeling objects.
IloCplex
effectively treats all models as MIQCP models.
That is, it allows the most general case, although the solution algorithms
make efficient use of special cases, such as the absence of quadratic
terms in the formulation.
The method IloCplex.solve
is used to solve the
active model. It begins by solving the root relaxation of the
MIQCP model, where all integrality constraints and SOSs are ignored. If
the model has no integrality constraints or SOSs, then the optimization
is complete once the root relaxation is solved. Otherwise,
IloCplex
uses a branch and cut procedure to reintroduce
the integrality constraints and SOS constraints. See the ILOG CPLEX
User's Manual for more information about branch and cut.
Most users can simply call solve
to solve their models.
However, several parameters are available for users who require more
control.
Perhaps the most important one is IloCplex.IntParam.RootAlg
,
which determines the algorithm used to solve the root relaxation.
Possible settings, as defined in IloCplex.Algorithm
, are:
IloCplex.Algorithm.Auto
IloCplex
automatically selects an algorithm. This is the
default setting.IloCplex.Algorithm.Primal
IloCplex.Algorithm.Dual
IloCplex.Algorithm.Network
IloCplex.Algorithm.Barrier
IloCplex.Algorithm.Sifting
IloCplex
defaults to
the IloCplex.Algorithm.Auto
setting.IloCplex.Algorithm.Concurrent
IloCplex
defaults to the IloCplex.Algorithm.Auto
setting.Numerous other parameters allow you to control algorithmic aspects of
the optimizer. See IloCplex.IntParam
, IloCplex.DoubleParam
, and IloCplex.StringParam
for further information.
Parameters are set with the method setParam
.
Even higher levels of control can be achieved through the use of goals
(see IloCplex.Goal
) or callbacks (see
IloCplex.Callback
and its extensions).
The solve
method returns a Boolean value indicating whether
(true
) or not
(false
) a solution (not necessarily the optimal one) has been
found. Further information about the solution can be queried with the method
getStatus
. The return code of type
IloCplex.Status
indicates whether the
solution is feasible, bounded, or optimal, or if the model has been proven
to be infeasible or unbounded. See IloCplex.Status
for more information.
The method IloCplex.getCplexStatus
provides more detailed information about the status of the optimizer after
IloCplex.solve
returns. For example, it can provide
information about why the optimizer terminated prematurely (time limit,
iteration limit, etc.). The methods
IloCplex.isPrimalFeasible
and IloCplex.isDualFeasible
can be
used to determine whether a primal or dual feasible solution has been found
and can be queried.
The most important solution information computed by IloCplex
are usually the solution vector and the objective function value. These can
be queried with the methods IloCplex.getValue
and
IloCplex.getObjValue
, respectively.
Most optimizers also compute additional solution information.
(for example, dual values, reduced costs, simplex bases, etc.) This
additional information can also be queried through various methods of
IloCplex
. If you attempt to retrive solution information
that is not available from a particular optimizer, IloCplex
will throw an exception.
If you are solving an LP and a basis is available, the solution can be
further analyzed by performing sensitivity analysis. This information tells
you how sensitive the solution is with respect to changes in variable bounds,
constraint bounds, or objective
coefficients. The information is computed and accessed with the methods
IloCplex.getBoundSA
,
IloCplex.getRangeSA
,
IloCplex.getRHSSA
, and
IloCplex.getObjSA
.
An important consideration when you access solution information is the
numeric quality of the solution.
Since IloCplex
performs arithmetic operations using
finite precision, solutions are always subject to numeric errors.
For most problems, numeric errors are well within reasonable tolerances.
However, for numerically difficult models, you
are advised to verify the quality of the solution using the method
IloCplex.getQuality
,
which offers a variety of quality measures.
Nested Class Summary | |
static class |
IloCplex.Algorithm
Enumeration of algorithm types used by IloCplex. |
static class |
IloCplex.BarrierCallback
This is the callback class to use when IloCplex uses the
barrier optimizer. |
static class |
IloCplex.BasisStatus
Enumeration of possible basis status codes. |
static class |
IloCplex.BooleanParam
Symbolic parameter names for boolean-valued IloCplex parameters. |
static class |
IloCplex.BranchCallback
This is the base class for user-written callbacks that control branching during the branch-and-cut search. |
static class |
IloCplex.BranchDirection
Enumeration of branch direction values. |
static class |
IloCplex.BranchType
This class identifies the branch type for BranchCallback . |
static class |
IloCplex.Callback
The callback base class. |
static class |
IloCplex.ContinuousCallback
The callback base class for user-written continuous callbacks. |
static class |
IloCplex.ControlCallback
This is the base class for all callback classes that allow you to query or take control of the MIP branch-and-cut search. |
static class |
IloCplex.CplexEndedException
Exceptions of this class are thrown when a method is called for an IloCplex object or any object that has been created with it
after the end method has been called. |
static class |
IloCplex.CplexStatus
Enumeration of possible IloCplex algorithm
status codes. |
static class |
IloCplex.CrossoverCallback
The base class for user-written callbacks during crossover from a barrier solution to a simplex basis. |
static class |
IloCplex.CutCallback
This is the base class for user-written callbacks that add cuts during the branch-and-cut search. |
static class |
IloCplex.DeleteMode
Enumeration of possible values for the delete mode of IloCplex , as controlled by the methods
setDeleteMode and getDeleteMode . |
static class |
IloCplex.DisjunctiveCutCallback
An instance of the class DisjunctiveCutCallback represents
a user-written callback in an application that uses an instance of
IloCplex to solve a mixed integer programming problem (a
MIP). |
static class |
IloCplex.DoubleParam
Symbolic parameter names for double-valued IloCplex parameters. |
static class |
IloCplex.DualPricing
Enumeration of possible values for the dual pricing parameter IloCplex.IntParam.DPriInd . |
static class |
IloCplex.FlowMIRCutCallback
An instance of the class FlowMIRCutCallback represents a
user-written callback in an application that uses an instance of
IloCplex to solve a mixed integer programming problem (a
MIP). |
static class |
IloCplex.FractionalCutCallback
An instance of this class represents a user-written callback in an application that uses an instance of IloCplex to solve a
mixed integer programming problem (a MIP). |
static class |
IloCplex.Goal
Goals can be used to control the branch-and-cut search in IloCplex . |
static class |
IloCplex.HeuristicCallback
The base class for user-written callbacks that allows you to inject integer-feasible solutions during the branch-and-cut search. |
static class |
IloCplex.IIS
An object of this class represents an irreducibly inconsistent set (IIS). |
static class |
IloCplex.IncumbentCallback
This callback class is called whenever a new potential incumbent is found during the branch-and-cut search. |
static class |
IloCplex.IntegerFeasibilityStatus
Objects of this class are used to indicate integer feasibility. |
static class |
IloCplex.IntParam
Symbolic parameter names for integer-valued IloCplex parameters. |
static class |
IloCplex.LazyConstraintCallback
This is an advanced method. |
static class |
IloCplex.MIPCallback
The base class for all MIP callbacks. |
static class |
IloCplex.MIPEmphasis
Enumeration of possible values for the IloCplex.IntParam.MIPEmphasis parameter. |
static class |
IloCplex.NetworkCallback
This is the callback class to use when IloCplex uses the
network optimizer. |
static class |
IloCplex.NodeCallback
This is the base class for user-written callbacks that allow the user to select the node to process next during the branch-and-cut search. |
static class |
IloCplex.NodeEvaluator
Node evaluators can be used to control the node selection strategy during the branch-and-cut search. |
static class |
IloCplex.NodeId
A class for uniquely identifying a MIP node in a branch-and-cut tree. |
static class |
IloCplex.NodeSelect
Enumeration of possible values for the IloCplex.IntParam.NodeSel parameter. |
static class |
IloCplex.PresolveCallback
The callback class for user-written callbacks during presolve. |
static class |
IloCplex.PrimalPricing
Enumeration of possible values for the primal pricing parameter IloCplex.IntParam.PPriInd . |
static class |
IloCplex.ProbingCallback
The base class for user-written callbacks that monitor probing progress. |
static class |
IloCplex.Quality
Objects of the class IloCplex.Quality contain information
computed to measure the quality of a solution. |
static class |
IloCplex.QualityType
This class contains symbolic names for IloCplex
solution qualities. |
static class |
IloCplex.SearchLimit
This class allows you to limit the branch-and-cut search within certain subtrees. |
static class |
IloCplex.SimplexCallback
This is the callback class to use when IloCplex uses the
simplex optimizer. |
static class |
IloCplex.SolveCallback
The base class for user-written solve callbacks to control how node relaxations are solved within branch and cut. |
static class |
IloCplex.Status
Enumeration of possible solution status values, as returned by method cplex.getStatus . |
static class |
IloCplex.StringParam
Symbolic parameter names for string-valued IloCplex parameters. |
static class |
IloCplex.UnknownObjectException
Exceptions of this class are thrown if operations are attempted for modeling objects that not part of the active model. |
static class |
IloCplex.UserCutCallback
This is an advanced method. |
static class |
IloCplex.VariableSelect
Enumeration of possible values for the IloCplex.IntParam.VarSel parameter. |
Constructor Summary | |
IloCplex()
This constructor creates an IloCplex object with an empty
active model. |
Method Summary | |
ilog.concert.IloConstraint |
addCut(ilog.concert.IloConstraint cut)
Adds the constraint cut as a cut to the invoking
IloCplex object. |
ilog.concert.IloConstraint[] |
addCuts(ilog.concert.IloConstraint[] cut)
Adds the constraints given in cut as cuts to the invoking
IloCplex object. |
ilog.concert.IloConstraint[] |
addCuts(ilog.concert.IloConstraint[] cut,
int start,
int num)
Adds num constraints given in cut
as cuts to the invoking IloCplex object, starting
with element cut[start] . |
ilog.concert.IloRange |
addEq(double v,
ilog.concert.IloNumExpr e)
See IloModeler.addEq(double v, IloNumExpr e) |
ilog.concert.IloRange |
addEq(double v,
ilog.concert.IloNumExpr e,
java.lang.String name)
See IloModeler.addEq(double v,
IloNumExpr e,
String name) |
ilog.concert.IloRange |
addEq(ilog.concert.IloNumExpr e,
double v)
See IloModeler.addEq(IloNumExpr e, double v) |
ilog.concert.IloRange |
addEq(ilog.concert.IloNumExpr e,
double v,
java.lang.String name)
See IloModeler.addEq(IloNumExpr e,
double v,
String name) |
ilog.concert.IloConstraint |
addEq(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
See IloModeler.addEq(IloNumExpr e1, IloNumExpr e2) |
ilog.concert.IloConstraint |
addEq(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
java.lang.String name)
See IloModeler.addEq(IloNumExpr e1,
IloNumExpr e2,
String name) |
ilog.concert.IloRange |
addGe(double v,
ilog.concert.IloNumExpr e)
See IloModeler.addGe(double v, IloNumExpr e) |
ilog.concert.IloRange |
addGe(double v,
ilog.concert.IloNumExpr e,
java.lang.String name)
See IloModeler.addGe(double v, IloNumExpr e,
String name) |
ilog.concert.IloRange |
addGe(ilog.concert.IloNumExpr e,
double v)
See IloModeler.addGe(IloNumExpr e, double v) |
ilog.concert.IloRange |
addGe(ilog.concert.IloNumExpr e,
double v,
java.lang.String name)
See IloModeler.addGe(IloNumExpr e,
double v,
String name) |
ilog.concert.IloConstraint |
addGe(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
See IloModeler.addGe(IloNumExpr e1, IloNumExpr e2) |
ilog.concert.IloConstraint |
addGe(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
java.lang.String name)
See IloModeler.addGe(IloNumExpr e1,
IloNumExpr e2,
String name) |
ilog.concert.IloConstraint |
addLazyConstraint(ilog.concert.IloConstraint cut)
This is an advanced method. |
ilog.concert.IloConstraint[] |
addLazyConstraints(ilog.concert.IloConstraint[] cut)
This is an advanced method. |
ilog.concert.IloConstraint[] |
addLazyConstraints(ilog.concert.IloConstraint[] cut,
int start,
int num)
This is an advanced method. |
ilog.concert.IloRange |
addLe(double v,
ilog.concert.IloNumExpr e)
See IloModeler.addLe(double v, IloNumExpr e) |
ilog.concert.IloRange |
addLe(double v,
ilog.concert.IloNumExpr e,
java.lang.String name)
See IloModeler.addLe(double v, IloNumExpr e,
String name) |
ilog.concert.IloRange |
addLe(ilog.concert.IloNumExpr e,
double v)
See IloModeler.addLe(IloNumExpr e, double v) |
ilog.concert.IloRange |
addLe(ilog.concert.IloNumExpr e,
double v,
java.lang.String name)
See IloModeler.addLe(IloNumExpr e, double v,
String name) |
ilog.concert.IloConstraint |
addLe(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
See IloModeler.addLe(IloNumExpr e1, IloNumExpr e2) |
ilog.concert.IloConstraint |
addLe(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
java.lang.String name)
See IloModeler.addLe(IloNumExpr e1, IloNumExpr e2,
String name) |
ilog.concert.IloLPMatrix |
addLPMatrix()
See IloMPModeler.addLPMatrix() |
ilog.concert.IloLPMatrix |
addLPMatrix(java.lang.String name)
See IloMPModeler.addLPMatrix(String name) |
ilog.concert.IloObjective |
addMaximize()
See IloMPModeler.addMaximize() |
ilog.concert.IloObjective |
addMaximize(ilog.concert.IloNumExpr expr)
See IloModeler.addMaximize(IloNumExpr) |
ilog.concert.IloObjective |
addMaximize(ilog.concert.IloNumExpr expr,
java.lang.String name)
See IloModeler.addMaximize(IloNumExpr, String) |
ilog.concert.IloObjective |
addMaximize(java.lang.String name)
See IloMPModeler.addMaximize(String) |
ilog.concert.IloObjective |
addMinimize()
See IloMPModeler.addMinimize() |
ilog.concert.IloObjective |
addMinimize(ilog.concert.IloNumExpr expr)
See IloModeler.addMinimize(IloNumExpr) |
ilog.concert.IloObjective |
addMinimize(ilog.concert.IloNumExpr expr,
java.lang.String name)
See IloModeler.addMinimize(IloNumExpr, String) |
ilog.concert.IloObjective |
addMinimize(java.lang.String name)
See IloMPModeler.addMinimize(String) |
ilog.concert.IloObjective |
addObjective(ilog.concert.IloObjectiveSense sense)
See IloMPModeler.addObjective(IloObjectiveSense) |
ilog.concert.IloObjective |
addObjective(ilog.concert.IloObjectiveSense sense,
ilog.concert.IloNumExpr expr)
See IloModeler.addObjective(IloObjectiveSense,
IloNumExpr) |
ilog.concert.IloObjective |
addObjective(ilog.concert.IloObjectiveSense sense,
ilog.concert.IloNumExpr expr,
java.lang.String name)
See IloModeler.addObjective(IloObjectiveSense,
IloNumExpr, String) |
ilog.concert.IloObjective |
addObjective(ilog.concert.IloObjectiveSense sense,
java.lang.String name)
See IloMPModeler.addObjective(IloObjectiveSense,
String) |
ilog.concert.IloRange |
addRange(double lb,
double ub)
See IloMPModeler.addRange(double lb, double ub) |
ilog.concert.IloRange |
addRange(double lb,
double ub,
java.lang.String name)
See IloMPModeler.addRange(double lb,
double ub,
String name) |
ilog.concert.IloRange |
addRange(double lb,
ilog.concert.IloNumExpr expr,
double ub)
See IloModeler.addRange(double lb,
IloNumExpr expr,
double ub) |
ilog.concert.IloRange |
addRange(double lb,
ilog.concert.IloNumExpr expr,
double ub,
java.lang.String name)
See IloModeler.addRange(double lb,
IloNumExpr expr,
double ub,
String name) |
ilog.concert.IloSOS1 |
addSOS1(ilog.concert.IloNumVar[] var,
double[] val)
See IloMPModeler.addSOS1(IloNumVar[] var,
double[] val) |
ilog.concert.IloSOS1 |
addSOS1(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
See IloMPModeler.addSOS1(IloNumVar[] var,
double[] val,
int start, int num) |
ilog.concert.IloSOS1 |
addSOS1(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
See IloMPModeler.addSOS1(IloNumVar[] var,
double[] val,
int start,
int num,
String name) |
ilog.concert.IloSOS1 |
addSOS1(ilog.concert.IloNumVar[] var,
double[] val,
java.lang.String name)
See IloMPModeler.addSOS1(IloNumVar[] var,
double[] val, String name) |
ilog.concert.IloSOS2 |
addSOS2(ilog.concert.IloNumVar[] var,
double[] val)
See IloMPModeler.addSOS2(IloNumVar[] var, double[] val) |
ilog.concert.IloSOS2 |
addSOS2(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
See IloMPModeler.addSOS2(IloNumVar[] var,
double[] val,
int start, int num) |
ilog.concert.IloSOS2 |
addSOS2(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
See IloMPModeler.addSOS2(IloNumVar[] var,
double[] val,
int start,
int num,
String name) |
ilog.concert.IloSOS2 |
addSOS2(ilog.concert.IloNumVar[] var,
double[] val,
java.lang.String name)
See IloMPModeler.addSOS2(IloNumVar[] var,
double[] val,
String name) |
void |
addToExpr(ilog.concert.IloObjective obj,
ilog.concert.IloNumExpr expr)
See IloMPModeler.addToExpr(IloObjective, IloNumExpr) |
void |
addToExpr(ilog.concert.IloRange rng,
ilog.concert.IloNumExpr expr)
See IloMPModeler.addToExpr(IloRange rng,
IloNumExpr expr) |
ilog.concert.IloConstraint |
addUserCut(ilog.concert.IloConstraint cut)
This is an advanced method. |
ilog.concert.IloConstraint[] |
addUserCuts(ilog.concert.IloConstraint[] cuts)
This is an advanced method. |
ilog.concert.IloConstraint[] |
addUserCuts(ilog.concert.IloConstraint[] cuts,
int start,
int num)
This is an advanced method. |
IloCplex.Goal |
and(IloCplex.Goal goal1,
IloCplex.Goal goal2)
Creates and returns an and goal. |
IloCplex.Goal |
and(IloCplex.Goal goal1,
IloCplex.Goal goal2,
IloCplex.Goal goal3)
Creates and returns an and goal. |
IloCplex.Goal |
and(IloCplex.Goal goal1,
IloCplex.Goal goal2,
IloCplex.Goal goal3,
IloCplex.Goal goal4)
Creates and returns an and goal. |
IloCplex.Goal |
and(IloCplex.Goal goal1,
IloCplex.Goal goal2,
IloCplex.Goal goal3,
IloCplex.Goal goal4,
IloCplex.Goal goal5)
Creates and returns an and goal. |
IloCplex.Goal |
and(IloCplex.Goal goal1,
IloCplex.Goal goal2,
IloCplex.Goal goal3,
IloCplex.Goal goal4,
IloCplex.Goal goal5,
IloCplex.Goal goal6)
Creates and returns an and goal. |
IloCplex.Goal |
apply(IloCplex.Goal goal,
IloCplex.NodeEvaluator evaluator)
Returns a goal that applies the evaluator to
the search tree defined by the goal . |
ilog.concert.IloIntVar |
boolVar()
See IloModeler.boolVar() |
ilog.concert.IloIntVar |
boolVar(ilog.concert.IloColumn column)
See IloMPModeler.boolVar(IloColumn column) |
ilog.concert.IloIntVar |
boolVar(ilog.concert.IloColumn column,
java.lang.String name)
See IloMPModeler.boolVar(IloColumn column,
String name) |
ilog.concert.IloIntVar |
boolVar(java.lang.String name)
See IloModeler.boolVar(String) |
ilog.concert.IloIntVar[] |
boolVarArray(ilog.concert.IloColumnArray cols)
See IloMPModeler.boolVarArray(IloColumnArray cols) |
ilog.concert.IloIntVar[] |
boolVarArray(ilog.concert.IloColumnArray cols,
java.lang.String[] name)
See IloMPModeler.boolVarArray(IloColumnArray cols,
String[] name) |
ilog.concert.IloIntVar[] |
boolVarArray(int n)
See IloModeler.boolVarArray(int) |
ilog.concert.IloIntVar[] |
boolVarArray(int n,
java.lang.String[] name)
See IloModeler.boolVarArray(int, String[]) |
IloCplex.Goal |
branchAsCplex()
Creates and returns a goal that branches the same way IloCplex
would in the absence of any goal at the current node. |
void |
clearCallbacks()
Removes all callbacks from the invoking IloCplex object. |
void |
clearCuts()
Deletes all user cuts added to the invoking IloCplex object
with the methods addCut and addCuts . |
void |
clearLazyConstraints()
This is an advanced method. |
void |
clearModel()
Removes all modeling objects from the active model. |
void |
clearUserCuts()
This is an advanced method. |
ilog.concert.IloColumn |
column(ilog.concert.IloLPMatrix lp)
See IloMPModeler.column(IloLPMatrix lp) |
ilog.concert.IloColumn |
column(ilog.concert.IloLPMatrix lp,
int[] ind,
double[] val)
See IloMPModeler.column(IloLPMatrix lp,
int[] ind, double[] val) |
ilog.concert.IloColumn |
column(ilog.concert.IloLPMatrix lp,
int[] ind,
double[] val,
int start,
int num)
See IloMPModeler.column(IloLPMatrix lp,
int[] ind, double[] val,
int start, int num) |
ilog.concert.IloColumn |
column(ilog.concert.IloObjective obj,
double val)
See IloMPModeler.column(IloObjective obj, double val) |
ilog.concert.IloColumn |
column(ilog.concert.IloRange rng,
double val)
See IloMPModeler.column(IloRange rng, double val) |
ilog.concert.IloColumnArray |
columnArray(ilog.concert.IloLPMatrix lp,
int num)
See IloMPModeler.columnArray(IloLPMatrix lp, int num) |
ilog.concert.IloColumnArray |
columnArray(ilog.concert.IloLPMatrix lp,
int num,
int[][] ind,
double[][] val)
See IloMPModeler.columnArray(IloLPMatrix lp, int num,
int[][] ind,
double[][] val) |
ilog.concert.IloColumnArray |
columnArray(ilog.concert.IloObjective obj,
double[] val)
See IloMPModeler.columnArray(IloObjective obj,
double[] val) |
ilog.concert.IloColumnArray |
columnArray(ilog.concert.IloObjective obj,
double[] val,
int start,
int num)
See IloMPModeler.columnArray(IloObjective obj,
double[] val,
int start, int num) |
ilog.concert.IloColumnArray |
columnArray(ilog.concert.IloRange rng,
double[] val)
See IloMPModeler.columnArray(IloRange rng,
double[] val) |
ilog.concert.IloColumnArray |
columnArray(ilog.concert.IloRange rng,
double[] val,
int start,
int num)
See IloMPModeler.columnArray(IloRange rng,
double[] val,
int start, int num) |
ilog.concert.IloNumExpr |
constant(double x)
See IloModeler.constant(double) |
ilog.concert.IloIntExpr |
constant(int x)
See IloModeler.constant(int) |
IloCplex.Goal |
constraintGoal(ilog.concert.IloConstraint cut)
Creates and returns a constraint goal for the specified constraint cut . |
IloCplex.Goal |
constraintGoal(ilog.concert.IloConstraint[] cut)
Creates and returns a constraint goal for the constraints specified in array cut . |
ilog.concert.IloConversion |
conversion(ilog.concert.IloNumVar[] ilovar,
ilog.concert.IloNumVarType type)
See IloMPModeler.conversion(IloNumVar[] ilovar,
IloNumVarType type) |
ilog.concert.IloConversion |
conversion(ilog.concert.IloNumVar[] ilovar,
ilog.concert.IloNumVarType[] type)
See IloMPModeler.conversion(IloNumVar[] ilovar,
IloNumVarType[] type) |
ilog.concert.IloConversion |
conversion(ilog.concert.IloNumVar[] ilovar,
ilog.concert.IloNumVarType[] type,
java.lang.String name)
See IloMPModeler.conversion(IloNumVar[] ilovar,
IloNumVarType[] type,
String name) |
ilog.concert.IloConversion |
conversion(ilog.concert.IloNumVar[] ilovar,
ilog.concert.IloNumVarType type,
java.lang.String name)
See IloMPModeler.conversion(IloNumVar[] ilovar,
IloNumVarType type,
String name) |
ilog.concert.IloConversion |
conversion(ilog.concert.IloNumVar var,
ilog.concert.IloNumVarType type)
See IloMPModeler.conversion(IloNumVar var,
IloNumVarType type) |
ilog.concert.IloConversion |
conversion(ilog.concert.IloNumVar var,
ilog.concert.IloNumVarType type,
java.lang.String name)
See IloMPModeler.conversion(IloNumVar var,
IloNumVarType type,
String name) |
java.util.Iterator |
conversionIterator()
Returns an iterator over all IloConversion objects in the
active model. |
void |
delDirection(ilog.concert.IloNumVar var)
Removes any existing branching direction assignments from the variable var . |
void |
delDirections(ilog.concert.IloNumVar[] var)
Removes any existing branching direction assignments all the variables in array var . |
void |
delDirections(ilog.concert.IloNumVar[] var,
int start,
int num)
Removes any existing branching direction assignments from num
variables in the array var , starting with variable
var[start] . |
void |
delete(ilog.concert.IloCopyable obj)
See IloMPModeler.delete(IloCopyable obj) |
void |
delete(ilog.concert.IloCopyable[] obj)
See IloMPModeler.delete(IloCopyable[] obj) |
void |
delete(ilog.concert.IloCopyable[] obj,
int beg,
int num)
See IloMPModeler.delete(IloCopyable[] obj,
int beg, int num) |
void |
delPriorities(ilog.concert.IloNumVar[] var)
Removes any existing branch priority assignment from the variables in array var . |
void |
delPriorities(ilog.concert.IloNumVar[] var,
int start,
int num)
Removes any existing branch priority assignment from num
variables in the array var , starting with variable
var[start] . |
void |
delPriority(ilog.concert.IloNumVar var)
Removes any existing branch priority assignment from variable var . |
ilog.concert.IloNumExpr |
diff(double v,
ilog.concert.IloNumExpr e1)
See IloModeler.diff(double, IloNumExpr) |
ilog.concert.IloIntExpr |
diff(ilog.concert.IloIntExpr e1,
ilog.concert.IloIntExpr e2)
See IloModeler.diff(IloIntExpr, IloIntExpr) |
ilog.concert.IloIntExpr |
diff(ilog.concert.IloIntExpr e,
int v)
See IloModeler.diff(IloIntExpr, int) |
ilog.concert.IloNumExpr |
diff(ilog.concert.IloNumExpr e,
double v)
See IloModeler.diff(IloNumExpr, double) |
ilog.concert.IloNumExpr |
diff(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
See IloModeler.diff(IloNumExpr, IloNumExpr) |
ilog.concert.IloIntExpr |
diff(int v,
ilog.concert.IloIntExpr e1)
See IloModeler.diff(int, IloIntExpr) |
double |
dualFarkas(ilog.concert.IloConstraint[] rng,
double[] y)
This is an advanced method. |
void |
end()
Releases the IloCplex license held by the invoking object,
and all the memory allocated by it. |
ilog.concert.IloRange |
eq(double v,
ilog.concert.IloNumExpr e)
See IloModeler.eq(double v, IloNumExpr e) |
ilog.concert.IloRange |
eq(double v,
ilog.concert.IloNumExpr e,
java.lang.String name)
See IloModeler.eq(double v, IloNumExpr e,
String name) |
ilog.concert.IloRange |
eq(ilog.concert.IloNumExpr e,
double v)
See IloModeler.eq(IloNumExpr e, double v) |
ilog.concert.IloRange |
eq(ilog.concert.IloNumExpr e,
double v,
java.lang.String name)
See IloModeler.eq(IloNumExpr e, double v, String name) |
ilog.concert.IloConstraint |
eq(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
See IloModeler.eq(IloNumExpr e1, IloNumExpr e2) |
ilog.concert.IloConstraint |
eq(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
java.lang.String name)
See IloModeler.eq(IloNumExpr e1, IloNumExpr e2,
String name) |
IloCplex.Goal |
eqGoal(double lhs,
ilog.concert.IloNumExpr expr)
Creates a constraint goal for the constraint lhs == expr . |
IloCplex.Goal |
eqGoal(ilog.concert.IloNumExpr expr,
double rhs)
Creates a constraint goal for the constraint expr == rhs . |
IloCplex.Goal |
eqGoal(ilog.concert.IloNumExpr expr1,
ilog.concert.IloNumExpr expr2)
Creates a constraint goal for the constraint expr1 == expr2 . |
void |
exportModel(java.lang.String name)
Writes the active model to a file. |
IloCplex.Goal |
failGoal()
Creates and returns a goal that always fails. |
boolean |
feasOpt(ilog.concert.IloNumVar[] vars,
double[] varlb,
double[] varub,
boolean optimize)
This function computes a minimal relaxation of variable bounds that make the active model feasible. |
boolean |
feasOpt(ilog.concert.IloRange[] rngs,
double[] rnglb,
double[] rngub,
boolean optimize)
This function computes a minimal relaxation of constraint bounds that make the active model feasible. |
boolean |
feasOpt(ilog.concert.IloRange[] rngs,
double[] rnglb,
double[] rngub,
ilog.concert.IloNumVar[] vars,
double[] varlb,
double[] varub,
boolean optimize)
This function computes a minimal relaxation of variable and/or constraint bounds that make the active model feasible. |
ilog.concert.IloRange |
ge(double v,
ilog.concert.IloNumExpr e)
See IloModeler.ge(double v, IloNumExpr e) |
ilog.concert.IloRange |
ge(double v,
ilog.concert.IloNumExpr e,
java.lang.String name)
See IloModeler.ge(double v, IloNumExpr e,
String name) |
ilog.concert.IloRange |
ge(ilog.concert.IloNumExpr e,
double v)
See IloModeler.ge(IloNumExpr e, double v) |
ilog.concert.IloRange |
ge(ilog.concert.IloNumExpr e,
double v,
java.lang.String name)
See IloModeler.ge(IloNumExpr e, double v, String name) |
ilog.concert.IloConstraint |
ge(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
See IloModeler.ge(IloNumExpr e1, IloNumExpr e2) |
ilog.concert.IloConstraint |
ge(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
java.lang.String name)
See IloModeler.ge(IloNumExpr e1,
IloNumExpr e2, String name) |
IloCplex.Goal |
geGoal(double lhs,
ilog.concert.IloNumExpr expr)
Creates a constraint goal for the constraint lhs >= expr . |
IloCplex.Goal |
geGoal(ilog.concert.IloNumExpr expr,
double rhs)
Creates a constraint goal for the constraint expr >= rhs . |
IloCplex.Goal |
geGoal(ilog.concert.IloNumExpr expr1,
ilog.concert.IloNumExpr expr2)
Creates a constraint goal for the constraint expr1 >= expr2 . |
int |
getAlgorithm()
Returns the algorithm that was used to generate the current solution. |
double[] |
getAX(ilog.concert.IloLPMatrix matrix)
Returns an array containing the row activity values for the constraints corresponding to the rows of an LP matrix. |
double[] |
getAX(ilog.concert.IloLPMatrix matrix,
int start,
int num)
Returns row activity values for a range of rows of an LP matrix. |
double |
getAX(ilog.concert.IloRange rng)
Returns the row activity value for a range constraint. |
double[] |
getAX(ilog.concert.IloRange[] rng)
Returns row activity values for an array of range constraints. |
double[] |
getAX(ilog.concert.IloRange[] rng,
int start,
int num)
Queries row activity values for a set of range constraints. |
IloCplex.BasisStatus |
getBasisStatus(ilog.concert.IloConstraint con)
Returns the basis status for the constraint con . |
IloCplex.BasisStatus |
getBasisStatus(ilog.concert.IloNumVar var)
Returns the basis status for variable var . |
IloCplex.BasisStatus[] |
getBasisStatuses(ilog.concert.IloConstraint[] con)
Returns basis statuses for the constraints in array con . |
IloCplex.BasisStatus[] |
getBasisStatuses(ilog.concert.IloConstraint[] con,
int start,
int num)
Returns basis statuses for a set of constraints. |
IloCplex.BasisStatus[] |
getBasisStatuses(ilog.concert.IloNumVar[] var)
Returns basis statuses for the variables in array var . |
IloCplex.BasisStatus[] |
getBasisStatuses(ilog.concert.IloNumVar[] var,
int start,
int num)
Returns basis statuses for a set of variables in array var . |
double |
getBestObjValue()
This method returns a bound on the optimal solution value of the active problem. |
void |
getBoundSA(double[] lblower,
double[] lbupper,
double[] ublower,
double[] ubupper,
ilog.concert.IloLPMatrix matrix)
Computes and returns sensitivity analysis information for the bounds of all variables in the specified LP matrix. |
void |
getBoundSA(double[] lblower,
double[] lbupper,
double[] ublower,
double[] ubupper,
ilog.concert.IloLPMatrix matrix,
int start,
int num)
Computes and returns sensitivity analysis information for the bounds of a set of variables in the specified LP matrix. |
void |
getBoundSA(double[] lblower,
double[] lbupper,
double[] ublower,
double[] ubupper,
ilog.concert.IloNumVar[] var)
Computes and returns sensitivity analysis information for variable bounds. |
void |
getBoundSA(double[] lblower,
double[] lbupper,
double[] ublower,
double[] ubupper,
ilog.concert.IloNumVar[] var,
int start,
int num)
Computes and returns sensitivity analysis information for variable bounds. |
IloCplex.CplexStatus |
getCplexStatus()
Returns the status of the IloCplex algorithm. |
IloCplex.CplexStatus |
getCplexSubStatus()
Returns the IloCplex.CplexStatus
status of the last node problem solved. |
double |
getCutoff()
Returns the cutoff for the objective value when nodes are being solved during branch-and-cut search. |
boolean |
getDefault(IloCplex.BooleanParam which)
Returns the default value of a Boolean parameter. |
double |
getDefault(IloCplex.DoubleParam which)
Returns the default value of a double parameter. |
int |
getDefault(IloCplex.IntParam which)
Returns the default value of an integer parameter. |
java.lang.String |
getDefault(IloCplex.StringParam which)
Returns the default value of a string parameter. |
IloCplex.DeleteMode |
getDeleteMode()
Returns the current delete mode of the invoking IloCplex
object. |
IloCplex.BranchDirection |
getDirection(ilog.concert.IloNumVar var)
Returns the branch direction for a variable. |
IloCplex.BranchDirection[] |
getDirections(ilog.concert.IloNumVar[] var)
Returns branch directions for an array of variables. |
IloCplex.BranchDirection[] |
getDirections(ilog.concert.IloNumVar[] var,
int start,
int num)
Returns branch directions for a set of variables. |
double |
getDual(ilog.concert.IloRange rng)
Returns the dual solution value for a constraint. |
double[] |
getDuals(ilog.concert.IloLPMatrix matrix)
Returns the dual solution vector for the constraints corresponding to the rows of an LP matrix. |
double[] |
getDuals(ilog.concert.IloLPMatrix matrix,
int start,
int num)
Returns dual solution values for the constraints corresponding to a range of rows of an LP matrix. |
double[] |
getDuals(ilog.concert.IloRange[] rng)
Returns dual solution values for an array of range constraints. |
double[] |
getDuals(ilog.concert.IloRange[] rng,
int start,
int num)
Returns dual solution values for a set of constraints. |
IloCplex.IIS |
getIIS()
Computes and returns the IIS (Irreducibly Inconsistent Set) of the active model if it is an infeasible LP. |
int |
getIncumbentNode()
Returns the node number where the current incumbent was found. |
double |
getMax(IloCplex.DoubleParam which)
Returns the maximum allowed value for a double parameter. |
int |
getMax(IloCplex.IntParam which)
Returns the maximum allowed value for an integer parameter. |
double |
getMin(IloCplex.DoubleParam which)
Returns the minimum value allowed for a double parameter. |
int |
getMin(IloCplex.IntParam which)
Returns the minimum value allowed for an integer parameter. |
int |
getNbarrierIterations()
Returns the number of barrier iterations from the last solve. |
int |
getNbinVars()
Returns the number of binary (or Boolean) variables in the matrix representation of the active model. |
int |
getNcliques()
Returns the number of clique cuts added to the problem during the last solve. |
int |
getNcols()
Returns the number of columns in the matrix representation of the active model. |
int |
getNcovers()
Returns the number of cover cuts added to the problem during the last solve. |
int |
getNcrossDExch()
Returns the number of dual exchange operations in the crossover of the last solve. |
int |
getNcrossDPush()
Returns the number of dual push operations in the crossover of the last solve. |
int |
getNcrossPExch()
Returns the number of primal exchange operations in the crossover of the last solve. |
int |
getNcrossPPush()
Returns the number of primal push operations in the crossover of the last solve. |
int |
getNdualSuperbasics()
Returns the number of dual superbasic variables in the basis. |
int |
getNintVars()
Returns the number of integer variables in the matrix representation of the active model. |
int |
getNiterations()
Returns the number of iterations from the last solve. |
int |
getNnodes()
Returns the number of branch-and-cut nodes explored in solving the active model. |
int |
getNnodesLeft()
Returns the number of unexplored nodes in the branch-and-cut tree. |
int |
getNNZs()
Returns the number of nonzero elements in the matrix representation of the active model. |
int |
getNphaseOneIterations()
Returns the number of phase I simplex iterations from the last solve. |
int |
getNprimalSuperbasics()
Returns the number of primal superbasic variables in the basis. |
int |
getNQCs()
Returns the number of quadratic constraints in the active model. |
int |
getNrows()
Returns the number of rows of the matrix representation of the active model. |
int |
getNsemiContVars()
Returns the number of semi-continuous variables in the matrix representation of the active model. |
int |
getNsemiIntVars()
Returns the number of semi-integer variables in the matrix representation of the active model. |
int |
getNsiftingIterations()
Returns the number of sifting iterations from the last solve. |
int |
getNsiftingPhaseOneIterations()
Returns the number of sifting phase I iterations from the last solve. |
int |
getNSOS1()
Returns the number of SOS s of type 1 in the active model. |
int |
getNSOS2()
Returns the number of SOS s of type 2 in the active model. |
int |
getNSOSs()
Returns the number of SOS s of both types, 1 and 2 in the
active model. |
ilog.concert.IloObjective |
getObjective()
Returns the IloObjective object of the
active model, or null if no IloObjective object
is currently in the active model. |
void |
getObjSA(double[] lower,
double[] upper,
ilog.concert.IloLPMatrix matrix)
Computes and returns sensitivity analysis information for objective coefficients of the variables corresponding to the columns of the specified LP matrix. |
void |
getObjSA(double[] lower,
double[] upper,
ilog.concert.IloLPMatrix matrix,
int start,
int num)
Computes and returns sensitivity analysis information for objective coefficients of the variables corresponding to a range of columns of the specified LP matrix. |
void |
getObjSA(double[] lower,
double[] upper,
ilog.concert.IloNumVar[] var)
Computes and returns sensitivity analysis information for objective coefficients for an array of variables. |
void |
getObjSA(double[] lower,
double[] upper,
ilog.concert.IloNumVar[] var,
int start,
int num)
Computes and returns sensitivity analysis information for objective coefficients for a set of variables. |
double |
getObjValue()
Returns the objective value of the current solution. |
boolean |
getParam(IloCplex.BooleanParam which)
Returns the current value of a Boolean parameter. |
double |
getParam(IloCplex.DoubleParam which)
Returns the current value of a double parameter. |
int |
getParam(IloCplex.IntParam which)
Returns the current value of an integer parameter. |
java.lang.String |
getParam(IloCplex.StringParam which)
Returns the current value of a string parameter. |
int[] |
getPriorities(ilog.concert.IloNumVar[] var)
Returns branch priorities for an array of variables. |
int[] |
getPriorities(ilog.concert.IloNumVar[] var,
int start,
int num)
Returns branch priorities for a set of variables. |
int |
getPriority(ilog.concert.IloNumVar var)
Returns the branch priority for a variable. |
IloCplex.Quality |
getQuality(IloCplex.QualityType which)
Returns an IloCplex.Quality object that contains
the requested quality measure. |
void |
getRangeSA(double[] lblower,
double[] lbupper,
double[] ublower,
double[] ubupper,
ilog.concert.IloLPMatrix matrix)
Computes and returns sensitivity analysis information for the constraints corresponding to the rows of the LP matrix matrix . |
void |
getRangeSA(double[] lblower,
double[] lbupper,
double[] ublower,
double[] ubupper,
ilog.concert.IloLPMatrix matrix,
int start,
int num)
Computes and returns sensitivity analysis information for the constraints corresponding to num rows of the LP matrix
matrix starting with row start . |
void |
getRangeSA(double[] lblower,
double[] lbupper,
double[] ublower,
double[] ubupper,
ilog.concert.IloRange[] rng)
Computes and returns sensitivity analysis information for range constraint bounds. |
void |
getRangeSA(double[] lblower,
double[] lbupper,
double[] ublower,
double[] ubupper,
ilog.concert.IloRange[] rng,
int start,
int num)
Computes and returns sensitivity analysis information for range constraint bounds. |
ilog.concert.IloLinearNumExpr |
getRay()
This is an advanced method. |
double |
getReducedCost(ilog.concert.IloNumVar ivar)
Returns the reduced cost for a variable. |
double[] |
getReducedCosts(ilog.concert.IloLPMatrix matrix)
Returns reduced costs for the variables corresponding to the columns of an LP matrix. |
double[] |
getReducedCosts(ilog.concert.IloLPMatrix matrix,
int start,
int num)
Returns reduced costs for the variables corresponding to a range of columns of LP matrix. |
double[] |
getReducedCosts(ilog.concert.IloNumVar[] var)
Returns reduced costs for an array of variables. |
double[] |
getReducedCosts(ilog.concert.IloNumVar[] var,
int start,
int num)
Returns reduced costs for a set of variables. |
void |
getRHSSA(double[] lower,
double[] upper,
ilog.concert.IloLPMatrix matrix)
Computes and returns sensitivity analysis information for RHS values of the constraints corresponding to the rows of an LP matrix. |
void |
getRHSSA(double[] lower,
double[] upper,
ilog.concert.IloLPMatrix matrix,
int start,
int num)
Computes and returns sensitivity analysis information for RHS values of the constraints corresponding to a range of rows of an LP matrix. |
void |
getRHSSA(double[] lower,
double[] upper,
ilog.concert.IloRange[] rng)
Computes and returns sensitivity analysis information for RHS values of constraints. |
void |
getRHSSA(double[] lower,
double[] upper,
ilog.concert.IloRange[] rng,
int start,
int num)
Computes and returns sensitivity analysis information for RHS values of a set of constraints. |
double |
getSlack(ilog.concert.IloRange rng)
Returns the slack value for a range constraint. |
double[] |
getSlacks(ilog.concert.IloLPMatrix matrix)
Returns slack values for the constraints corresponding to the rows of an LP matrix. |
double[] |
getSlacks(ilog.concert.IloLPMatrix matrix,
int start,
int num)
Returns slack values for a range of rows of an LP matrix. |
double[] |
getSlacks(ilog.concert.IloRange[] rng)
Returns slack values for an array of range constraints. |
double[] |
getSlacks(ilog.concert.IloRange[] rng,
int start,
int num)
Returns slack values for a set of constraints. |
IloCplex.Status |
getStatus()
Returns the solution status of the active model. |
int |
getSubAlgorithm()
Returns the algorithm that was used to generate the solution of the last branch-and-cut node solved during a MIP solve. |
double |
getValue(ilog.concert.IloNumExpr expr)
Returns the value that expr takes for the current solution. |
double |
getValue(ilog.concert.IloNumVar var)
Returns the solution value for a variable. |
double[] |
getValues(ilog.concert.IloLPMatrix matrix)
Returns the solution vector for the columns of an LP matrix. |
double[] |
getValues(ilog.concert.IloLPMatrix matrix,
int start,
int num)
Returns the solution vector for a range of columns of an LP matrix. |
double[] |
getValues(ilog.concert.IloNumVar[] var)
Returns solution values for an array of variables. |
double[] |
getValues(ilog.concert.IloNumVar[] var,
int start,
int num)
Returns solution values for a set of variables. |
java.lang.String |
getVersion()
Returns a string that indicates the version of CPLEX. |
IloCplex.Goal |
globalCutGoal(ilog.concert.IloConstraint cut)
Creates and returns a global cut goal for the constraint cut . |
IloCplex.Goal |
globalCutGoal(ilog.concert.IloConstraint[] cut)
Creates and returns a global cut goal for the constraints specified in array cut . |
void |
importModel(java.lang.String name)
Reads a model into the active model. |
ilog.concert.IloIntVar |
intVar(ilog.concert.IloColumn column,
int lb,
int ub)
See IloMPModeler.intVar(IloColumn column,
int lb, int ub) |
ilog.concert.IloIntVar |
intVar(ilog.concert.IloColumn column,
int lb,
int ub,
java.lang.String name)
See IloMPModeler.intVar(IloColumn column,
int lb, int ub, String name) |
ilog.concert.IloIntVar |
intVar(int lb,
int ub)
See IloModeler.intVar(int, int) |
ilog.concert.IloIntVar |
intVar(int lb,
int ub,
java.lang.String name)
See IloModeler.intVar(int, int, String) |
ilog.concert.IloIntVar[] |
intVarArray(ilog.concert.IloColumnArray cols,
int[] lb,
int[] ub)
See IloMPModeler.intVarArray(IloColumnArray cols,
int[] lb, int[] ub) |
ilog.concert.IloIntVar[] |
intVarArray(ilog.concert.IloColumnArray cols,
int[] lb,
int[] ub,
java.lang.String[] name)
See IloMPModeler.intVarArray(IloColumnArray cols,
int[] lb, int[] ub,
String[] name) |
ilog.concert.IloIntVar[] |
intVarArray(ilog.concert.IloColumnArray cols,
int lb,
int ub)
See IloMPModeler.intVarArray(IloColumnArray cols,
int lb, int ub) |
ilog.concert.IloIntVar[] |
intVarArray(ilog.concert.IloColumnArray cols,
int lb,
int ub,
java.lang.String[] name)
See IloMPModeler.intVarArray(IloColumnArray cols,
int lb, int ub,
String[] name) |
ilog.concert.IloIntVar[] |
intVarArray(int n,
int[] lb,
int[] ub)
See IloModeler.intVarArray(int, int[], int[]) |
ilog.concert.IloIntVar[] |
intVarArray(int n,
int[] lb,
int[] ub,
java.lang.String[] name)
See IloModeler.intVarArray(int, int[], int[], String[]) |
ilog.concert.IloIntVar[] |
intVarArray(int n,
int lb,
int ub)
See IloModeler.intVarArray(int, int, int) |
ilog.concert.IloIntVar[] |
intVarArray(int n,
int lb,
int ub,
java.lang.String[] name)
See IloModeler.intVarArray(int, int, int, String[]) |
boolean |
isDualFeasible()
Returns true if a dual feasible solution is available. |
boolean |
isMIP()
Returns true if the active model is a MIP. |
boolean |
isPrimalFeasible()
Returns true if a primal feasible solution is available. |
boolean |
isQC()
Returns true if the active model has quadratic
constraints. |
boolean |
isQO()
Returns true if the active model has a quadratic objective
function. |
ilog.concert.IloRange |
le(double v,
ilog.concert.IloNumExpr e)
See IloModeler.le(double v, IloNumExpr e) |
ilog.concert.IloRange |
le(double v,
ilog.concert.IloNumExpr e,
java.lang.String name)
See IloModeler.le(double v, IloNumExpr e, String name) |
ilog.concert.IloRange |
le(ilog.concert.IloNumExpr e,
double v)
See IloModeler.le(IloNumExpr e, double v) |
ilog.concert.IloRange |
le(ilog.concert.IloNumExpr e,
double v,
java.lang.String name)
See IloModeler.le(IloNumExpr e, double v, String name) |
ilog.concert.IloConstraint |
le(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
See IloModeler.le(IloNumExpr e1, IloNumExpr e2) |
ilog.concert.IloConstraint |
le(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2,
java.lang.String name)
See IloModeler.le(IloNumExpr e1, IloNumExpr e2,
String name) |
IloCplex.Goal |
leGoal(double lhs,
ilog.concert.IloNumExpr expr)
Creates a constraint goal for the constraint lhs >= expr . |
IloCplex.Goal |
leGoal(ilog.concert.IloNumExpr expr,
double rhs)
Creates a constraint goal for the constraint expr <= rhs . |
IloCplex.Goal |
leGoal(ilog.concert.IloNumExpr expr1,
ilog.concert.IloNumExpr expr2)
Creates a constraint goal for the constraint expr1 <= expr2 . |
IloCplex.Goal |
limitSearch(IloCplex.Goal goal,
IloCplex.SearchLimit limit)
This function creates and returns a goal that limits the exploration of the search tree defined by goal , as specified by
limit . |
ilog.concert.IloLinearIntExpr |
linearIntExpr()
See IloModeler.linearIntExpr() |
ilog.concert.IloLinearIntExpr |
linearIntExpr(int val)
See IloModeler.linearIntExpr(int) |
ilog.concert.IloLinearNumExpr |
linearNumExpr()
See IloModeler.linearNumExpr() |
ilog.concert.IloLinearNumExpr |
linearNumExpr(double val)
See IloModeler.linearNumExpr(double) |
ilog.concert.IloLPMatrix |
LPMatrix()
See IloMPModeler.LPMatrix() |
ilog.concert.IloLPMatrix |
LPMatrix(java.lang.String name)
See IloMPModeler.LPMatrix(String name) |
java.util.Iterator |
LPMatrixIterator()
Returns an iterator over all IloLPMatrix objects in the
active model. |
ilog.concert.IloObjective |
maximize()
See IloMPModeler.maximize() |
ilog.concert.IloObjective |
maximize(ilog.concert.IloNumExpr expr)
See IloModeler.maximize(IloNumExpr) |
ilog.concert.IloObjective |
maximize(ilog.concert.IloNumExpr expr,
java.lang.String name)
See IloModeler.maximize(IloNumExpr, String) |
ilog.concert.IloObjective |
maximize(java.lang.String name)
See IloMPModeler.maximize(String) |
ilog.concert.IloObjective |
minimize()
See IloMPModeler.minimize() |
ilog.concert.IloObjective |
minimize(ilog.concert.IloNumExpr expr)
See IloModeler.minimize(IloNumExpr) |
ilog.concert.IloObjective |
minimize(ilog.concert.IloNumExpr expr,
java.lang.String name)
See IloModeler.minimize(IloNumExpr, String) |
ilog.concert.IloObjective |
minimize(java.lang.String name)
See IloMPModeler.minimize(String) |
ilog.concert.IloIntExpr |
negative(ilog.concert.IloIntExpr e)
See IloModeler.negative(IloIntExpr) |
ilog.concert.IloNumExpr |
negative(ilog.concert.IloNumExpr e)
See IloModeler.negative(IloNumExpr) |
ilog.concert.IloNumVar |
numVar(double lb,
double ub)
See IloModeler.numVar(double, double) |
ilog.concert.IloNumVar |
numVar(double lb,
double ub,
ilog.concert.IloNumVarType type)
See IloModeler.numVar(double, double, IloNumVarType) |
ilog.concert.IloNumVar |
numVar(double lb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String name)
See IloModeler.numVar(double, double, IloNumVarType,
String) |
ilog.concert.IloNumVar |
numVar(double lb,
double ub,
java.lang.String name)
See IloModeler.numVar(double, double, String) |
ilog.concert.IloNumVar |
numVar(ilog.concert.IloColumn column,
double lb,
double ub)
See IloMPModeler.numVar(IloColumn column,
double lb, double ub) |
ilog.concert.IloNumVar |
numVar(ilog.concert.IloColumn column,
double lb,
double ub,
ilog.concert.IloNumVarType type)
See IloMPModeler.numVar(IloColumn column,
double lb, double ub,
IloNumVarType type) |
ilog.concert.IloNumVar |
numVar(ilog.concert.IloColumn column,
double lb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String name)
See IloMPModeler.numVar(IloColumn column,
double lb, double ub,
IloNumVarType type,
String name) |
ilog.concert.IloNumVar |
numVar(ilog.concert.IloColumn column,
double lb,
double ub,
java.lang.String name)
See IloMPModeler.numVar(IloColumn column,
double lb, double ub,
String name) |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double[] lb,
double[] ub)
See IloMPModeler.numVarArray(IloColumnArray cols,
double[] lb, double[] ub) |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double[] lb,
double[] ub,
ilog.concert.IloNumVarType[] type)
See IloMPModeler.numVarArray(IloColumnArray cols,
double[] lb, double[] ub,
IloNumVarType[] type) |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double[] lb,
double[] ub,
ilog.concert.IloNumVarType[] type,
java.lang.String[] name)
See IloMPModeler.numVarArray(IloColumnArray cols,
double[] lb, double[] ub,
IloNumVarType[] type,
String[] name) |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double[] lb,
double[] ub,
java.lang.String[] name)
See IloMPModeler.numVarArray(IloColumnArray cols,
double[] lb, double[] ub,
String[] name) |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double lb,
double ub)
See IloMPModeler.numVarArray(IloColumnArray cols,
double lb, double ub) |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double lb,
double ub,
ilog.concert.IloNumVarType type)
See IloMPModeler.numVarArray(IloColumnArray cols,
double lb, double ub,
IloNumVarType type) |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double lb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String[] name)
See IloMPModeler.numVarArray(IloColumnArray cols,
double lb, double ub,
IloNumVarType type,
String[] name) |
ilog.concert.IloNumVar[] |
numVarArray(ilog.concert.IloColumnArray cols,
double lb,
double ub,
java.lang.String[] name)
See IloMPModeler.numVarArray(IloColumnArray cols,
double lb, double ub,
String[] name) |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double[] lb,
double[] ub)
See IloModeler.numVarArray(int, double[], double[]) |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double[] lb,
double[] ub,
ilog.concert.IloNumVarType[] type)
See IloModeler.numVarArray(int, double[], double[],
IloNumVarType[]) |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double[] lb,
double[] ub,
ilog.concert.IloNumVarType[] type,
java.lang.String[] name)
See IloModeler.numVarArray(int, double[], double[],
IloNumVarType[], String[]) |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double[] lb,
double[] ub,
java.lang.String[] name)
See IloModeler.numVarArray(int, double[], double[],
String[]) |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double lb,
double ub)
See IloModeler.numVarArray(int, double, double) |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double lb,
double ub,
ilog.concert.IloNumVarType type)
See IloModeler.numVarArray(int, double, double,
IloNumVarType) |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double lb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String[] name)
See IloModeler.numVarArray(int, double, double,
IloNumVarType, String[]) |
ilog.concert.IloNumVar[] |
numVarArray(int n,
double lb,
double ub,
java.lang.String[] name)
See IloModeler.numVarArray(int, double, double,
String[]) |
ilog.concert.IloObjective |
objective(ilog.concert.IloObjectiveSense sense)
See IloMPModeler.objective(IloObjectiveSense) |
ilog.concert.IloObjective |
objective(ilog.concert.IloObjectiveSense sense,
ilog.concert.IloNumExpr expr)
See IloModeler.objective(IloObjectiveSense, IloNumExpr) |
ilog.concert.IloObjective |
objective(ilog.concert.IloObjectiveSense sense,
ilog.concert.IloNumExpr expr,
java.lang.String name)
See IloModeler.objective(IloObjectiveSense, IloNumExpr,
String) |
ilog.concert.IloObjective |
objective(ilog.concert.IloObjectiveSense sense,
java.lang.String name)
See IloMPModeler.objective(IloObjectiveSense, String) |
IloCplex.Goal |
or(IloCplex.Goal goal1,
IloCplex.Goal goal2)
Creates and returns an or goal. |
IloCplex.Goal |
or(IloCplex.Goal goal1,
IloCplex.Goal goal2,
IloCplex.Goal goal3)
Creates and returns an or goal. |
IloCplex.Goal |
or(IloCplex.Goal goal1,
IloCplex.Goal goal2,
IloCplex.Goal goal3,
IloCplex.Goal goal4)
Creates and returns an or goal. |
IloCplex.Goal |
or(IloCplex.Goal goal1,
IloCplex.Goal goal2,
IloCplex.Goal goal3,
IloCplex.Goal goal4,
IloCplex.Goal goal5)
Creates and returns an or goal. |
IloCplex.Goal |
or(IloCplex.Goal goal1,
IloCplex.Goal goal2,
IloCplex.Goal goal3,
IloCplex.Goal goal4,
IloCplex.Goal goal5,
IloCplex.Goal goal6)
Creates and returns an or goal. |
java.io.PrintStream |
output()
Returns the output stream of the invoking IloCplex object. |
ilog.concert.IloNumExpr |
piecewiseLinear(ilog.concert.IloNumExpr expr,
double[] points,
double[] slopes,
double a,
double fa)
See IloMPModeler.piecewiseLinear(IloNumExpr, double[],
double[], double,
double) |
ilog.concert.IloNumExpr |
piecewiseLinear(ilog.concert.IloNumExpr expr,
double[] points,
int startPoints,
int num,
double[] slopes,
int startSlopes,
double a,
double fa)
See IloMPModeler.piecewiseLinear(IloNumExpr, double[],
int, int, double[],
int, double, double) |
ilog.concert.IloNumExpr |
prod(double v,
ilog.concert.IloNumExpr e1)
See IloModeler.prod(double, IloNumExpr) |
ilog.concert.IloNumExpr |
prod(double v,
ilog.concert.IloNumVar var1,
ilog.concert.IloNumVar var2)
See IloMPModeler.prod(double, IloNumVar, IloNumVar) |
ilog.concert.IloIntExpr |
prod(ilog.concert.IloIntExpr e1,
ilog.concert.IloIntExpr e2)
See IloModeler.prod(IloIntExpr, IloIntExpr) |
ilog.concert.IloIntExpr |
prod(ilog.concert.IloIntExpr e,
int v)
See IloModeler.prod(IloIntExpr, int) |
ilog.concert.IloNumExpr |
prod(ilog.concert.IloNumExpr e,
double v)
See IloModeler.prod(IloNumExpr, double) |
ilog.concert.IloNumExpr |
prod(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
See IloModeler.prod(IloNumExpr, IloNumExpr) |
ilog.concert.IloNumExpr |
prod(ilog.concert.IloNumVar var1,
double v,
ilog.concert.IloNumVar var2)
See IloMPModeler.prod(IloNumVar, double, IloNumVar) |
ilog.concert.IloNumExpr |
prod(ilog.concert.IloNumVar var1,
ilog.concert.IloNumVar var2,
double v)
See IloMPModeler.prod(IloNumVar, IloNumVar, double) |
ilog.concert.IloIntExpr |
prod(int v,
ilog.concert.IloIntExpr e1)
See IloModeler.prod(int, IloIntExpr) |
static void |
putenv(java.lang.String envstr)
Sets the ILOG_LICENSE_FILE environment variable
used by CPLEX. |
void |
qpIndefCertificate(ilog.concert.IloNumVar[] var,
double[] x)
Returns a vector proving that the Q matrix of QP is not positive semi-definite. |
ilog.concert.IloRange |
range(double lb,
double ub)
See IloMPModeler.range(double lb, double ub) |
ilog.concert.IloRange |
range(double lb,
double ub,
java.lang.String name)
See IloMPModeler.range(double lb,
double ub,
String name) |
ilog.concert.IloRange |
range(double lb,
ilog.concert.IloNumExpr expr,
double ub)
See IloModeler.range(double lb,
IloNumExpr expr,
double ub) |
ilog.concert.IloRange |
range(double lb,
ilog.concert.IloNumExpr expr,
double ub,
java.lang.String name)
See IloModeler.range(double lb,
IloNumExpr expr,
double ub,
String name) |
java.util.Iterator |
rangeIterator()
Returns an iterator over all IloRange objects in the
active model. |
void |
readBasis(java.lang.String name)
Reads a simplex basis from the BAS file indicated by name ,
and copies that basis into the invoking object. |
void |
readMIPStart(java.lang.String name)
Reads the MST file indicated by name and
copies the MIP start information into the invoking object. |
void |
readOrder(java.lang.String name)
Reads the ORD file indicated by name
and copies the priority order information
into a CPLEX problem object. |
void |
readParam(java.lang.String name)
Reads parameters and their settings from the file indicated by name and applies them to the invoking object. |
void |
readTree(java.lang.String name)
Reads branch-and-bound progress information from a prior run (contained in the TRE file indicated by name )
into the invoking object. |
void |
readVectors(java.lang.String name)
Reads a barrier solution from the VEC file indicated by name
and copies this information into the invoking object. |
static void |
registerLicense(java.lang.String ilm_CPLEX_license,
int ilm_CPLEX_license_signature)
Passes memory-based information to the ILOG License Manager. |
ilog.concert.IloLinearNumExpr |
scalProd(double[] vals,
ilog.concert.IloNumVar[] vars)
See IloModeler.scalProd(double[], IloNumVar[]) |
ilog.concert.IloLinearNumExpr |
scalProd(double[] vals,
ilog.concert.IloNumVar[] vars,
int start,
int num)
See IloModeler.scalProd(double[], IloNumVar[], int, int) |
ilog.concert.IloLinearIntExpr |
scalProd(ilog.concert.IloIntVar[] vars,
int[] vals)
See IloModeler.scalProd(IloIntVar[], int[]) |
ilog.concert.IloLinearIntExpr |
scalProd(ilog.concert.IloIntVar[] vars,
int[] vals,
int start,
int num)
See IloModeler.scalProd(IloIntVar[], int[], int, int) |
ilog.concert.IloLinearNumExpr |
scalProd(ilog.concert.IloNumVar[] vars,
double[] vals)
See IloModeler.scalProd(IloNumVar[], double[]) |
ilog.concert.IloLinearNumExpr |
scalProd(ilog.concert.IloNumVar[] vars,
double[] vals,
int start,
int num)
See IloModeler.scalProd(IloNumVar[], double[], int, int) |
ilog.concert.IloLinearNumExpr |
scalProd(ilog.concert.IloNumVar[] vars,
int[] vals)
See IloModeler.scalProd(IloNumVar[], int[]) |
ilog.concert.IloLinearNumExpr |
scalProd(ilog.concert.IloNumVar[] vars,
int[] vals,
int start,
int num)
Creates and returns a new linear expression representing the scalar product of the num variables in vars starting
at element start with the corresponding values in
vals . |
ilog.concert.IloLinearIntExpr |
scalProd(int[] vals,
ilog.concert.IloIntVar[] vars)
See IloModeler.scalProd(int[], IloIntVar[]) |
ilog.concert.IloLinearIntExpr |
scalProd(int[] vals,
ilog.concert.IloIntVar[] vars,
int start,
int num)
See IloModeler.scalProd(int[], IloIntVar[], int, int) |
ilog.concert.IloLinearNumExpr |
scalProd(int[] vals,
ilog.concert.IloNumVar[] vars)
See IloModeler.scalProd(int[], IloNumVar[]) |
ilog.concert.IloLinearNumExpr |
scalProd(int[] vals,
ilog.concert.IloNumVar[] vars,
int start,
int num)
Creates and returns a new linear expression representing the scalar product of the num values in vals starting
at element start with the corresponding variables in
vars . |
ilog.concert.IloSemiContVar |
semiContVar(double lb,
double ub,
ilog.concert.IloNumVarType type)
See IloMPModeler.semiContVar(double, double,
IloNumVarType) |
ilog.concert.IloSemiContVar |
semiContVar(double lb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String name)
See IloMPModeler.semiContVar(double, double,
IloNumVarType, String) |
ilog.concert.IloSemiContVar |
semiContVar(ilog.concert.IloColumn column,
double lb,
double ub,
ilog.concert.IloNumVarType type)
See IloMPModeler.semiContVar(IloColumn, double,
double, IloNumVarType) |
ilog.concert.IloSemiContVar |
semiContVar(ilog.concert.IloColumn column,
double lb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String name)
See IloMPModeler.semiContVar(IloColumn, double,
double, IloNumVarType,
String) |
ilog.concert.IloSemiContVar[] |
semiContVarArray(ilog.concert.IloColumnArray cols,
double[] lb,
double[] ub,
ilog.concert.IloNumVarType[] type)
See IloMPModeler.semiContVarArray(IloColumnArray,
double[], double[],
IloNumVarType[]) |
ilog.concert.IloSemiContVar[] |
semiContVarArray(ilog.concert.IloColumnArray cols,
double[] lb,
double[] ub,
ilog.concert.IloNumVarType[] type,
java.lang.String[] name)
See IloMPModeler.semiContVarArray(IloColumnArray cols,
double[] lb,
double[] ub,
IloNumVarType[] type,
String[] name) |
ilog.concert.IloSemiContVar[] |
semiContVarArray(ilog.concert.IloColumnArray cols,
double lb,
double ub,
ilog.concert.IloNumVarType type)
See IloMPModeler.semiContVarArray(IloColumnArray,
double,
double, IloNumVarType) |
ilog.concert.IloSemiContVar[] |
semiContVarArray(ilog.concert.IloColumnArray cols,
double lb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String[] name)
See IloMPModeler.semiContVarArray(IloColumnArray,
double, double,
IloNumVarType,
String[]) |
ilog.concert.IloSemiContVar[] |
semiContVarArray(int n,
double[] lb,
double[] ub,
ilog.concert.IloNumVarType[] type)
See IloMPModeler.semiContVarArray(int, double[],
double[],
IloNumVarType[]) |
ilog.concert.IloSemiContVar[] |
semiContVarArray(int n,
double[] lb,
double[] ub,
ilog.concert.IloNumVarType[] type,
java.lang.String[] name)
See IloMPModeler.semiContVarArray(int, double[],
double[],
IloNumVarType[],
String[]) |
ilog.concert.IloSemiContVar[] |
semiContVarArray(int n,
double lb,
double ub,
ilog.concert.IloNumVarType type)
See IloMPModeler.semiContVarArray(int, double,
double, IloNumVarType) |
ilog.concert.IloSemiContVar[] |
semiContVarArray(int n,
double lb,
double ub,
ilog.concert.IloNumVarType type,
java.lang.String[] name)
See IloMPModeler.semiContVarArray(int, double,
double, IloNumVarType,
String[]) |
void |
setBasisStatuses(ilog.concert.IloNumVar[] var,
IloCplex.BasisStatus[] cstat,
ilog.concert.IloRange[] con,
IloCplex.BasisStatus[] rstat)
Sets basis statuses for variables and constraints. |
void |
setBasisStatuses(ilog.concert.IloNumVar[] var,
IloCplex.BasisStatus[] cstat,
int cstart,
int cnum,
ilog.concert.IloConstraint[] con,
IloCplex.BasisStatus[] rstat,
int rstart,
int rnum)
Sets basis statuses for a set of variables and constraints. |
void |
setDefaults()
Resets all parameters to their default values. |
void |
setDeleteMode(IloCplex.DeleteMode mode)
Sets the delete mode. |
void |
setDirection(ilog.concert.IloNumVar var,
IloCplex.BranchDirection dir)
Sets the branching direction for a variable. |
void |
setDirections(ilog.concert.IloNumVar[] var,
IloCplex.BranchDirection[] brdir)
Sets branching directions for an array of variables. |
void |
setDirections(ilog.concert.IloNumVar[] var,
IloCplex.BranchDirection[] brdir,
int start,
int num)
Sets branching directions for a set of variables. |
void |
setLinearCoef(ilog.concert.IloObjective obj,
double val,
ilog.concert.IloNumVar var)
See IloMPModeler.setLinearCoef(IloObjective,
double, IloNumVar) |
void |
setLinearCoef(ilog.concert.IloObjective obj,
ilog.concert.IloNumVar var,
double val)
See IloMPModeler.setLinearCoef(IloObjective,
IloNumVar, double) |
void |
setLinearCoef(ilog.concert.IloRange rng,
double val,
ilog.concert.IloNumVar var)
See IloMPModeler.setLinearCoef(IloRange rng,
double val,
IloNumVar var) |
void |
setLinearCoef(ilog.concert.IloRange rng,
ilog.concert.IloNumVar var,
double val)
See IloMPModeler.setLinearCoef(IloRange rng,
IloNumVar var,
double val) |
void |
setLinearCoefs(ilog.concert.IloObjective obj,
double[] val,
ilog.concert.IloNumVar[] var)
See IloMPModeler.setLinearCoefs(IloObjective,
double[], IloNumVar[]) |
void |
setLinearCoefs(ilog.concert.IloObjective obj,
double[] val,
ilog.concert.IloNumVar[] var,
int start,
int num)
See IloMPModeler.setLinearCoefs(IloObjective,
double[], IloNumVar[],
int, int) |
void |
setLinearCoefs(ilog.concert.IloObjective obj,
ilog.concert.IloNumVar[] var,
double[] val)
See IloMPModeler.setLinearCoefs(IloObjective,
IloNumVar[], double[]) |
void |
setLinearCoefs(ilog.concert.IloObjective obj,
ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
See IloMPModeler.setLinearCoefs(IloObjective,
IloNumVar[],
double[], int, int) |
void |
setLinearCoefs(ilog.concert.IloRange rng,
double[] val,
ilog.concert.IloNumVar[] var)
See IloMPModeler.setLinearCoefs(IloRange rng,
double[] val,
IloNumVar[] var) |
void |
setLinearCoefs(ilog.concert.IloRange rng,
double[] val,
ilog.concert.IloNumVar[] var,
int start,
int num)
See IloMPModeler.setLinearCoefs(IloRange rng,
double[] val,
IloNumVar[] var,
int start, int num) |
void |
setLinearCoefs(ilog.concert.IloRange rng,
ilog.concert.IloNumVar[] var,
double[] val)
See IloMPModeler.setLinearCoefs(IloRange rng,
IloNumVar[] var,
double[] val) |
void |
setLinearCoefs(ilog.concert.IloRange rng,
ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
See IloMPModeler.setLinearCoefs(IloRange rng,
IloNumVar[] var,
double[] val,
int start, int num) |
void |
setOut(java.io.OutputStream s)
Sets the default output stream of the invoking IloCplex
object. |
void |
setParam(IloCplex.BooleanParam which,
boolean val)
Sets a Boolean parameter to value val . |
void |
setParam(IloCplex.DoubleParam which,
double val)
Sets a double parameter to value val . |
void |
setParam(IloCplex.IntParam which,
int val)
Sets an integer parameter to value val . |
void |
setParam(IloCplex.StringParam which,
java.lang.String val)
Sets a string parameter to value val . |
void |
setPriorities(ilog.concert.IloNumVar[] var,
int[] pri)
Sets branch priorities for an array of variables. |
void |
setPriorities(ilog.concert.IloNumVar[] var,
int[] pri,
int start,
int num)
Sets branch priorities for a set of variables. |
void |
setPriority(ilog.concert.IloNumVar var,
int pri)
Sets the branch priority for the variable var . |
void |
setVectors(double[] x,
double[] dj,
ilog.concert.IloNumVar[] var,
double[] slack,
double[] pi,
ilog.concert.IloRange[] rng)
Specifies a starting point for the next invocation of method solve . |
void |
setVectors(double[] x,
double[] dj,
ilog.concert.IloNumVar[] var,
int vstart,
int vnum,
double[] slack,
double[] pi,
ilog.concert.IloRange[] rng,
int rstart,
int rnum)
Specifies a starting point for the next invocation of method solve . |
void |
setWarning(java.io.OutputStream s)
Sets the warning stream of the invoking IloCplex object. |
IloCplex.Goal |
solutionGoal(ilog.concert.IloNumVar[] vars,
double[] vals)
Creates and returns a solution goal. |
boolean |
solve()
Solves the active model. |
boolean |
solve(IloCplex.Goal goal)
This method solves the active MIP model using the search strategy specified by goal . |
boolean |
solveFixed()
Solves the fixed active model. |
ilog.concert.IloSOS1 |
SOS1(ilog.concert.IloNumVar[] var,
double[] val)
See IloMPModeler.SOS1(IloNumVar[] var, double[] val) |
ilog.concert.IloSOS1 |
SOS1(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
See IloMPModeler.SOS1(IloNumVar[] var,
double[] val,
int start, int num) |
ilog.concert.IloSOS1 |
SOS1(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
See IloMPModeler.SOS1(IloNumVar[] var,
double[] val,
int start,
int num,
String name) |
ilog.concert.IloSOS1 |
SOS1(ilog.concert.IloNumVar[] var,
double[] val,
java.lang.String name)
See IloMPModeler.SOS1(IloNumVar[] var,
double[] val, String name) |
java.util.Iterator |
SOS1iterator()
Returns an iterator over all IloSOS1 objects in the
active model. |
ilog.concert.IloSOS2 |
SOS2(ilog.concert.IloNumVar[] var,
double[] val)
See IloMPModeler.SOS2(IloNumVar[] var, double[] val) |
ilog.concert.IloSOS2 |
SOS2(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num)
See IloMPModeler.SOS2(IloNumVar[] var,
double[] val,
int start,
int num) |
ilog.concert.IloSOS2 |
SOS2(ilog.concert.IloNumVar[] var,
double[] val,
int start,
int num,
java.lang.String name)
See IloMPModeler.SOS2(IloNumVar[] var,
double[] val,
int start,
int num,
String name) |
ilog.concert.IloSOS2 |
SOS2(ilog.concert.IloNumVar[] var,
double[] val,
java.lang.String name)
See IloMPModeler.SOS2(IloNumVar[] var,
double[] val,
String name) |
java.util.Iterator |
SOS2iterator()
Returns an iterator over all IloSOS2 objects in the
active model. |
ilog.concert.IloIntExpr |
square(ilog.concert.IloIntExpr e)
See IloModeler.square(IloIntExpr) |
ilog.concert.IloNumExpr |
square(ilog.concert.IloNumExpr e)
See IloModeler.square(IloNumExpr) |
ilog.concert.IloNumExpr |
sum(double v,
ilog.concert.IloNumExpr e1)
See IloModeler.sum(double, IloNumExpr) |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr[] expr)
See IloModeler.sum(IloIntExpr[] expr) |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr[] expr,
int start,
int num)
See IloModeler.sum(IloIntExpr[] expr,
int start, int num) |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr expr1,
ilog.concert.IloIntExpr expr2)
See IloModeler.sum(IloIntExpr, IloIntExpr) |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr expr1,
ilog.concert.IloIntExpr expr2,
ilog.concert.IloIntExpr expr3)
See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr) |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr expr1,
ilog.concert.IloIntExpr expr2,
ilog.concert.IloIntExpr expr3,
ilog.concert.IloIntExpr expr4)
See IloModeler.sum(IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr) |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr expr1,
ilog.concert.IloIntExpr expr2,
ilog.concert.IloIntExpr expr3,
ilog.concert.IloIntExpr expr4,
ilog.concert.IloIntExpr expr5)
See IloModeler.sum(IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr, IloIntExpr) |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr expr1,
ilog.concert.IloIntExpr expr2,
ilog.concert.IloIntExpr expr3,
ilog.concert.IloIntExpr expr4,
ilog.concert.IloIntExpr expr5,
ilog.concert.IloIntExpr expr6)
See IloModeler.sum(IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr) |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr expr1,
ilog.concert.IloIntExpr expr2,
ilog.concert.IloIntExpr expr3,
ilog.concert.IloIntExpr expr4,
ilog.concert.IloIntExpr expr5,
ilog.concert.IloIntExpr expr6,
ilog.concert.IloIntExpr expr7)
See IloModeler.sum(IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr,
IloIntExpr) |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr expr1,
ilog.concert.IloIntExpr expr2,
ilog.concert.IloIntExpr expr3,
ilog.concert.IloIntExpr expr4,
ilog.concert.IloIntExpr expr5,
ilog.concert.IloIntExpr expr6,
ilog.concert.IloIntExpr expr7,
ilog.concert.IloIntExpr expr8)
See IloModeler.sum(IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr) |
ilog.concert.IloIntExpr |
sum(ilog.concert.IloIntExpr e,
int v)
See IloModeler.sum(IloIntExpr, int) |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr[] expr)
See IloModeler.sum(IloNumExpr[] expr) |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr[] expr,
int start,
int num)
See IloModeler.sum(IloNumExpr[] expr,
int start, int num) |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr e,
double v)
See IloModeler.sum(IloNumExpr, double) |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr e1,
ilog.concert.IloNumExpr e2)
See IloModeler.sum(IloNumExpr, IloNumExpr) |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr expr1,
ilog.concert.IloNumExpr expr2,
ilog.concert.IloNumExpr expr3)
See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr) |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr expr1,
ilog.concert.IloNumExpr expr2,
ilog.concert.IloNumExpr expr3,
ilog.concert.IloNumExpr expr4)
See IloModeler.sum(IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr) |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr expr1,
ilog.concert.IloNumExpr expr2,
ilog.concert.IloNumExpr expr3,
ilog.concert.IloNumExpr expr4,
ilog.concert.IloNumExpr expr5)
See IloModeler.sum(IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr, IloNumExpr) |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr expr1,
ilog.concert.IloNumExpr expr2,
ilog.concert.IloNumExpr expr3,
ilog.concert.IloNumExpr expr4,
ilog.concert.IloNumExpr expr5,
ilog.concert.IloNumExpr expr6)
See IloModeler.sum(IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr) |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr expr1,
ilog.concert.IloNumExpr expr2,
ilog.concert.IloNumExpr expr3,
ilog.concert.IloNumExpr expr4,
ilog.concert.IloNumExpr expr5,
ilog.concert.IloNumExpr expr6,
ilog.concert.IloNumExpr expr7)
See IloModeler.sum(IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr,
IloNumExpr) |
ilog.concert.IloNumExpr |
sum(ilog.concert.IloNumExpr expr1,
ilog.concert.IloNumExpr expr2,
ilog.concert.IloNumExpr expr3,
ilog.concert.IloNumExpr expr4,
ilog.concert.IloNumExpr expr5,
ilog.concert.IloNumExpr expr6,
ilog.concert.IloNumExpr expr7,
ilog.concert.IloNumExpr expr8)
See IloModeler.sum(IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr) |
ilog.concert.IloIntExpr |
sum(int v,
ilog.concert.IloIntExpr e1)
See IloModeler.sum(int, IloIntExpr) |
void |
use(IloCplex.Callback cb)
Installs a user-written callback. |
java.io.PrintStream |
warning()
Returns the warning output stream of the invoking IloCplex
object. |
void |
writeBasis(java.lang.String name)
Writes the current simplex basis to the file indicated by name . |
void |
writeMIPStart(java.lang.String name)
Writes a starting solution for a MIP in MST format to file name . |
void |
writeOrder(java.lang.String name)
Writes a priority order file with the indicated name . |
void |
writeParam(java.lang.String name)
Writes the parameter name and its current setting into the file indicated by name for all the
CPLEX parameters that are not currently
set at their default. |
void |
writeTextSolution(java.lang.String name)
Writes a solution file in text format for the current solution to the file indicated by name . |
void |
writeTree(java.lang.String name)
Writes the branch-and-bound path (that is, the tree) of the current problem to file name in TRE format. |
void |
writeVectors(java.lang.String name)
Writes solution information from a barrier optimization (without crossover) in VEC format to the file indicated by name . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ilog.concert.IloModel |
add, add, add, iterator, remove, remove, remove |
Methods inherited from interface ilog.concert.IloAddable |
getName, setName |
Constructor Detail |
public IloCplex() throws IloException
IloCplex
object with an empty
active model.
Method Detail |
public ilog.concert.IloNumVar numVar(double lb, double ub, ilog.concert.IloNumVarType type) throws IloException
IloModeler.numVar(double, double, IloNumVarType)
numVar
in interface IloModeler
lb
- The lower bound of the new numerical variable.ub
- The upper bound of the new numerical variable.type
- The type of the new numerical variable.
IloException
public ilog.concert.IloNumVar numVar(double lb, double ub, ilog.concert.IloNumVarType type, java.lang.String name) throws IloException
IloModeler.numVar(double, double, IloNumVarType,
String)
numVar
in interface IloModeler
lb
- The lower bound of the new numerical variable.ub
- The upper bound of the new numerical variable.type
- The type of the new numerical variable.name
- The name of the new numerical variable.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double lb, double ub, ilog.concert.IloNumVarType type) throws IloException
IloModeler.numVarArray(int, double, double,
IloNumVarType)
numVarArray
in interface IloModeler
n
- The number of new numerical variables.lb
- The lower bound of the new numerical variables.ub
- The upper bound of the new numerical variables.type
- The type of the new numerical variables.
n
new numerical variable
objects.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double lb, double ub, ilog.concert.IloNumVarType type, java.lang.String[] name) throws IloException
IloModeler.numVarArray(int, double, double,
IloNumVarType, String[])
numVarArray
in interface IloModeler
lb
- The lower bound of the new numerical variables.ub
- The upper bound of the new numerical variables.type
- The type of the new numerical variables.name
- The names of the new numerical variables. Variable i
is assigned the name name[i]
.
n
new numerical variable
objects.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double[] lb, double[] ub, ilog.concert.IloNumVarType[] type) throws IloException
IloModeler.numVarArray(int, double[], double[],
IloNumVarType[])
numVarArray
in interface IloModeler
lb
- The lower bounds of the new numerical variables.
Variable i
is constructed with the lower bound lb[i]
.ub
- The upper bounds of the new numerical variables.
Variable i
is constructed with the upper bound ub[i]
.type
- The types of the new numerical variables.
Variable i
is constructed with the type type[i]
.
n
new numerical variable
objects.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double[] lb, double[] ub, ilog.concert.IloNumVarType[] type, java.lang.String[] name) throws IloException
IloModeler.numVarArray(int, double[], double[],
IloNumVarType[], String[])
numVarArray
in interface IloModeler
lb
- The lower bounds of the new numerical variables.
Variable i
is constructed with
the lower bound lb[i]
.ub
- The upper bounds of the new numerical variables.
Variable i
is constructed with
the upper bound ub[i]
.type
- The types of the new numerical variables.
Variable i
is constructed with
the type type[i]
.name
- The names of the new numerical variables. Variable i
is assigned the name name[i]
.
n
new numerical variable
objects.
IloException
public ilog.concert.IloNumVar numVar(double lb, double ub, java.lang.String name) throws IloException
IloModeler.numVar(double, double, String)
numVar
in interface IloModeler
lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.name
- The name of the new modeling variable.
IloException
public ilog.concert.IloNumVar numVar(double lb, double ub) throws IloException
IloModeler.numVar(double, double)
numVar
in interface IloModeler
lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double lb, double ub) throws IloException
IloModeler.numVarArray(int, double, double)
numVarArray
in interface IloModeler
lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double[] lb, double[] ub) throws IloException
IloModeler.numVarArray(int, double[], double[])
numVarArray
in interface IloModeler
lb
- The lower bounds of the new modeling variable.
Variable i
will be constructed with a lower bound of lb[i]
.ub
- The upper bounds of the new modeling variable.
Variable i
will be constructed with an upper bound of lb[i]
.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double lb, double ub, java.lang.String[] name) throws IloException
IloModeler.numVarArray(int, double, double,
String[])
numVarArray
in interface IloModeler
lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.name
- The names of the new modeling variables. Variable i
is assigned the name name[i]
.
IloException
public ilog.concert.IloNumVar[] numVarArray(int n, double[] lb, double[] ub, java.lang.String[] name) throws IloException
IloModeler.numVarArray(int, double[], double[],
String[])
numVarArray
in interface IloModeler
lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.name
- The names of the new modeling variables. Variable i
is assigned the name name[i]
.
IloException
public ilog.concert.IloIntVar intVar(int lb, int ub, java.lang.String name) throws IloException
IloModeler.intVar(int, int, String)
intVar
in interface IloModeler
lb
- The minimum value of the variable.ub
- The maximum value of the variable.name
- The name of the variable.
IloException
public ilog.concert.IloIntVar intVar(int lb, int ub) throws IloException
IloModeler.intVar(int, int)
intVar
in interface IloModeler
lb
- The minimum value of the variable.ub
- The maximum value of the variable.
IloException
public ilog.concert.IloIntVar[] intVarArray(int n, int lb, int ub) throws IloException
IloModeler.intVarArray(int, int, int)
intVarArray
in interface IloModeler
lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.
IloException
public ilog.concert.IloIntVar[] intVarArray(int n, int[] lb, int[] ub) throws IloException
IloModeler.intVarArray(int, int[], int[])
intVarArray
in interface IloModeler
lb
- The lower bounds of the new modeling variable.
Variable i
will be constructed with a lower bound of min[i]
.ub
- The upper bounds of the new modeling variable.
Variable i
will be constructed with an upper bound of max[i]
.
IloException
public ilog.concert.IloIntVar[] intVarArray(int n, int lb, int ub, java.lang.String[] name) throws IloException
IloModeler.intVarArray(int, int, int, String[])
intVarArray
in interface IloModeler
lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.name
- The names of the new modeling variables. Variable i
is assigned the name name[i]
.
IloException
public ilog.concert.IloIntVar[] intVarArray(int n, int[] lb, int[] ub, java.lang.String[] name) throws IloException
IloModeler.intVarArray(int, int[], int[], String[])
intVarArray
in interface IloModeler
lb
- The lower bounds of the new modeling variable.
Variable i
will be constructed with a lower bound of min[i]
.ub
- The upper bounds of the new modeling variable.
Variable i
will be constructed with an upper bound of max[i]
.name
- The names of the new modeling variables. Variable i
will be assigned the name name[i]
.
IloException
public ilog.concert.IloIntVar boolVar(java.lang.String name) throws IloException
IloModeler.boolVar(String)
boolVar
in interface IloModeler
name
- The name of the variable.
IloException
public ilog.concert.IloIntVar boolVar() throws IloException
IloModeler.boolVar()
boolVar
in interface IloModeler
IloException
public ilog.concert.IloIntVar[] boolVarArray(int n) throws IloException
IloModeler.boolVarArray(int)
boolVarArray
in interface IloModeler
IloException
public ilog.concert.IloIntVar[] boolVarArray(int n, java.lang.String[] name) throws IloException
IloModeler.boolVarArray(int, String[])
boolVarArray
in interface IloModeler
IloException
public ilog.concert.IloObjective minimize(ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloModeler.minimize(IloNumExpr, String)
minimize
in interface IloModeler
expr
- Expression to minimize.name
- Name assigned to the new IloObjective
object.
IloObjective
object representing the objective
to minimize expr
.
IloException
public ilog.concert.IloObjective maximize(ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloModeler.maximize(IloNumExpr, String)
maximize
in interface IloModeler
expr
- Expression to maximize.name
- Name assigned to the new IloObjective
object.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense, ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloModeler.objective(IloObjectiveSense, IloNumExpr,
String)
objective
in interface IloModeler
sense
- Optimization sense.expr
- Expression to maximize.name
- Name assigned to the new IloObjective
object.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloObjective minimize(ilog.concert.IloNumExpr expr) throws IloException
IloModeler.minimize(IloNumExpr)
minimize
in interface IloModeler
expr
- Expression to minimize.
IloObjective
object representing the objective
to minimize expr
.
IloException
public ilog.concert.IloObjective maximize(ilog.concert.IloNumExpr expr) throws IloException
IloModeler.maximize(IloNumExpr)
maximize
in interface IloModeler
expr
- Expression to maximize.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense, ilog.concert.IloNumExpr expr) throws IloException
IloModeler.objective(IloObjectiveSense, IloNumExpr)
objective
in interface IloModeler
sense
- Optimization sense.expr
- Expression to maximize.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense, ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloModeler.addObjective(IloObjectiveSense,
IloNumExpr, String)
addObjective
in interface IloModeler
sense
- Optimization sense.expr
- Expression to maximize.name
- Name assigned to the new IloObjective
object.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloObjective addMinimize(ilog.concert.IloNumExpr expr) throws IloException
IloModeler.addMinimize(IloNumExpr)
addMinimize
in interface IloModeler
expr
- Expression to minimize.
IloObjective
object representing the objective
to minimize expr
.
IloException
public ilog.concert.IloObjective addMaximize(ilog.concert.IloNumExpr expr) throws IloException
IloModeler.addMaximize(IloNumExpr)
addMaximize
in interface IloModeler
expr
- Expression to maximize.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense, ilog.concert.IloNumExpr expr) throws IloException
IloModeler.addObjective(IloObjectiveSense,
IloNumExpr)
addObjective
in interface IloModeler
sense
- Optimization sense.expr
- Expression to maximize.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloLinearNumExpr linearNumExpr() throws IloException
IloModeler.linearNumExpr()
linearNumExpr
in interface IloModeler
IloException
public ilog.concert.IloLinearNumExpr linearNumExpr(double val) throws IloException
IloModeler.linearNumExpr(double)
linearNumExpr
in interface IloModeler
val
- The constant term of the new linear expression.
val
.
IloException
public ilog.concert.IloLinearNumExpr scalProd(double[] vals, ilog.concert.IloNumVar[] vars) throws IloException
IloModeler.scalProd(double[], IloNumVar[])
scalProd
in interface IloModeler
vals
- The values involved in the new scalar product expression.vars
- The variables involved in the new scalar product expression.
IloException
public ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars, double[] vals) throws IloException
IloModeler.scalProd(IloNumVar[], double[])
scalProd
in interface IloModeler
vals
- The values involved in the new scalar product
expression.vars
- The variables involved in the new scalar product
expression.
IloException
public ilog.concert.IloLinearNumExpr scalProd(double[] vals, ilog.concert.IloNumVar[] vars, int start, int num) throws IloException
IloModeler.scalProd(double[], IloNumVar[], int, int)
scalProd
in interface IloModeler
vals
- An array containing the values to be used for the scalar product.vars
- An array containing the variables to be used for the scalar product.start
- The first element in coefs/vars
to use for the scalar product.num
- The number of elements in coefs/vars
to use for the scalar product.
IloException
public ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars, double[] vals, int start, int num) throws IloException
IloModeler.scalProd(IloNumVar[], double[], int, int)
scalProd
in interface IloModeler
vals
- An array containing the values to be used for the
scalar product.vars
- An array containing the variables to be used for the
scalar product.start
- The first element in coefs/vars
to use for the scalar product.num
- The number of elements in coefs/vars
to use for the scalar product.
IloException
public ilog.concert.IloLinearNumExpr scalProd(int[] vals, ilog.concert.IloNumVar[] vars) throws IloException
IloModeler.scalProd(int[], IloNumVar[])
scalProd
in interface IloModeler
vals
- The values involved in the new scalar product expression.vars
- The variables involved in the new scalar product expression.
IloException
public ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars, int[] vals) throws IloException
IloModeler.scalProd(IloNumVar[], int[])
scalProd
in interface IloModeler
vals
- The values involved in the new scalar product expression.vars
- The variables involved in the new scalar product expression.
IloException
public ilog.concert.IloLinearIntExpr linearIntExpr(int val) throws IloException
IloModeler.linearIntExpr(int)
linearIntExpr
in interface IloModeler
val
- Constant term of the new linear expression.
val
.
IloException
public ilog.concert.IloLinearIntExpr scalProd(int[] vals, ilog.concert.IloIntVar[] vars) throws IloException
IloModeler.scalProd(int[], IloIntVar[])
scalProd
in interface IloModeler
vals
- The integer values involved in the new scalar product
expression.vars
- The integer variables involved in the new scalar product
expression.
IloException
public ilog.concert.IloLinearIntExpr scalProd(ilog.concert.IloIntVar[] vars, int[] vals) throws IloException
IloModeler.scalProd(IloIntVar[], int[])
scalProd
in interface IloModeler
vars
- The integer variables involved in the new scalar product
expression.vals
- The integer values involved in the new scalar product
expression.
IloException
public ilog.concert.IloLinearIntExpr scalProd(int[] vals, ilog.concert.IloIntVar[] vars, int start, int num) throws IloException
IloModeler.scalProd(int[], IloIntVar[], int, int)
scalProd
in interface IloModeler
vals
- An array containing the values to be used for the
scalar product.vars
- An array containing the variables to be used for the
scalar product.start
- First element in vals/vars
to be used for the scalar product.num
- Number of elements in vals/vars
to be used for the scalar product.
IloException
public ilog.concert.IloLinearIntExpr scalProd(ilog.concert.IloIntVar[] vars, int[] vals, int start, int num) throws IloException
IloModeler.scalProd(IloIntVar[], int[], int, int)
scalProd
in interface IloModeler
vars
- An array containing the variables to be used for the
scalar product.vals
- An array containing the values to be used for the
scalar product.start
- First element in vals/vars
to be used for the scalar product.num
- Number of elements in vals/vars
to be used for the scalar product.
IloException
public ilog.concert.IloNumExpr negative(ilog.concert.IloNumExpr e) throws IloException
IloModeler.negative(IloNumExpr)
negative
in interface IloModeler
e
- An expression for which the negative value is given.
e
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e, double v) throws IloException
IloModeler.sum(IloNumExpr, double)
sum
in interface IloModeler
e
- The numeric expression.v
- The value.
e + v
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloModeler.sum(IloNumExpr, IloNumExpr)
sum
in interface IloModeler
e1
- The first numeric expression.e2
- The second numeric expression.
e1 + e2
.
IloException
public ilog.concert.IloNumExpr sum(double v, ilog.concert.IloNumExpr e1) throws IloException
IloModeler.sum(double, IloNumExpr)
sum
in interface IloModeler
v
- The value.e1
- The numeric expression.
v + e
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr expr1, ilog.concert.IloNumExpr expr2, ilog.concert.IloNumExpr expr3) throws IloException
IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr)
sum
in interface IloModeler
expr1
- The first numeric expression.expr2
- The second numeric expression.expr3
- The third numeric expression.
e1 + e2 + e3
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr expr1, ilog.concert.IloNumExpr expr2, ilog.concert.IloNumExpr expr3, ilog.concert.IloNumExpr expr4) throws IloException
IloModeler.sum(IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr)
sum
in interface IloModeler
expr1
- The first numeric expression.expr2
- The second numeric expression.expr3
- The third numeric expression.expr4
- The fourth numeric expression.
e1 + e2 + e3 + e4
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr expr1, ilog.concert.IloNumExpr expr2, ilog.concert.IloNumExpr expr3, ilog.concert.IloNumExpr expr4, ilog.concert.IloNumExpr expr5) throws IloException
IloModeler.sum(IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr, IloNumExpr)
sum
in interface IloModeler
expr1
- The first numeric expression.expr2
- The second numeric expression.expr3
- The third numeric expression.expr4
- The fourth numeric expression.expr5
- The fifth numeric expression.
e1 + e2 + e3 + e4 + e5
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr expr1, ilog.concert.IloNumExpr expr2, ilog.concert.IloNumExpr expr3, ilog.concert.IloNumExpr expr4, ilog.concert.IloNumExpr expr5, ilog.concert.IloNumExpr expr6) throws IloException
IloModeler.sum(IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr)
sum
in interface IloModeler
expr1
- The first numeric expression.expr2
- The second numeric expression.expr3
- The third numeric expression.expr4
- The fourth numeric expression.expr5
- The fifth numeric expression.expr6
- The sixth numeric expression.
e1 + e2 + e3 + e4 + e5 + e6
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr expr1, ilog.concert.IloNumExpr expr2, ilog.concert.IloNumExpr expr3, ilog.concert.IloNumExpr expr4, ilog.concert.IloNumExpr expr5, ilog.concert.IloNumExpr expr6, ilog.concert.IloNumExpr expr7) throws IloException
IloModeler.sum(IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr,
IloNumExpr)
sum
in interface IloModeler
expr1
- The first numeric expression.expr2
- The second numeric expression.expr3
- The third numeric expression.expr4
- The fourth numeric expression.expr5
- The fifth numeric expression.expr6
- The sixth numeric expression.expr7
- The seventh numeric expression.
e1 + e2 + e3 + e4 + e5 + e6 + e7
.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr expr1, ilog.concert.IloNumExpr expr2, ilog.concert.IloNumExpr expr3, ilog.concert.IloNumExpr expr4, ilog.concert.IloNumExpr expr5, ilog.concert.IloNumExpr expr6, ilog.concert.IloNumExpr expr7, ilog.concert.IloNumExpr expr8) throws IloException
IloModeler.sum(IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr,
IloNumExpr, IloNumExpr)
sum
in interface IloModeler
expr1
- The first numeric expression.expr2
- The second numeric expression.expr3
- The third numeric expression.expr4
- The fourth numeric expression.expr5
- The fifth numeric expression.expr6
- The sixth numeric expression.expr7
- The seventh numeric expression.expr8
- The eighth numeric expression.
e1 + e2 + e3 + e4 + e5 + e6 + e7 + e8
.
IloException
public ilog.concert.IloIntExpr diff(ilog.concert.IloIntExpr e, int v) throws IloException
IloModeler.diff(IloIntExpr, int)
diff
in interface IloModeler
e
- An integer expression to use in the difference.v
- A value to use in the difference.
e - v
.
IloException
public ilog.concert.IloNumExpr diff(ilog.concert.IloNumExpr e, double v) throws IloException
IloModeler.diff(IloNumExpr, double)
diff
in interface IloModeler
e
- An expression to use in the difference.v
- A value to use in the difference.
e - v
.
IloException
public ilog.concert.IloNumExpr diff(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloModeler.diff(IloNumExpr, IloNumExpr)
diff
in interface IloModeler
e1
- An expression to use in the difference.e2
- An expression to use in the difference.
e1 - e2
.
IloException
public ilog.concert.IloNumExpr diff(double v, ilog.concert.IloNumExpr e1) throws IloException
IloModeler.diff(double, IloNumExpr)
diff
in interface IloModeler
v
- A value to use in the difference.e1
- An expression to use in the difference.
v - e1
.
IloException
public ilog.concert.IloNumExpr prod(double v, ilog.concert.IloNumVar var1, ilog.concert.IloNumVar var2) throws IloException
IloMPModeler.prod(double, IloNumVar, IloNumVar)
prod
in interface IloMPModeler
v
- The value to be used in the product.var1
- The first variable to be used in the product.var2
- The second variable to be used in the product.
val * var1 * var2
.
IloException
public ilog.concert.IloNumExpr prod(ilog.concert.IloNumVar var1, double v, ilog.concert.IloNumVar var2) throws IloException
IloMPModeler.prod(IloNumVar, double, IloNumVar)
prod
in interface IloMPModeler
v
- The value to be used in the product.var1
- The first variable to be used in the product.var2
- The second variable to be used in the product.
val * var1 * var2
.
IloException
public ilog.concert.IloNumExpr prod(ilog.concert.IloNumVar var1, ilog.concert.IloNumVar var2, double v) throws IloException
IloMPModeler.prod(IloNumVar, IloNumVar, double)
prod
in interface IloMPModeler
v
- The value to be used in the product.var1
- The first variable to be used in the product.var2
- The second variable to be used in the product.
val * var1 * var2
.
IloException
public ilog.concert.IloNumExpr prod(ilog.concert.IloNumExpr e, double v) throws IloException
IloModeler.prod(IloNumExpr, double)
prod
in interface IloModeler
e
- An expression to use in the product.v
- A value to use in the product.
e * v
.
IloException
public ilog.concert.IloNumExpr prod(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloModeler.prod(IloNumExpr, IloNumExpr)
prod
in interface IloModeler
e1
- An expression to use in the product.e2
- An expression to use in the product.
expr1 * expr2
.
IloException
public ilog.concert.IloNumExpr prod(double v, ilog.concert.IloNumExpr e1) throws IloException
IloModeler.prod(double, IloNumExpr)
prod
in interface IloModeler
e1
- An expression to use in the product.v
- A value to use in the product.
e1 * v
.
IloException
public ilog.concert.IloNumExpr square(ilog.concert.IloNumExpr e) throws IloException
IloModeler.square(IloNumExpr)
square
in interface IloModeler
e
- An expression to use in the square.
e * e
.
IloException
public ilog.concert.IloNumExpr constant(double x) throws IloException
IloModeler.constant(double)
constant
in interface IloModeler
x
- A value for which to construct a constant expression term.
x
.
IloException
public ilog.concert.IloIntExpr negative(ilog.concert.IloIntExpr e) throws IloException
IloModeler.negative(IloIntExpr)
negative
in interface IloModeler
e
- An integer expression for which the negative value is given.
e
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e, int v) throws IloException
IloModeler.sum(IloIntExpr, int)
sum
in interface IloModeler
e
- The integer expression.v
- The value.
e + v
.
IloException
public ilog.concert.IloIntExpr sum(int v, ilog.concert.IloIntExpr e1) throws IloException
IloModeler.sum(int, IloIntExpr)
sum
in interface IloModeler
v
- The value.e1
- The integer expression.
e + v
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr expr1, ilog.concert.IloIntExpr expr2) throws IloException
IloModeler.sum(IloIntExpr, IloIntExpr)
sum
in interface IloModeler
expr1
- The first integer expression.expr2
- The second integer expression.
e1 + e2
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr expr1, ilog.concert.IloIntExpr expr2, ilog.concert.IloIntExpr expr3) throws IloException
IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr)
sum
in interface IloModeler
expr1
- The first integer expression.expr2
- The second integer expression.expr3
- The third integer expression.
exp
, representing the
sum of e1 +e2 +e3
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr expr1, ilog.concert.IloIntExpr expr2, ilog.concert.IloIntExpr expr3, ilog.concert.IloIntExpr expr4) throws IloException
IloModeler.sum(IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr)
sum
in interface IloModeler
expr1
- The first integer expression.expr2
- The second integer expression.expr3
- The third integer expression.expr4
- The fourth integer expression.
exp
, representing the
sum of e1 + e2 + e3 +e 4
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr expr1, ilog.concert.IloIntExpr expr2, ilog.concert.IloIntExpr expr3, ilog.concert.IloIntExpr expr4, ilog.concert.IloIntExpr expr5) throws IloException
IloModeler.sum(IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr, IloIntExpr)
sum
in interface IloModeler
expr1
- The first integer expression.expr2
- The second integer expression.expr3
- The third integer expression.expr4
- The fourth integer expression.expr5
- The fifth integer expression.
exp
, representing the
sum of e1 + e2 + e3 + e4 + e5
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr expr1, ilog.concert.IloIntExpr expr2, ilog.concert.IloIntExpr expr3, ilog.concert.IloIntExpr expr4, ilog.concert.IloIntExpr expr5, ilog.concert.IloIntExpr expr6) throws IloException
IloModeler.sum(IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr)
sum
in interface IloModeler
expr1
- The first integer expression.expr2
- The second integer expression.expr3
- The third integer expression.expr4
- The fourth integer expression.expr5
- The fifth integer expression.expr6
- The sixth integer expression.
exp
, representing the
sum of e1 + e2 + e3 + e4 + e5 + e6
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr expr1, ilog.concert.IloIntExpr expr2, ilog.concert.IloIntExpr expr3, ilog.concert.IloIntExpr expr4, ilog.concert.IloIntExpr expr5, ilog.concert.IloIntExpr expr6, ilog.concert.IloIntExpr expr7) throws IloException
IloModeler.sum(IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr,
IloIntExpr)
sum
in interface IloModeler
expr1
- The first integer expression.expr2
- The second integer expression.expr3
- The third integer expression.expr4
- The fourth integer expression.expr5
- The fifth integer expression.expr6
- The sixth integer expression.expr7
- The seventh integer expression.
exp
, representing the
sum of e1 + e2 + e3 + e4 + e5 + e6 + e7
.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr expr1, ilog.concert.IloIntExpr expr2, ilog.concert.IloIntExpr expr3, ilog.concert.IloIntExpr expr4, ilog.concert.IloIntExpr expr5, ilog.concert.IloIntExpr expr6, ilog.concert.IloIntExpr expr7, ilog.concert.IloIntExpr expr8) throws IloException
IloModeler.sum(IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr,
IloIntExpr, IloIntExpr)
sum
in interface IloModeler
expr1
- The first integer expression.expr2
- The second integer expression.expr3
- The third integer expression.expr4
- The fourth integer expression.expr5
- The fifth integer expression.expr6
- The sixth integer expression.expr7
- The seventh integer expression.expr8
- The eighth integer expression.
exp
, representing the
sum of e1 + e2 + e3 + e4 + e5 + e6 + e7 + e8
.
IloException
public ilog.concert.IloIntExpr diff(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2) throws IloException
IloModeler.diff(IloIntExpr, IloIntExpr)
diff
in interface IloModeler
e1
- An integer expression to use in the difference.e2
- An integer expression to use in the difference.
expr1 - expr2
.
IloException
public ilog.concert.IloIntExpr diff(int v, ilog.concert.IloIntExpr e1) throws IloException
IloModeler.diff(int, IloIntExpr)
diff
in interface IloModeler
v
- A value to use in the difference.e1
- An integer expression to use in the difference.
v - e1
.
IloException
public ilog.concert.IloIntExpr prod(ilog.concert.IloIntExpr e, int v) throws IloException
IloModeler.prod(IloIntExpr, int)
prod
in interface IloModeler
IloException
public ilog.concert.IloIntExpr prod(ilog.concert.IloIntExpr e1, ilog.concert.IloIntExpr e2) throws IloException
IloModeler.prod(IloIntExpr, IloIntExpr)
prod
in interface IloModeler
IloException
public ilog.concert.IloIntExpr prod(int v, ilog.concert.IloIntExpr e1) throws IloException
IloModeler.prod(int, IloIntExpr)
prod
in interface IloModeler
IloException
public ilog.concert.IloIntExpr square(ilog.concert.IloIntExpr e) throws IloException
IloModeler.square(IloIntExpr)
square
in interface IloModeler
IloException
public ilog.concert.IloIntExpr constant(int x) throws IloException
IloModeler.constant(int)
constant
in interface IloModeler
x
- The value of the constant expression.
IloException
public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column, double lb, double ub, ilog.concert.IloNumVarType type) throws IloException
IloMPModeler.numVar(IloColumn column,
double lb, double ub,
IloNumVarType type)
numVar
in interface IloMPModeler
column
- The column object describing where to install the new
variable.lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.type
- The type of the new modeling variable.
IloException
public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column, double lb, double ub, ilog.concert.IloNumVarType type, java.lang.String name) throws IloException
IloMPModeler.numVar(IloColumn column,
double lb, double ub,
IloNumVarType type,
String name)
numVar
in interface IloMPModeler
column
- The column object describing where to install the new
variable.lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.type
- The type of the new modeling variable.name
- The name of the new modeling variable.
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols, double lb, double ub, ilog.concert.IloNumVarType type) throws IloException
IloMPModeler.numVarArray(IloColumnArray cols,
double lb, double ub,
IloNumVarType type)
numVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing where
to install the new variables.lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.type
- The type of the new modeling variable.
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols, double lb, double ub, ilog.concert.IloNumVarType type, java.lang.String[] name) throws IloException
IloMPModeler.numVarArray(IloColumnArray cols,
double lb, double ub,
IloNumVarType type,
String[] name)
numVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing where
to install the new variables.lb
- The lower bound of the new modeling variables.ub
- The upper bound of the new modeling variables.type
- The type of the new modeling variables.name
- The names of the new modeling variables. Variable
i
is assigned name name[i]
.
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols, double[] lb, double[] ub, ilog.concert.IloNumVarType[] type) throws IloException
IloMPModeler.numVarArray(IloColumnArray cols,
double[] lb, double[] ub,
IloNumVarType[] type)
numVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing where
to install the new variables.lb
- The lower bounds of the new modeling variable.
Variable i
is constructed with a
lower bound of lb[i]
.ub
- The upper bounds of the new modeling variable.
Variable i
is constructed with a
upper bound of ub[i]
.type
- The type of the new modeling variable. Variable
i
is constructed with a type of
type[i]
.
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols, double[] lb, double[] ub, ilog.concert.IloNumVarType[] type, java.lang.String[] name) throws IloException
IloMPModeler.numVarArray(IloColumnArray cols,
double[] lb, double[] ub,
IloNumVarType[] type,
String[] name)
numVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing where
to install the new variables.lb
- The lower bounds of the new modeling variable.
Variable i
is constructed with a
lower bound of lb[i]
.ub
- The upper bounds of the new modeling variable.
Variable i
is constructed with a
upper bound of lb[i]
.type
- The type of the new modeling variable. Variable
i
will
be constructed with a type of type[i]
.name
- The name of the new modeling variable. Variable
i
is assigned name name[i]
.
IloException
public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column, double lb, double ub, java.lang.String name) throws IloException
IloMPModeler.numVar(IloColumn column,
double lb, double ub,
String name)
numVar
in interface IloMPModeler
column
- The column object describing where to install the new
variable.lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.name
- The name of the new modeling variable.
IloException
public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column, double lb, double ub) throws IloException
IloMPModeler.numVar(IloColumn column,
double lb, double ub)
numVar
in interface IloMPModeler
column
- The column object describing where to install the new
variable.lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols, double lb, double ub) throws IloException
IloMPModeler.numVarArray(IloColumnArray cols,
double lb, double ub)
numVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing where
to install the new variables.lb
- The lower bound of the new modeling variables.ub
- The upper bound of the new modeling variables.
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols, double[] lb, double[] ub) throws IloException
IloMPModeler.numVarArray(IloColumnArray cols,
double[] lb, double[] ub)
numVarArray
in interface IloMPModeler
cols
- IloColumnArray
object describing where to
install the new variables.lb
- The lower bounds of the new modeling variables.
Variable i
is constructed with a
lower bound of lb[i]
.ub
- The upper bounds of the new modeling variables.
Variable i
is constructed with an
upper bound of ub[i]
.
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols, double lb, double ub, java.lang.String[] name) throws IloException
IloMPModeler.numVarArray(IloColumnArray cols,
double lb, double ub,
String[] name)
numVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing where
to install the new variables.lb
- The lower bounds of the new modeling variables.
Variable i
is assigned lower bound
lb[i]
.ub
- The upper bounds of the new modeling variables.
Variable i
is assigned upper bound
ub[i]
.name
- The names of the new modeling variables. Variable
i
is assigned name name[i]
.
IloException
public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols, double[] lb, double[] ub, java.lang.String[] name) throws IloException
IloMPModeler.numVarArray(IloColumnArray cols,
double[] lb, double[] ub,
String[] name)
numVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing
where to install the new variables.lb
- The lower bounds of the new modeling variables.
Variable i
is constructed with a
lower bound of lb[i]
.ub
- The upper bounds of the new modeling variables.
Variable i
is constructed with an
upper bound of ub[i]
.name
- The names of the new modeling variables. Variable
i
is assigned name name[i]
.
IloException
public ilog.concert.IloIntVar intVar(ilog.concert.IloColumn column, int lb, int ub) throws IloException
IloMPModeler.intVar(IloColumn column,
int lb, int ub)
intVar
in interface IloMPModeler
column
- The column object describing where to install the new
variable.lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.
IloException
public ilog.concert.IloIntVar intVar(ilog.concert.IloColumn column, int lb, int ub, java.lang.String name) throws IloException
IloMPModeler.intVar(IloColumn column,
int lb, int ub, String name)
intVar
in interface IloMPModeler
column
- The column object describing where to install the new
variable.lb
- The lower bound of the new modeling variable.ub
- The upper bound of the new modeling variable.name
- The name of the new modeling variable.
IloException
public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols, int lb, int ub, java.lang.String[] name) throws IloException
IloMPModeler.intVarArray(IloColumnArray cols,
int lb, int ub,
String[] name)
intVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing where
to install the new variables.lb
- The lower bound of the new modeling variables.ub
- The upper bound of the new modeling variables.name
- The names of the new modeling variables. Variable
i
is assigned name name[i]
.
IloException
public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols, int[] lb, int[] ub, java.lang.String[] name) throws IloException
IloMPModeler.intVarArray(IloColumnArray cols,
int[] lb, int[] ub,
String[] name)
intVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing where
to install the new variables.lb
- The lower bounds of the new modeling variables.
Variable i
is constructed with a
lower bound of lb[i]
.ub
- The upper bounds of the new modeling variable.
Variable i
is constructed with an
upper bound of ub[i]
.name
- The names of the new modeling variables. Variable
i
is assigned name name[i]
.
IloException
public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols, int lb, int ub) throws IloException
IloMPModeler.intVarArray(IloColumnArray cols,
int lb, int ub)
intVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing where
to install the new variables.lb
- The lower bound of the new modeling variables.ub
- The upper bound of the new modeling variables.
IloException
public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols, int[] lb, int[] ub) throws IloException
IloMPModeler.intVarArray(IloColumnArray cols,
int[] lb, int[] ub)
intVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing where
to install the new variables.lb
- The lower bounds of the new modeling variables.
Variable i
is constructed with a
lower bound of lb[i]
.ub
- The upper bounds of the new modeling variables.
Variable i
is constructed with a
upper bound of ub[i]
.
IloException
public ilog.concert.IloIntVar boolVar(ilog.concert.IloColumn column, java.lang.String name) throws IloException
IloMPModeler.boolVar(IloColumn column,
String name)
boolVar
in interface IloMPModeler
column
- The column object describing where to install the new
variable.name
- The name of the new modeling variable.
IloException
public ilog.concert.IloIntVar boolVar(ilog.concert.IloColumn column) throws IloException
IloMPModeler.boolVar(IloColumn column)
boolVar
in interface IloMPModeler
column
- The column object describing where to install the new
variable.
IloException
public ilog.concert.IloIntVar[] boolVarArray(ilog.concert.IloColumnArray cols) throws IloException
IloMPModeler.boolVarArray(IloColumnArray cols)
boolVarArray
in interface IloMPModeler
cols
- The IloColumnArray
object describing
where to install the new variables.
IloException
public ilog.concert.IloIntVar[] boolVarArray(ilog.concert.IloColumnArray cols, java.lang.String[] name) throws IloException
IloMPModeler.boolVarArray(IloColumnArray cols,
String[] name)
boolVarArray
in interface IloMPModeler
cols
- The IloColumnArray
object describing
where to install the new variables.name
- The names of the new modeling variables. Variable
i
is assigned name name[i]
.
IloException
public ilog.concert.IloNumExpr piecewiseLinear(ilog.concert.IloNumExpr expr, double[] points, double[] slopes, double a, double fa) throws IloException
IloMPModeler.piecewiseLinear(IloNumExpr, double[],
double[], double,
double)
piecewiseLinear
in interface IloMPModeler
expr
- An expression indicating where to evaluate the
piecewise linear function.points
- An array of breakpoints for the piecewise linear
function.slopes
- An array of slopes for the piecewise linear function.a
- First coordinate of the anchor point of the piecewise
linear function.fa
- Second coordinate of the anchor point of the
piecewise linear function.
expr
.
IloException
public ilog.concert.IloNumExpr piecewiseLinear(ilog.concert.IloNumExpr expr, double[] points, int startPoints, int num, double[] slopes, int startSlopes, double a, double fa) throws IloException
IloMPModeler.piecewiseLinear(IloNumExpr, double[],
int, int, double[],
int, double, double)
piecewiseLinear
in interface IloMPModeler
expr
- An expression indicating where to evaluate the
piecewise linear function.points
- An array containing breakpoints that define the
piecewise linear function.startPoints
- An integer indicating the first element in array
points
to use for the definition
of the breakpoints of the piecewise linear function.num
- The number of breakpoint to use from array
points
. Thus num+1
elements
of array slopes
are used.slopes
- An array containing the slope values that define the
piecewise linear function.startSlopes
- The first element in array slopes
to use
for the definition of the slopes of the piecewise
linear function.a
- The first coordinate of the anchor point of the
piecewise linear function.fa
- The second coordinate of the anchor point of the
piecewise linear function.
expr
.
IloException
public void addToExpr(ilog.concert.IloObjective obj, ilog.concert.IloNumExpr expr) throws IloException
IloMPModeler.addToExpr(IloObjective, IloNumExpr)
addToExpr
in interface IloMPModeler
obj
- The objective to modify.expr
- The new expression to add.
IloException
public void setLinearCoef(ilog.concert.IloObjective obj, double val, ilog.concert.IloNumVar var) throws IloException
IloMPModeler.setLinearCoef(IloObjective,
double, IloNumVar)
setLinearCoef
in interface IloMPModeler
obj
- The objective to modify.val
- The coefficient to set.var
- The variable for which to set the coefficient.
IloException
public void setLinearCoef(ilog.concert.IloObjective obj, ilog.concert.IloNumVar var, double val) throws IloException
IloMPModeler.setLinearCoef(IloObjective,
IloNumVar, double)
setLinearCoef
in interface IloMPModeler
obj
- The objective to modify.var
- The variable for which to set the coefficient.val
- The coefficient to set.
IloException
public void setLinearCoefs(ilog.concert.IloObjective obj, double[] val, ilog.concert.IloNumVar[] var) throws IloException
IloMPModeler.setLinearCoefs(IloObjective,
double[], IloNumVar[])
setLinearCoefs
in interface IloMPModeler
obj
- The objective to modify.val
- The array of linear coefficient values. The linear
coefficient of variable var[i]
is set
to val[i]
.var
- The array of variables for which to set linear
coefficients. A variable may only appear once in this
array.
IloException
public void setLinearCoefs(ilog.concert.IloObjective obj, ilog.concert.IloNumVar[] var, double[] val) throws IloException
IloMPModeler.setLinearCoefs(IloObjective,
IloNumVar[], double[])
setLinearCoefs
in interface IloMPModeler
obj
- The objective to modify.val
- The array of linear coefficient values. The linear
coefficient of variable var[i]
is set
to val[i]
.var
- The array of variables for which to set linear
coefficients. A variable may only appear once in this
array.
IloException
public void setLinearCoefs(ilog.concert.IloObjective obj, double[] val, ilog.concert.IloNumVar[] var, int start, int num) throws IloException
IloMPModeler.setLinearCoefs(IloObjective,
double[], IloNumVar[],
int, int)
setLinearCoefs
in interface IloMPModeler
obj
- The objective to modify.val
- The array containing linear coefficient values. The
linear coefficient of variable var[i]
is
set to val[i]
.var
- The array containing the variables for which to set
linear coefficients. A variable may only appear once
in this array.start
- The first element in val
and
var
to use for setting coefficients.num
- The number of elements in val
and
var
to use for setting coefficients.
IloException
public void setLinearCoefs(ilog.concert.IloObjective obj, ilog.concert.IloNumVar[] var, double[] val, int start, int num) throws IloException
IloMPModeler.setLinearCoefs(IloObjective,
IloNumVar[],
double[], int, int)
setLinearCoefs
in interface IloMPModeler
obj
- The objective to modify.var
- An array containing the variables for which to set
linear coefficients. A variable may only appear once
in this array.val
- An array containing linear coefficient values. The
linear coefficient of variable var[i]
is
set to val[i]
.start
- The first element in val
and
var
to use for setting coefficients.num
- The number of elements in val
and
var
to use for setting coefficients.
IloException
public ilog.concert.IloSemiContVar semiContVar(double lb, double ub, ilog.concert.IloNumVarType type, java.lang.String name) throws IloException
IloMPModeler.semiContVar(double, double,
IloNumVarType, String)
semiContVar
in interface IloMPModeler
lb
- The semi-continuous lower bound of the new modeling
variableub
- The upper bound of the new modeling variable.type
- The type of the new modeling variable.name
- The name of the new modeling variable.
IloException
public ilog.concert.IloSemiContVar semiContVar(double lb, double ub, ilog.concert.IloNumVarType type) throws IloException
IloMPModeler.semiContVar(double, double,
IloNumVarType)
semiContVar
in interface IloMPModeler
lb
- The semi-continuous lower bound of the new modeling
variableub
- The upper bound of the new modeling variable.type
- The type of the new modeling variable.
IloException
public ilog.concert.IloSemiContVar semiContVar(ilog.concert.IloColumn column, double lb, double ub, ilog.concert.IloNumVarType type, java.lang.String name) throws IloException
IloMPModeler.semiContVar(IloColumn, double,
double, IloNumVarType,
String)
semiContVar
in interface IloMPModeler
column
- The column object describing where to install the new
variable.lb
- The semi-continuous lower bound of the new modeling
variable.ub
- The upper bound of the new modeling variable.type
- The type of the new modeling variable.name
- The name of the new modeling variable.
IloException
public ilog.concert.IloSemiContVar semiContVar(ilog.concert.IloColumn column, double lb, double ub, ilog.concert.IloNumVarType type) throws IloException
IloMPModeler.semiContVar(IloColumn, double,
double, IloNumVarType)
semiContVar
in interface IloMPModeler
column
- The column object describing where to install the new
variable.lb
- The semi-continuous lower bound of the new modeling
variable.ub
- The upper bound of the new modeling variable.type
- The type of the new modeling variable.
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(int n, double lb, double ub, ilog.concert.IloNumVarType type) throws IloException
IloMPModeler.semiContVarArray(int, double,
double, IloNumVarType)
semiContVarArray
in interface IloMPModeler
n
- The number of new semi-continuous variables to create.lb
- The semi-continuous lower bound of the new modeling
variables.ub
- The upper bound of the new modeling variables.type
- The type of the new modeling variables.
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(int n, double[] lb, double[] ub, ilog.concert.IloNumVarType[] type) throws IloException
IloMPModeler.semiContVarArray(int, double[],
double[],
IloNumVarType[])
semiContVarArray
in interface IloMPModeler
n
- The number of new semi-continuous variables to create.lb
- The semi-continuous lower bounds of the new modeling
variables. Variable i
is constructed
with a semi-continuous lower bound of
sclb[i]
.ub
- The upper bounds of the new modeling variables.
Variable i
is constructed with an
upper bound of ub[i]
.type
- The types of the new modeling variables. Variable
i
is constructed with a type of
type[i]
.
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(int n, double lb, double ub, ilog.concert.IloNumVarType type, java.lang.String[] name) throws IloException
IloMPModeler.semiContVarArray(int, double,
double, IloNumVarType,
String[])
semiContVarArray
in interface IloMPModeler
n
- The number of new semi-continuous variables to create.lb
- The semi-continuous lower bound of the new modeling
variables.ub
- The upper bound of the new modeling variables.type
- The type of the new modeling variables.name
- The names of the new modeling variables. Variable
i
is assigned name name[i]
.
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(int n, double[] lb, double[] ub, ilog.concert.IloNumVarType[] type, java.lang.String[] name) throws IloException
IloMPModeler.semiContVarArray(int, double[],
double[],
IloNumVarType[],
String[])
semiContVarArray
in interface IloMPModeler
n
- The number of new semi-continuous variables to create.lb
- The semi-continuous lower bounds of the new modeling
variables.
Variable i
is constructed with a
semi-continuous lower bound of sclb[i]
.ub
- The upper bounds of the new modeling variables.
Variable i
is constructed with an
upper bound of ub[i]
.type
- The types of the new modeling variables. Variable
i
is constructed with a type of
type[i]
.name
- The names of the new modeling variables. Variable
i
is assigned name name[i]
.
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols, double lb, double ub, ilog.concert.IloNumVarType type) throws IloException
IloMPModeler.semiContVarArray(IloColumnArray,
double,
double, IloNumVarType)
semiContVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing
where to install the new variables.lb
- The semi-continuous lower bound of the new modeling
variables.ub
- The upper bound of the new modeling variables.type
- The type of the new modeling variables.
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols, double[] lb, double[] ub, ilog.concert.IloNumVarType[] type) throws IloException
IloMPModeler.semiContVarArray(IloColumnArray,
double[], double[],
IloNumVarType[])
semiContVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing where
to install the new variables.lb
- The semi-continuous lower bounds of the new modeling
variables. Variable i
is constructed
with a semi-continuous lower bound of
sclb[i]
.ub
- The upper bounds of the new modeling variables.
Variable i
is constructed with an
upper bound of ub[i]
.type
- The types of the new modeling variables. Variable
i
is constructed with a type of
type[i]
.
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols, double lb, double ub, ilog.concert.IloNumVarType type, java.lang.String[] name) throws IloException
IloMPModeler.semiContVarArray(IloColumnArray,
double, double,
IloNumVarType,
String[])
semiContVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing
where to install the new variables.lb
- The semi-continuous lower bound of the new modeling
variables.ub
- The upper bound of the new modeling variables.type
- The type of the new modeling variables.name
- The names of the new modeling variables. Variable
i
is assigned name name[i]
.
IloException
public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols, double[] lb, double[] ub, ilog.concert.IloNumVarType[] type, java.lang.String[] name) throws IloException
IloMPModeler.semiContVarArray(IloColumnArray cols,
double[] lb,
double[] ub,
IloNumVarType[] type,
String[] name)
semiContVarArray
in interface IloMPModeler
cols
- An IloColumnArray
object describing
where to install the new variables.lb
- The semi-continuous lower bounds of the new modeling
variables. Variable i
is constructed
with a semi-continuous lower bound of
sclb[i]
.ub
- The upper bounds of the new modeling variables.
Variable i
is constructed with an
upper bound of ub[i]
.type
- The types of the new modeling variables. Variable
i
is constructed with a type of
type[i]
.name
- The names of the new modeling variables. Variable
i
is assigned name name[i]
.
IloException
public ilog.concert.IloObjective minimize() throws IloException
IloMPModeler.minimize()
minimize
in interface IloMPModeler
IloException
public ilog.concert.IloObjective maximize() throws IloException
IloMPModeler.maximize()
maximize
in interface IloMPModeler
IloException
public ilog.concert.IloObjective minimize(java.lang.String name) throws IloException
IloMPModeler.minimize(String)
minimize
in interface IloMPModeler
name
- The name assigned to the new objective.
IloException
public ilog.concert.IloObjective maximize(java.lang.String name) throws IloException
IloMPModeler.maximize(String)
maximize
in interface IloMPModeler
name
- The name assigned to the new objective.
IloException
public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense) throws IloException
IloMPModeler.objective(IloObjectiveSense)
objective
in interface IloMPModeler
sense
- The optimization sense of the new objective.
IloException
public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense, java.lang.String name) throws IloException
IloMPModeler.objective(IloObjectiveSense, String)
objective
in interface IloMPModeler
sense
- The optimization sense of the new objective.name
- The name assigned to the new objective.
IloException
public ilog.concert.IloObjective addMinimize(ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloModeler.addMinimize(IloNumExpr, String)
addMinimize
in interface IloModeler
expr
- Expression to minimize.name
- Name assigned to the new IloObjective
object.
IloObjective
object representing the objective
to minimize expr
.
IloException
public ilog.concert.IloObjective addMaximize(ilog.concert.IloNumExpr expr, java.lang.String name) throws IloException
IloModeler.addMaximize(IloNumExpr, String)
addMaximize
in interface IloModeler
expr
- Expression to maximize.name
- Name assigned to the new IloObjective
object.
IloObjective
object representing the objective
to maximize expr
.
IloException
public ilog.concert.IloObjective addMinimize() throws IloException
IloMPModeler.addMinimize()
addMinimize
in interface IloMPModeler
IloException
public ilog.concert.IloObjective addMaximize() throws IloException
IloMPModeler.addMaximize()
addMaximize
in interface IloMPModeler
IloException
public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense) throws IloException
IloMPModeler.addObjective(IloObjectiveSense)
addObjective
in interface IloMPModeler
sense
- The optimization sense of the new objective.
IloException
public ilog.concert.IloObjective addMinimize(java.lang.String name) throws IloException
IloMPModeler.addMinimize(String)
addMinimize
in interface IloMPModeler
name
- The name assigned to the new objective.
IloException
public ilog.concert.IloObjective addMaximize(java.lang.String name) throws IloException
IloMPModeler.addMaximize(String)
addMaximize
in interface IloMPModeler
name
- The name assigned to the new objective.
IloException
public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense, java.lang.String name) throws IloException
IloMPModeler.addObjective(IloObjectiveSense,
String)
addObjective
in interface IloMPModeler
sense
- The optimization sense of the new objective.name
- The name assigned to the new objective.
IloException
public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar var, ilog.concert.IloNumVarType type, java.lang.String name) throws IloException
IloMPModeler.conversion(IloNumVar var,
IloNumVarType type,
String name)
conversion
in interface IloMPModeler
var
- The variable the type of which is to be converted.type
- The converted type for variable var
.name
- The name of the new IloConversion
object.
IloConversion
object.
IloException
public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar var, ilog.concert.IloNumVarType type) throws IloException
IloMPModeler.conversion(IloNumVar var,
IloNumVarType type)
conversion
in interface IloMPModeler
var
- The variable the type of which is to be converted.type
- The converted type for variable var
.
IloConversion
object.
IloException
public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] ilovar, ilog.concert.IloNumVarType type, java.lang.String name) throws IloException
IloMPModeler.conversion(IloNumVar[] ilovar,
IloNumVarType type,
String name)
conversion
in interface IloMPModeler
ilovar
- The array of variables the types of which are to be
converted.type
- The converted type for all variables in var
.name
- The name of the new IloConversion
object.
IloConversion
object.
IloException
public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] ilovar, ilog.concert.IloNumVarType type) throws IloException
IloMPModeler.conversion(IloNumVar[] ilovar,
IloNumVarType type)
conversion
in interface IloMPModeler
ilovar
- The array of variables the types of which are to be
converted.type
- The converted type for all variables in var
.
IloConversion
object.
IloException
public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] ilovar, ilog.concert.IloNumVarType[] type, java.lang.String name) throws IloException
IloMPModeler.conversion(IloNumVar[] ilovar,
IloNumVarType[] type,
String name)
conversion
in interface IloMPModeler
ilovar
- The array of variables the types of which are to be
converted.type
- An array of variable types containing the types to which
the variables are converted. The type of variable
var[i]
is converted to
type[i]
.name
- The name of the new IloConversion
object.
IloConversion
object.
IloException
public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] ilovar, ilog.concert.IloNumVarType[] type) throws IloException
IloMPModeler.conversion(IloNumVar[] ilovar,
IloNumVarType[] type)
conversion
in interface IloMPModeler
ilovar
- The array of variables the types of which are to be
converted.type
- An array of variable types containing the types to which
the variables are converted. The type of variable
var[i]
is converted to type[i]
.
IloConversion
object.
IloException
public ilog.concert.IloLPMatrix addLPMatrix(java.lang.String name) throws IloException
IloMPModeler.addLPMatrix(String name)
addLPMatrix
in interface IloMPModeler
name
- The name for the new IloLPMatrix
object.
IloLPMatrix
object.
IloException
public ilog.concert.IloLPMatrix addLPMatrix() throws IloException
IloMPModeler.addLPMatrix()
addLPMatrix
in interface IloMPModeler
IloLPMatrix
object.
IloException
public ilog.concert.IloLPMatrix LPMatrix(java.lang.String name) throws IloException
IloMPModeler.LPMatrix(String name)
LPMatrix
in interface IloMPModeler
name
- The name for the new IloLPMatrix
object.
IloLPMatrix
object.
IloException
public ilog.concert.IloLPMatrix LPMatrix() throws IloException
IloMPModeler.LPMatrix()
LPMatrix
in interface IloMPModeler
IloLPMatrix
object.
IloException
public ilog.concert.IloRange addRange(double lb, ilog.concert.IloNumExpr expr, double ub, java.lang.String name) throws IloException
IloModeler.addRange(double lb,
IloNumExpr expr,
double ub,
String name)
addRange
in interface IloModeler
lb
- Lower bound of the new IloRange
constraint.expr
- Expression of the new IloRange
constraint.ub
- Upper bound of the new IloRange
constraint.name
- Name assigned to the new IloRange
constraint.
IloRange
object initialized to represent the
constraint lb <= expr <= ub
.
IloException
public ilog.concert.IloRange addRange(double lb, ilog.concert.IloNumExpr expr, double ub) throws IloException
IloModeler.addRange(double lb,
IloNumExpr expr,
double ub)
addRange
in interface IloModeler
lb
- Lower bound of the new IloRange
constraint.expr
- Expression of the new IloRange
constraint.ub
- Upper bound of the new IloRange
constraint.
IloRange
object initialized to represent the
constraint lb <= expr <= ub
.
IloException
public ilog.concert.IloRange addRange(double lb, double ub, java.lang.String name) throws IloException
IloMPModeler.addRange(double lb,
double ub,
String name)
addRange
in interface IloMPModeler
lb
- The lower bound of the new IloRange
constraint.ub
- The upper bound of the new IloRange
constraint.name
- The name assigned to the new IloRange
constraint.
IloRange
object initialized to represent
the constraint lb <= 0 <= ub
.
IloException
public ilog.concert.IloRange addRange(double lb, double ub) throws IloException
IloMPModeler.addRange(double lb, double ub)
addRange
in interface IloMPModeler
lb
- The lower bound of the new IloRange
constraint.ub
- The upper bound of the new IloRange
constraint.
IloRange
object initialized to represent
the constraint lb <= 0 <= ub
.
IloException
public ilog.concert.IloRange addEq(ilog.concert.IloNumExpr e, double v) throws IloException
IloModeler.addEq(IloNumExpr e, double v)
addEq
in interface IloModeler
e
- Expression of the new equality constraint.v
- Upper bound of the new equality constraint.
IloRange
object initialized to represent the
constraint expr == rhs
.
IloException
public ilog.concert.IloRange addEq(ilog.concert.IloNumExpr e, double v, java.lang.String name) throws IloException
IloModeler.addEq(IloNumExpr e,
double v,
String name)
addEq
in interface IloModeler
e
- Expression of the new equality constraint.v
- Upper bound of the new equality constraint.name
- Name assigned to the new equality constraint.
IloRange
object initialized to represent the
constraint expr == rhs
.
IloException
public ilog.concert.IloConstraint addEq(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloModeler.addEq(IloNumExpr e1, IloNumExpr e2)
addEq
in interface IloModeler
e1
- Left-hand side expression of the new equality constraint.e2
- Right-hand side expression of the new equality constraint.
IloRange
object initialized to represent the
constraint e1 == e2
.
IloException
public ilog.concert.IloConstraint addEq(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name) throws IloException
IloModeler.addEq(IloNumExpr e1,
IloNumExpr e2,
String name)
addEq
in interface IloModeler
e1
- Left-hand side expression of the new equality constraint.e2
- Right-hand side expression of the new equality constraint.name
- Name assigned to the new IloRange
constraint.
IloRange
object initialized to represent the
constraint e1 == e2
.
IloException
public ilog.concert.IloRange addEq(double v, ilog.concert.IloNumExpr e) throws IloException
IloModeler.addEq(double v, IloNumExpr e)
addEq
in interface IloModeler
v
- Value of the new equality constraint.e
- Expression of the new equality constraint.
IloRange
object initialized to represent the
constraint val == expr
.
IloException
public ilog.concert.IloRange addEq(double v, ilog.concert.IloNumExpr e, java.lang.String name) throws IloException
IloModeler.addEq(double v,
IloNumExpr e,
String name)
addEq
in interface IloModeler
v
- Value of the new equality constraint.e
- Expression of the new equality constraint.name
- Name assigned to the new equality constraint.
IloRange
object initialized to represent the
constraint val == expr
.
IloException
public ilog.concert.IloRange addGe(ilog.concert.IloNumExpr e, double v) throws IloException
IloModeler.addGe(IloNumExpr e, double v)
addGe
in interface IloModeler
e
- Expression of the new greater-equal constraint.v
- Upper bound of the new greater-equal constraint.
IloRange
object initialized to represent the
constraint expr >= rhs
.
IloException
public ilog.concert.IloRange addGe(ilog.concert.IloNumExpr e, double v, java.lang.String name) throws IloException
IloModeler.addGe(IloNumExpr e,
double v,
String name)
addGe
in interface IloModeler
e
- Expression of the new greater-equal constraint.v
- Upper bound of the new greater-equal constraint.name
- Name assigned to the new greater-equal constraint.
IloRange
object initialized to represent the
constraint expr >= rhs
.
IloException
public ilog.concert.IloConstraint addGe(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloModeler.addGe(IloNumExpr e1, IloNumExpr e2)
addGe
in interface IloModeler
e1
- Left-hand side expression of the new greater-equal constraint.e2
- Right-hand side expression of the new greater-equal constraint.
IloRange
object initialized to represent the
constraint e1 >= e2
.
IloException
public ilog.concert.IloConstraint addGe(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name) throws IloException
IloModeler.addGe(IloNumExpr e1,
IloNumExpr e2,
String name)
addGe
in interface IloModeler
e1
- Left-hand side expression of the new greater-equal constraint.e2
- Right-hand side expression of the new greater-equal constraint.name
- Name assigned to the new IloRange
constraint.
IloRange
object initialized to represent the
constraint e1 >= e2
.
IloException
public ilog.concert.IloRange addGe(double v, ilog.concert.IloNumExpr e) throws IloException
IloModeler.addGe(double v, IloNumExpr e)
addGe
in interface IloModeler
v
- Value of the new greater-equal constraint.e
- Expression of the new greater-equal constraint.
IloRange
object initialized to represent the
constraint val >= expr
.
IloException
public ilog.concert.IloRange addGe(double v, ilog.concert.IloNumExpr e, java.lang.String name) throws IloException
IloModeler.addGe(double v, IloNumExpr e,
String name)
addGe
in interface IloModeler
v
- Value of the new greater-equal constraint.e
- Expression of the new greater-equal constraint.name
- Name assigned to the new greater-equal constraint.
IloRange
object initialized to represent the
constraint val >= expr
.
IloException
public ilog.concert.IloRange addLe(ilog.concert.IloNumExpr e, double v) throws IloException
IloModeler.addLe(IloNumExpr e, double v)
addLe
in interface IloModeler
e
- Expression of the new less-equal constraint.v
- Upper bound of the new less-equal constraint.
IloRange
object initialized to represent the
constraint expr <= rhs
.
IloException
public ilog.concert.IloRange addLe(ilog.concert.IloNumExpr e, double v, java.lang.String name) throws IloException
IloModeler.addLe(IloNumExpr e, double v,
String name)
addLe
in interface IloModeler
e
- Expression of the new less-equal constraint.v
- Upper bound of the new less-equal constraint.name
- Name assigned to the new less-equal constraint.
IloRange
object initialized to represent the
constraint expr <= rhs
.
IloException
public ilog.concert.IloConstraint addLe(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloModeler.addLe(IloNumExpr e1, IloNumExpr e2)
addLe
in interface IloModeler
e1
- Left-hand side expression of the new less-equal constraint.e2
- Right-hand side expression of the new less-equal constraint.
IloRange
object initialized to represent the
constraint e1 <= e2
.
IloException
public ilog.concert.IloConstraint addLe(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name) throws IloException
IloModeler.addLe(IloNumExpr e1, IloNumExpr e2,
String name)
addLe
in interface IloModeler
e1
- Left-hand side expression of the new less-equal constraint.e2
- Right-hand side expression of the new less-equal constraint.name
- Name assigned to the new IloRange
constraint.
IloRange
object initialized to represent the
constraint e1 <= e2
.
IloException
public ilog.concert.IloRange addLe(double v, ilog.concert.IloNumExpr e) throws IloException
IloModeler.addLe(double v, IloNumExpr e)
addLe
in interface IloModeler
v
- Value of the new less-equal constraint.e
- Expression of the new less-equal constraint.
IloRange
object initialized to represent the
constraint val <= exp
.
IloException
public ilog.concert.IloRange addLe(double v, ilog.concert.IloNumExpr e, java.lang.String name) throws IloException
IloModeler.addLe(double v, IloNumExpr e,
String name)
addLe
in interface IloModeler
v
- Value of the new less-equal constraint.e
- Expression of the new less-equal constraint.name
- Name assigned to the new less-equal constraint.
IloRange
object initialized to represent the
constraint val <= expr
.
IloException
public ilog.concert.IloRange range(double lb, ilog.concert.IloNumExpr expr, double ub, java.lang.String name) throws IloException
IloModeler.range(double lb,
IloNumExpr expr,
double ub,
String name)
range
in interface IloModeler
lb
- Lower bound of the new IloRange
constraint.expr
- Expression of the new IloRange
constraint.ub
- Upper bound of the new IloRange
constraint.name
- Name assigned to the new IloRange
constraint.
IloRange
object initialized to represent the
constraint lb <= expr <= ub
.
IloException
public ilog.concert.IloRange range(double lb, ilog.concert.IloNumExpr expr, double ub) throws IloException
IloModeler.range(double lb,
IloNumExpr expr,
double ub)
range
in interface IloModeler
lb
- Lower bound of the new IloRange
constraint.expr
- Expression of the new IloRange
constraint.ub
- Upper bound of the new IloRange
constraint.
IloRange
object initialized to represent the
constraint lb <= expr <= ub
.
IloException
public ilog.concert.IloRange range(double lb, double ub, java.lang.String name) throws IloException
IloMPModeler.range(double lb,
double ub,
String name)
range
in interface IloMPModeler
lb
- The lower bound of the new IloRange
constraint.ub
- The upper bound of the new IloRange
constraint.name
- The name assigned to the new IloRange
constraint.
IloRange
object initialized to represent
the constraint lb <= 0 <= ub
.
IloException
public ilog.concert.IloRange range(double lb, double ub) throws IloException
IloMPModeler.range(double lb, double ub)
range
in interface IloMPModeler
lb
- The lower bound of the new IloRange
constraint.ub
- The upper bound of the new IloRange
constraint.
IloRange
object initialized to represent
the constraint lb <= 0 <= ub
.
IloException
public ilog.concert.IloRange eq(ilog.concert.IloNumExpr e, double v) throws IloException
IloModeler.eq(IloNumExpr e, double v)
eq
in interface IloModeler
e
- Expression of the new equality constraint.v
- Upper bound of the new equality constraint.
IloRange
object initialized to represent the
constraint expr == rhs
.
IloException
public ilog.concert.IloRange eq(ilog.concert.IloNumExpr e, double v, java.lang.String name) throws IloException
IloModeler.eq(IloNumExpr e, double v, String name)
eq
in interface IloModeler
e
- Expression of the new equality constraint.v
- Upper bound of the new equality constraint.name
- Name assigned to the new equality constraint.
IloRange
object initialized to represent the
constraint expr == rhs
.
IloException
public ilog.concert.IloConstraint eq(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloModeler.eq(IloNumExpr e1, IloNumExpr e2)
eq
in interface IloModeler
e1
- Left-hand side expression of the new equality constraint.e2
- Right-hand side expression of the new equality constraint.
IloRange
object initialized to represent the
constraint e1 == e2
.
IloException
public ilog.concert.IloConstraint eq(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name) throws IloException
IloModeler.eq(IloNumExpr e1, IloNumExpr e2,
String name)
eq
in interface IloModeler
e1
- Left-hand side expression of the new equality constraint.e2
- Right-hand side expression of the new equality constraint.name
- Name assigned to the new IloRange
constraint.
IloRange
object initialized to represent the
constraint e1 == e2
.
IloException
public ilog.concert.IloRange eq(double v, ilog.concert.IloNumExpr e) throws IloException
IloModeler.eq(double v, IloNumExpr e)
eq
in interface IloModeler
v
- Value of the new equality constraint.e
- Expression of the new equality constraint.
IloRange
object initialized to represent the
constraint val == expr
.
IloException
public ilog.concert.IloRange eq(double v, ilog.concert.IloNumExpr e, java.lang.String name) throws IloException
IloModeler.eq(double v, IloNumExpr e,
String name)
eq
in interface IloModeler
v
- Value of the new equality constraint.e
- Expression of the new equality constraint.name
- Name assigned to the new equality constraint.
IloRange
object initialized to represent the
constraint val == expr
.
IloException
public ilog.concert.IloRange ge(ilog.concert.IloNumExpr e, double v) throws IloException
IloModeler.ge(IloNumExpr e, double v)
ge
in interface IloModeler
e
- Expression of the new greater-equal constraint.v
- Upper bound of the new greater-equal constraint.
IloRange
object initialized to represent the
constraint expr >= rhs
.
IloException
public ilog.concert.IloRange ge(ilog.concert.IloNumExpr e, double v, java.lang.String name) throws IloException
IloModeler.ge(IloNumExpr e, double v, String name)
ge
in interface IloModeler
e
- Expression of the new greater-equal constraint.v
- Upper bound of the new greater-equal constraint.name
- Name assigned to the new greater-equal constraint.
IloRange
object initialized to represent the
constraint expr >= rhs
.
IloException
public ilog.concert.IloConstraint ge(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloModeler.ge(IloNumExpr e1, IloNumExpr e2)
ge
in interface IloModeler
e1
- Left-hand side expression of the new greater-equal constraint.e2
- Right-hand side expression of the new greater-equal constraint.
IloRange
object initialized to represent the
constraint e1 >= e2
.
IloException
public ilog.concert.IloConstraint ge(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name) throws IloException
IloModeler.ge(IloNumExpr e1,
IloNumExpr e2, String name)
ge
in interface IloModeler
e1
- Left-hand side expression of the new greater-equal constraint.e2
- Right-hand side expression of the new greater-equal constraint.name
- Name assigned to the new greater-equal constraint.
IloRange
object initialized to represent the
constraint e1 >= e2
.
IloException
public ilog.concert.IloRange ge(double v, ilog.concert.IloNumExpr e) throws IloException
IloModeler.ge(double v, IloNumExpr e)
ge
in interface IloModeler
v
- Value of the new greater-equal constraint.e
- Expression of the new greater-equal constraint.
IloRange
object initialized to represent the
constraint val >= expr
.
IloException
public ilog.concert.IloRange ge(double v, ilog.concert.IloNumExpr e, java.lang.String name) throws IloException
IloModeler.ge(double v, IloNumExpr e,
String name)
ge
in interface IloModeler
v
- Value of the new greater-equal constraint.e
- Expression of the new greater-equal constraint.name
- Name assigned to the new greater-equal constraint.
IloRange
object initialized to represent the
constraint val >= expr
.
IloException
public ilog.concert.IloRange le(ilog.concert.IloNumExpr e, double v) throws IloException
IloModeler.le(IloNumExpr e, double v)
le
in interface IloModeler
e
- Expression of the new less-equal constraint.v
- Upper bound of the new less-equal constraint.
IloRange
object initialized to represent the
constraint expr <= rhs
.
IloException
public ilog.concert.IloRange le(ilog.concert.IloNumExpr e, double v, java.lang.String name) throws IloException
IloModeler.le(IloNumExpr e, double v, String name)
le
in interface IloModeler
e
- Expression of the new less-equal constraint.v
- Upper bound of the new less-equal constraint.name
- Name assigned to the new less-equal constraint.
IloRange
object initialized to represent the
constraint expr <= rhs
.
IloException
public ilog.concert.IloConstraint le(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2) throws IloException
IloModeler.le(IloNumExpr e1, IloNumExpr e2)
le
in interface IloModeler
e1
- Left-hand side expression of the new less-equal constraint.e2
- Right-hand side expression of the new less-equal constraint.
IloRange
object initialized to represent the
constraint e1 <= e2
.
IloException
public ilog.concert.IloConstraint le(ilog.concert.IloNumExpr e1, ilog.concert.IloNumExpr e2, java.lang.String name) throws IloException
IloModeler.le(IloNumExpr e1, IloNumExpr e2,
String name)
le
in interface IloModeler
e1
- Left-hand side expression of the new less-equal constraint.e2
- Right-hand side expression of the new less-equal constraint.name
- Name assigned to the new IloRange
constraint.
IloRange
object initialized to represent the
constraint e1 <= e2
.
IloException
public ilog.concert.IloRange le(double v, ilog.concert.IloNumExpr e) throws IloException
IloModeler.le(double v, IloNumExpr e)
le
in interface IloModeler
v
- Value of the new less-equal constraint.e
- Expression of the new less-equal constraint.
IloRange
object initialized to represent the
constraint val <= expr
.
IloException
public ilog.concert.IloRange le(double v, ilog.concert.IloNumExpr e, java.lang.String name) throws IloException
IloModeler.le(double v, IloNumExpr e, String name)
le
in interface IloModeler
v
- Value of the new less-equal constraint.e
- Expression of the new less-equal constraint.name
- Name assigned to the new less-equal constraint.
IloRange
object initialized to represent the
constraint val <= expr
.
IloException
public void addToExpr(ilog.concert.IloRange rng, ilog.concert.IloNumExpr expr) throws IloException
IloMPModeler.addToExpr(IloRange rng,
IloNumExpr expr)
addToExpr
in interface IloMPModeler
rng
- The range constraint to modify.expr
- The expression to add.
IloException
public void setLinearCoef(ilog.concert.IloRange rng, double val, ilog.concert.IloNumVar var) throws IloException
IloMPModeler.setLinearCoef(IloRange rng,
double val,
IloNumVar var)
setLinearCoef
in interface IloMPModeler
rng
- The range constraint to modify.val
- The coefficient to set.var
- The variable for which to set the coefficient.
IloException
public void setLinearCoef(ilog.concert.IloRange rng, ilog.concert.IloNumVar var, double val) throws IloException
IloMPModeler.setLinearCoef(IloRange rng,
IloNumVar var,
double val)
setLinearCoef
in interface IloMPModeler
rng
- The range constraint to modify.val
- The coefficient to set.var
- The variable for which to set the coefficient.
IloException
public void setLinearCoefs(ilog.concert.IloRange rng, double[] val, ilog.concert.IloNumVar[] var) throws IloException
IloMPModeler.setLinearCoefs(IloRange rng,
double[] val,
IloNumVar[] var)
setLinearCoefs
in interface IloMPModeler
rng
- The range constraint to modify.val
- The array of linear coefficient values. The linear
coefficient of variable var[i]
is set
to val[i]
.var
- The array of variables for which to set linear coefficients.
A variable may only appear once in this array.
IloException
public void setLinearCoefs(ilog.concert.IloRange rng, ilog.concert.IloNumVar[] var, double[] val) throws IloException
IloMPModeler.setLinearCoefs(IloRange rng,
IloNumVar[] var,
double[] val)
setLinearCoefs
in interface IloMPModeler
rng
- The range constraint to modify.var
- The array of variables for which to set linear coefficients.
A variable may only appear once in this array.val
- The array of linear coefficient values. The linear
coefficient of variable var[i]
is set
to val[i]
.
IloException
public void setLinearCoefs(ilog.concert.IloRange rng, double[] val, ilog.concert.IloNumVar[] var, int start, int num) throws IloException
IloMPModeler.setLinearCoefs(IloRange rng,
double[] val,
IloNumVar[] var,
int start, int num)
setLinearCoefs
in interface IloMPModeler
rng
- The range constraint to modify.val
- An array containing linear coefficient values. The linear
coefficient of variable var[i]
is set to
val[i]
.var
- An array containing the variables for which to set linear
coefficients. A variable may only appear once in this
array.start
- The first element in val
and var
to use for setting coefficients.num
- The number of elements in val
and
var
to use for setting coefficients.
IloException
public void setLinearCoefs(ilog.concert.IloRange rng, ilog.concert.IloNumVar[] var, double[] val, int start, int num) throws IloException
IloMPModeler.setLinearCoefs(IloRange rng,
IloNumVar[] var,
double[] val,
int start, int num)
setLinearCoefs
in interface IloMPModeler
rng
- The range constraint to modify.var
- An array containing the variables for which to set linear
coefficients. A variable may only appear once in this
array.val
- An array containing linear coefficient values. The linear
coefficient of variable var[i]
is set
to val[i]
.start
- The first element in val
and var
to use for setting coefficients.num
- The number of elements in val
and
var
to use for setting coefficients.
IloException
public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var, double[] val) throws IloException
IloMPModeler.addSOS1(IloNumVar[] var,
double[] val)
addSOS1
in interface IloMPModeler
var
- The variables in the new SOS.val
- The weight values for the variables in the new SOS.
IloSOS1
object.
IloException
public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var, double[] val, int start, int num) throws IloException
IloMPModeler.addSOS1(IloNumVar[] var,
double[] val,
int start, int num)
addSOS1
in interface IloMPModeler
var
- The array containing the variables in the new SOS.val
- The array containing the weight values for the variables
in the new SOS.start
- The first element in var
and
val
to use for the new SOS.num
- The number of elements in var
and
val
to use for the new SOS.
IloSOS1
object.
IloException
public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var, double[] val, java.lang.String name) throws IloException
IloMPModeler.addSOS1(IloNumVar[] var,
double[] val, String name)
addSOS1
in interface IloMPModeler
var
- The variables in the new SOS.val
- The weight values for the variables in the new SOS.name
- The name of the new SOS.
IloSOS1
object.
IloException
public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var, double[] val, int start, int num, java.lang.String name) throws IloException
IloMPModeler.addSOS1(IloNumVar[] var,
double[] val,
int start,
int num,
String name)
addSOS1
in interface IloMPModeler
var
- An array containing the variables in the new SOS.val
- An array containing the weight values for the variables
in the new SOS.start
- The first element in var
and
val
to use for the new SOS.num
- The number of elements in var
and
val
to use for the new SOS.name
- The name of the new SOS.
IloSOS1
object.
IloException
public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var, double[] val) throws IloException
IloMPModeler.SOS1(IloNumVar[] var, double[] val)
SOS1
in interface IloMPModeler
var
- The variables in the new SOS.val
- The weight values for the variables in the new SOS.
IloSOS1
object.
IloException
public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var, double[] val, int start, int num) throws IloException
IloMPModeler.SOS1(IloNumVar[] var,
double[] val,
int start, int num)
SOS1
in interface IloMPModeler
var
- An array containing the variables in the new SOS.val
- An array containing the weight values for the variables
in the new SOS.start
- The first element in var
and
val
to use for the new SOS.num
- The number of elements in var
and
val
to use for the new SOS.
IloSOS1
object.
IloException
public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var, double[] val, java.lang.String name) throws IloException
IloMPModeler.SOS1(IloNumVar[] var,
double[] val, String name)
SOS1
in interface IloMPModeler
var
- The variables in the new SOS.val
- The weight values for the variables in the new SOS.name
- The name of the new SOS.
IloSOS1
object.
IloException
public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var, double[] val, int start, int num, java.lang.String name) throws IloException
IloMPModeler.SOS1(IloNumVar[] var,
double[] val,
int start,
int num,
String name)
SOS1
in interface IloMPModeler
var
- An array containing the variables in the new SOS.val
- An array containing the weight values for the variables
in the new SOS.start
- The first element in var
and
val
to use for the new SOS.num
- The number of elements in var
and
val
to use for the new SOS.name
- The name of the new SOS.
IloSOS1
object.
IloException
public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var, double[] val) throws IloException
IloMPModeler.addSOS2(IloNumVar[] var, double[] val)
addSOS2
in interface IloMPModeler
var
- The variables in the new SOS.val
- The weight values for the variables in the new SOS.
IloSOS2
object.
IloException
public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var, double[] val, int start, int num) throws IloException
IloMPModeler.addSOS2(IloNumVar[] var,
double[] val,
int start, int num)
addSOS2
in interface IloMPModeler
var
- An array containing the variables in the new SOS.val
- An array containing the weight values for the variables
in the new SOS.start
- The first element in var
and
val
to use for the new SOS.num
- The number of elements in var
and
val
to use for the new SOS.
IloSOS2
object.
IloException
public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var, double[] val, java.lang.String name) throws IloException
IloMPModeler.addSOS2(IloNumVar[] var,
double[] val,
String name)
addSOS2
in interface IloMPModeler
var
- The variables in the new SOS.val
- The weight values for the variables in the new SOS.name
- The name of the new SOS.
IloSOS2
object.
IloException
public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var, double[] val, int start, int num, java.lang.String name) throws IloException
IloMPModeler.addSOS2(IloNumVar[] var,
double[] val,
int start,
int num,
String name)
addSOS2
in interface IloMPModeler
var
- An array containing the variables in the new SOS.val
- An array containing the weight values for the variables
in the new SOS.start
- The first element in var
and
val
to use for the new SOS.num
- The number of elements in var
and
val
to use for the new SOS.name
- The name of the new SOS.
IloSOS2
object.
IloException
public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var, double[] val) throws IloException
IloMPModeler.SOS2(IloNumVar[] var, double[] val)
SOS2
in interface IloMPModeler
var
- The variables in the new SOS.val
- The weight values for the variables in the new SOS.
IloSOS2
object.
IloException
public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var, double[] val, int start, int num) throws IloException
IloMPModeler.SOS2(IloNumVar[] var,
double[] val,
int start,
int num)
SOS2
in interface IloMPModeler
var
- An array containing the variables in the new SOS.val
- An array containing the weight values for the variables
in the new SOS.start
- The first element in var
and
val
to use for the new SOS.num
- The number of elements in var
and
val
to use for the new SOS.
IloSOS2
object.
IloException
public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var, double[] val, java.lang.String name) throws IloException
IloMPModeler.SOS2(IloNumVar[] var,
double[] val,
String name)
SOS2
in interface IloMPModeler
var
- The variables in the new SOS.val
- The weight values for the variables in the new SOS.name
- The name of the new SOS.
IloSOS2
object.
IloException
public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var, double[] val, int start, int num, java.lang.String name) throws IloException
IloMPModeler.SOS2(IloNumVar[] var,
double[] val,
int start,
int num,
String name)
SOS2
in interface IloMPModeler
var
- An array containing the variables in the new SOS.val
- An array containing the weight values for the variables
in the new SOS.start
- The first element in var
and
val
to use for the new SOS.num
- The number of elements in var
and
val
to use for the new SOS.name
- The name of the new SOS.
IloSOS2
object.
IloException
public void delete(ilog.concert.IloCopyable obj) throws IloException
IloMPModeler.delete(IloCopyable obj)
delete
in interface IloMPModeler
obj
- The modeling object to be deleted from the invoking
IloModel.
IloException
public ilog.concert.IloColumn column(ilog.concert.IloRange rng, double val) throws IloException
IloMPModeler.column(IloRange rng, double val)
column
in interface IloMPModeler
rng
- The range constraint for which to create the column
term.val
- The linear coefficient the new IloColumn
will use for adding a new variable to rng
.
IloColumn
object.
IloException
public ilog.concert.IloColumnArray columnArray(ilog.concert.IloRange rng, double[] val) throws IloException
IloMPModeler.columnArray(IloRange rng,
double[] val)
columnArray
in interface IloMPModeler
rng
- The range constraint for which to create the column
array term.val
- The linear coefficient the IloColumnArray
will use for adding new variables to rng
.
IloColumnArray
object.
IloException
public ilog.concert.IloColumnArray columnArray(ilog.concert.IloRange rng, double[] val, int start, int num) throws IloException
IloMPModeler.columnArray(IloRange rng,
double[] val,
int start, int num)
columnArray
in interface IloMPModeler
rng
- The range constraint for which to create the column
array term.val
- An array containing the linear coefficients the
IloColumnArray
will use for adding new
variables to rng
.start
- The first element in val
to use.num
- The number of elements in val
to use.
IloColumnArray
object.
IloException
public ilog.concert.IloColumn column(ilog.concert.IloObjective obj, double val) throws IloException
IloMPModeler.column(IloObjective obj, double val)
column
in interface IloMPModeler
obj
- The objective for which to create the column term.val
- The linear coefficient the new IloColumn
will use for adding a new variable to obj
.
IloColumn
object.
IloException
public ilog.concert.IloColumnArray columnArray(ilog.concert.IloObjective obj, double[] val) throws IloException
IloMPModeler.columnArray(IloObjective obj,
double[] val)
columnArray
in interface IloMPModeler
obj
- The objective for which to create the column array term.val
- The linear coefficients the IloColumnArray
will use for adding new variables to obj
.
IloColumnArray
object.
IloException
public ilog.concert.IloColumnArray columnArray(ilog.concert.IloObjective obj, double[] val, int start, int num) throws IloException
IloMPModeler.columnArray(IloObjective obj,
double[] val,
int start, int num)
columnArray
in interface IloMPModeler
obj
- The objective for which to create the column array term.val
- An array containing the linear coefficients the
IloColumnArray
will use for adding new
variables to obj
.start
- The first element in val
to use.num
- The number of elements in val
to use.
IloColumnArray
object.
IloException
public ilog.concert.IloColumn column(ilog.concert.IloLPMatrix lp) throws IloException
IloMPModeler.column(IloLPMatrix lp)
column
in interface IloMPModeler
lp
- The IloLPMatrix
object for which to create
the new column.
IloColumn
object.
IloException
public ilog.concert.IloColumn column(ilog.concert.IloLPMatrix lp, int[] ind, double[] val) throws IloException
IloMPModeler.column(IloLPMatrix lp,
int[] ind, double[] val)
column
in interface IloMPModeler
lp
- The IloLPMatrix
object for which to create
the new column.ind
- An array of indices indicating the row indices of the
non-zeros in the new column. Indices may not occur
multiple times in this list and must be in the range
0
through lp.getNcols()-1
.val
- An array of values indicating the value of the non-zero
entries for the column.
IloColumn
object suitable for creating
a new column in lp
with nonzeros as
specified by parameters ind
and
val
.
IloException
public ilog.concert.IloColumn column(ilog.concert.IloLPMatrix lp, int[] ind, double[] val, int start, int num) throws IloException
IloMPModeler.column(IloLPMatrix lp,
int[] ind, double[] val,
int start, int num)
column
in interface IloMPModeler
lp
- The IloLPMatrix
object for which to create
the new column.ind
- An array containing the indices indicating the row
indices of the non-zeros in the new column. Indices
may not occur multiple times in this list and must be
in the range 0
through
lp.getNcols()-1
.val
- An array containing values indicating the value of the
non-zero entries for the column.start
- The index of the first element in arrays
ind
and val
to use.num
- The number of elements in arrays ind
and
val
to use.
IloColumn
object suitable for creating
a new column in lp
with nonzeros as
specified in parameters ind
and
val
.
IloException
public ilog.concert.IloColumnArray columnArray(ilog.concert.IloLPMatrix lp, int num, int[][] ind, double[][] val) throws IloException
IloMPModeler.columnArray(IloLPMatrix lp, int num,
int[][] ind,
double[][] val)
columnArray
in interface IloMPModeler
lp
- The IloLPMatrix
object for which to create
the new column array term.num
- The size of the column array term to create or,
equivalently, the number of elements in
ind
and val
to use.ind
- An array of arrays of row indices of the non-zeros
for each of the new columns. Indices may not occur
multiple times within one column, and they must be in
the range 0
through
lp.getNcols()-1
.val
- An array of arrays of values of the non-zeros for each
of the new columns.
IloColumnArray
object suitable for
creating new columns in the LP matrix lp
as specified by parameters ind
and
val
.
IloException
public ilog.concert.IloColumnArray columnArray(ilog.concert.IloLPMatrix lp, int num) throws IloException
IloMPModeler.columnArray(IloLPMatrix lp, int num)
columnArray
in interface IloMPModeler
lp
- The IloLPMatrix
object for which to create
the new column.num
- The size of the new column array term to create.
IloColumnArray
object suitable for
creating num
empty columns to the
IloLPMatrix
.
IloException
public void delete(ilog.concert.IloCopyable[] obj) throws IloException
IloMPModeler.delete(IloCopyable[] obj)
delete
in interface IloMPModeler
obj
- The array of modeling objects to be deleted from the
invoking IloModel
IloException
public void delete(ilog.concert.IloCopyable[] obj, int beg, int num) throws IloException
IloMPModeler.delete(IloCopyable[] obj,
int beg, int num)
delete
in interface IloMPModeler
obj
- An array containing the modeling objects to be deleted
from the invoking IloModel
.beg
- The index of the first modeling object in
obj
to be deleted from the invoking
IloModel
.num
- The number of modeling objects in obj
to
be deleted from the invoking IloModel
.
IloException
public ilog.concert.IloLinearNumExpr scalProd(int[] vals, ilog.concert.IloNumVar[] vars, int start, int num) throws IloException
num
values in vals
starting
at element start
with the corresponding variables in
vars
.
vals
- An array containing the values to use for building the
scalar product.vars
- An array containing the variables to use for building
the scalar product.start
- The index of the first element to use in vals
and vars
.num
- The number of elements to use in vals
and
vars
.
IloException
public ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars, int[] vals, int start, int num) throws IloException
num
variables in vars
starting
at element start
with the corresponding values in
vals
.
vars
- An array containing the variables to use for building
the scalar product.vals
- An array containing the values to use for building the
scalar product.start
- The index of the first element to use in vals
and vars
.num
- The number of elements to use in vals
and
vars
.
IloException
public ilog.concert.IloLinearIntExpr linearIntExpr() throws IloException
IloModeler.linearIntExpr()
linearIntExpr
in interface IloModeler
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr[] expr, int start, int num) throws IloException
IloModeler.sum(IloNumExpr[] expr,
int start, int num)
sum
in interface IloModeler
expr
- An array containing the expressions to be summed.start
- The first expression in expr
to be used.num
- The number of expressions in expr
to be used.
IloException
public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr[] expr) throws IloException
IloModeler.sum(IloNumExpr[] expr)
sum
in interface IloModeler
expr
- An array containing the expressions to be summed.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr[] expr, int start, int num) throws IloException
IloModeler.sum(IloIntExpr[] expr,
int start, int num)
sum
in interface IloModeler
expr
- An array containing the expressions to be summed.start
- The first expression in expr
to be used.num
- The number of expressions in expr
to be used.
IloException
public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr[] expr) throws IloException
IloModeler.sum(IloIntExpr[] expr)
sum
in interface IloModeler
expr
- An array containing the expressions to be summed.
IloException
public ilog.concert.IloConstraint addUserCut(ilog.concert.IloConstraint cut) throws IloException
Important:
Advanced methods typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other methods instead.
This method adds cut
as a user cut to the
invoking IloCplex
object. Unlike regular constraints that are added to the model, user
cuts are by default left out of the optimization until they are violated.
It is only after a node solution violates a user cut that the cut is added
to the relaxation and will be used from then on. Unlike lazy
constraints, user cuts must not reduce the feasible region of the
problem; they can only strengthen the relaxation; otherwise,
incorrect solutions can result.
When columns are deleted from the active model, all user cuts are
deleted as well and need to be added again if they should be considered.
Use clearUserCuts
to remove all user cuts from
the invoking IloCplex
object.
cut
- The user cut to be added. The cut must be linear.
IloException
public ilog.concert.IloConstraint[] addUserCuts(ilog.concert.IloConstraint[] cuts) throws IloException
Important:
Advanced methods typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other methods instead.
This method adds the constraints in cuts
as user cuts to the
the invoking IloCplex
object. The constraint
cut
is copied into the user cut pool; the object
cut
itself is not part of the pool, so changes
to it after it has been copied into the user cut pool will not
affect the user cut pool.
When columns are deleted from the active model, all user cuts are
deleted as well and need to be added again if they should be considered.
Otherwise, use clearUserCuts
to remove all user cuts from
the invoking IloCplex
object.
cuts
- An array of user cuts to be added. All cuts must be
linear.
IloException
public ilog.concert.IloConstraint[] addUserCuts(ilog.concert.IloConstraint[] cuts, int start, int num) throws IloException
Important:
Advanced methods typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other methods instead.
This method adds the constraints in cuts
as user cuts to the
the invoking IloCplex
object. The constraints in the array
cuts
are copied into the user cut pool; the objects in the
array cut
themselves are not part of the pool, so changes
to them after they have been copied into the user cut pool will not
affect the user cut pool.
Unlike regular constraints that are added to the model, user cuts are by default left out of the optimization until they are violated. It is only after a node solution violates a user cut that the cut is added to the relaxation and will be used from then on. Unlike lazy constraints, user cuts must not reduce the feasible region of the problem; they can only strengthen the relaxation; otherwise, incorrect solutions can result.
When columns are deleted from the active model, all user cuts are
deleted as well and need to be added again if they should be considered.
Otherwise, use clearUserCuts
to remove all user cuts from
the invoking IloCplex
object.
cuts
- An array of user cuts to be added. All cuts must be
linear.start
- The first element in cuts
to be added as
a user cut.num
- The number of elements in cuts
to be added
as a user cut.
cuts
containing the user cuts
that have been added.
IloException
public void clearUserCuts() throws IloException
Important:
Advanced methods typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other methods instead.
This method deletes user cuts. It
deletes all user cuts that have previously been
added to the invoking IloCplex
object with the methods
addUserCut
or addUserCuts
.
IloException
public ilog.concert.IloConstraint addLazyConstraint(ilog.concert.IloConstraint cut) throws IloException
Important:
Advanced methods typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other methods instead.
This method adds cut
as a lazy constraint to the invoking
IloCplex
object. The constraint cut
is copied
into the lazy constraint pool; the cut
itself is not part
of the pool, so changes to cut
after it has been copied into
the lazy constraint pool will not affect the lazy constraint pool.
Lazy constraints added with addLazyConstraint
are typically
constraints of the model that are not expected to be violated when left
out. The idea behind this is that the LPs that are solved when
the MIP is being solved
can be kept smaller when these constraints are not included.
IloCplex
will, however, include a lazy constraint in the LP
as soon as the constraint is violated. In other words, the solution
computed by IloCplex
makes sure that all the lazy constraints
that have been added are satisfied.
By contrast, if the constraint does not change the feasible region of the
active model but only strengthens the formulation, it is referred to
as a user cut. User cuts can be added to
IloCplex
by addLazyConstraint
, but it is
generally preferable to do so with addUserCuts
. It is an
error, however, to add lazy constraints by means
of addUserCuts
.
When columns are deleted from the active model, all lazy constraints
are deleted as well and need to be recopied into the lazy constraint
pool. Otherwise, use clearLazyConstraints
to clear the
list of lazy constraints.
cut
- The constraint to be added as a lazy constraint. The
constraint must be linear.
IloException
public ilog.concert.IloConstraint[] addLazyConstraints(ilog.concert.IloConstraint[] cut) throws IloException
Important:
Advanced methods typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other methods instead.
This method adds the constraints given in cut
to the list of lazy constraints.
The constraints are copied into the lazy constraint pool; the constraints
themselves do not become part of the pool, so changes to them
after they have been copied into the lazy constraint pool will not affect
the lazy constraint pool.
Lazy constraints added with addLazyConstraints
are typically
constraints of the model that are not expected to be violated when left
out. The idea behind this is that the LPs that are solved when
the MIP is being solved
can be kept smaller when these constraints are not included.
IloCplex
will, however, include a lazy constraint in the LP
as soon as the constraint is violated. In other words, the solution
computed by IloCplex
makes sure that all the lazy constraints
that have been added are satisfied.
By contrast, if the constraint does not change the feasible region of the
active model but only strengthens the formulation, it is referred to
as a user cut. User cuts can be added to
IloCplex
by addLazyConstraint
, but it is
generally preferable to do so with addUserCuts
. It is an
error, however, to add lazy constraints by means of
addUserCuts
.
When columns are deleted from the active model, all lazy constraints
are deleted as well and need to be recopied into the lazy constraint
pool. Otherwise, use clearLazyConstraints
to clear the
list of lazy constraints.
cut
- The array of constraints to be added as lazy constraints.
All constraints must be linear.
IloException
public ilog.concert.IloConstraint[] addLazyConstraints(ilog.concert.IloConstraint[] cut, int start, int num) throws IloException
Important:
Advanced methods typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other methods instead.
This method copies constraints into the lazy constraints pool.
num
constraints listed in array cut
are copied
into the lazy constraint pool, starting
with element start
.
The constraints themselves do not become part of the pool, so changes to
them after they have been copied into the lazy constraint pool will not
affect the lazy constraint pool.
Lazy constraints added with addLazyConstraints
are typically
constraints of the model that are not expected to be violated when left
out. The idea behind this is that the LPs that are solved when
the MIP is being solved
can be kept smaller when these constraints are not included.
IloCplex
will, however, include a lazy constraint in the LP
as soon as the constraint is violated. In other words, the solution
computed by IloCplex
makes sure that all the lazy constraints
that have been added are satisfied.
By contrast, if the constraint does not change the feasible region of the
active model but only strengthens the formulation, it is referred to
as a user cut. User cuts can be added to
IloCplex
by addLazyConstraint
, but it is
generally preferable to do so with addUserCuts
. It is an
error, however, to add lazy constraints by means of
addUserCuts
.
When columns are deleted from the active model, all lazy constraints
are deleted as well and need to be recopied into the lazy constraint
pool. Otherwise, use clearLazyConstraints
to clear the
list of lazy constraints.
cut
- An array of constraints to be added as lazy
constraints. All constraints must be linear.start
- The index of the first element in cut
to
be added as a lazy constraint.num
- The number of constraints in cut
to
be added as lazy constraints.
cut
.
IloException
public void clearLazyConstraints() throws IloException
Important:
Advanced methods typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other methods instead.
This method removes all lazy constraints
that have been added to the invoking
IloCplex
object with the methods
addLazyConstraint
and addLazyConstraints
.
IloException
public ilog.concert.IloConstraint addCut(ilog.concert.IloConstraint cut) throws IloException
cut
as a cut to the invoking
IloCplex
object. The cut does not become part of the model;
it is only copied when the method addCut
is invoked. Thus,
cut
may be deleted or modified after addCut
has
been called, and the change will not affect the invoking
IloCplex
object.
Cuts are not part of the root problem; they are considered on an
as-needed basis. A solution computed by IloCplex
is
guaranteed to satisfy all cuts.
When columns are deleted from the active model, all cuts are
deleted as well and need to be added again if they should be considered.
Otherwise, use clearCuts
to clear all cuts that have been
added.
cut
- The constraint to add as a cut. It must be linear.
IloException
public ilog.concert.IloConstraint[] addCuts(ilog.concert.IloConstraint[] cut) throws IloException
cut
as cuts to the invoking
IloCplex
object. The cuts do not become part of the model;
they are only copied when the method addCuts
is invoked. Thus,
the constraints may be deleted or modified after addCuts
has been called, and the change will not affect the invoking
IloCplex
object.
Cuts are not part of the root problem; they are considered on an
as-needed basis. A solution computed by IloCplex
is
guaranteed to satisfy all cuts.
When columns are deleted from the active model, all cuts are
deleted as well and need to be added again if they should be considered.
Otherwise, use clearCuts
to clear all cuts that have been
added.
cut
- An array of constraints to be added as a cut.
IloException
public ilog.concert.IloConstraint[] addCuts(ilog.concert.IloConstraint[] cut, int start, int num) throws IloException
num
constraints given in cut
as cuts to the invoking IloCplex
object, starting
with element cut[start]
. The cuts do not become part of the
model; they are only copied when the method addCuts
is invoked.
Thus, the constraints may be deleted or modified after
addCuts
has been called, and the change will not affect the
invoking IloCplex
object.
Cuts are not part of the root problem; they are considered on an
as-needed basis. A solution computed by IloCplex
is
guaranteed to satisfy all cuts.
When columns are deleted from the active model, all cuts are
deleted as well and need to be added again if they should be considered.
Otherwise, use clearCuts
to clear all cuts that have been
added.
cut
- An array of constraints to be added as cuts.
All constraints must be linear.start
- The index of the first constraint in cut
that is to be added as a cut.num
- The number of constraints in cut
that are to be added as cuts.
cut
.
IloException
public void clearCuts() throws IloException
IloCplex
object
with the methods addCut
and addCuts
.
IloException
public void exportModel(java.lang.String name) throws IloException
getName
returns null
for that
variable or range), IloCplex
uses a default name when
writing the model (or in the optimization log). Default names are of the
form IloXj for variables and IloCi, where i
and j are internal indices of IloCplex
.
name
- The name of the file to which the model is written.
The extension of the filename determines the format in
which to write the model file.
IloException
public void importModel(java.lang.String name) throws IloException
IloObjective
object and one
IloLPMatrix
object are always added to the
active model. The IloLPMatrix
object will
contain all the constraints of the imported model. IloSOS1
and IloSOS2
objects are added as needed.
name
- The name of the file from which the model is read.
The extension of the filename determines the format in
which to read the model file.
IloException
public void clearModel() throws IloException
IloException
public int getNcols()
public int getNrows()
public int getNQCs()
public int getNSOS1()
SOS
s of type 1 in the active model.
SOS
s of type 1 in the active model.public int getNSOS2()
SOS
s of type 2 in the active model.
SOS
s of type 2 in the active model.public int getNSOSs()
SOS
s of both types, 1 and 2 in the
active model.
SOS
s in the active model.public int getNNZs()
public int getNintVars()
public int getNbinVars()
public int getNsemiContVars()
public int getNsemiIntVars()
public boolean isMIP()
true
if the active model is a MIP.
true
if the active model is a MIP.public boolean isQO()
true
if the active model has a quadratic objective
function.
true
if the active model has a quadratic objective
function.public boolean isQC()
true
if the active model has quadratic
constraints. See the topic QCP in the ILOG CPLEX User's
Manual for more detail about the characteristics of such
constraints with respect to their concavity and positive
semi-definiteness (PSD).
true
if the active model has quadratic
constraints.public java.util.Iterator LPMatrixIterator()
IloLPMatrix
objects in the
active model.
IloLPMatrix
objects in the
active model.public java.util.Iterator rangeIterator()
IloRange
objects in the
active model. This iterator accounts for only the IloRange
objects directly added to the active model and not the objects that may
be in an IloLPMatrix
object and have been added indirectly.
IloRange
objects in the
active model.public java.util.Iterator conversionIterator()
IloConversion
objects in the
active model.
IloConversion
objects in the
active model.public java.util.Iterator SOS1iterator()
IloSOS1
objects in the
active model.
IloSOS1
objects in the
active model.public java.util.Iterator SOS2iterator()
IloSOS2
objects in the
active model.
IloSOS2
objects in the
active model.public ilog.concert.IloObjective getObjective()
IloObjective
object of the
active model, or null
if no IloObjective
object
is currently in the active model.
IloObjective
object in the active
model, or null
if there is no
IloObjective
.public IloCplex.Status getStatus() throws IloException
IloException
IloCplex.Status
public boolean isPrimalFeasible() throws IloException
true
if a primal feasible solution is available.
If false
is returned the solution may still be primal
feasible, but the algorithm has not determined the feasibility before
it terminated.
IloException
public boolean isDualFeasible() throws IloException
true
if a dual feasible solution is available. If
false
is returned the solution may still be dual feasible,
but the algorithm has not determined the feasibility before it
terminated.
IloException
public void setParam(IloCplex.IntParam which, int val) throws IloException
val
.
which
- The identifier of the parameter to set.val
- The new value for the integer parameter.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public int getParam(IloCplex.IntParam which) throws IloException
which
- The identifier of the integer parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public int getMin(IloCplex.IntParam which) throws IloException
which
- The identifier of the integer parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public int getMax(IloCplex.IntParam which) throws IloException
which
- The identifier of the integer parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public int getDefault(IloCplex.IntParam which) throws IloException
which
- The identifier of the integer parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public void setParam(IloCplex.BooleanParam which, boolean val) throws IloException
val
.
which
- The identifier of the Boolean parameter to be set.val
- The new value for the Boolean parameter.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public boolean getParam(IloCplex.BooleanParam which) throws IloException
which
- The identifier of the Boolean parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public boolean getDefault(IloCplex.BooleanParam which) throws IloException
which
- The identifier of the Boolean parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public void setParam(IloCplex.DoubleParam which, double val) throws IloException
val
.
which
- The identifier of the double parameter to be set.val
- The new value for the double parameter
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double getParam(IloCplex.DoubleParam which) throws IloException
which
- The identifier of the double parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double getMin(IloCplex.DoubleParam which) throws IloException
which
- The identifier of the double parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double getMax(IloCplex.DoubleParam which) throws IloException
which
- The identifier of the double parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double getDefault(IloCplex.DoubleParam which) throws IloException
which
- The identifier of the double parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public void setParam(IloCplex.StringParam which, java.lang.String val) throws IloException
val
.
which
- The identifier of the string parameter to set.val
- The new value for the string parameter.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public java.lang.String getParam(IloCplex.StringParam which) throws IloException
which
- The identifier of the string parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public java.lang.String getDefault(IloCplex.StringParam which) throws IloException
which
- The identifier of the string parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public void setDefaults() throws IloException
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public java.lang.String getVersion() throws IloException
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public void setDeleteMode(IloCplex.DeleteMode mode)
IloCplex
object is set to
mode
.
mode
- The delete mode to be set,
IloCplex.DeleteMode.FixBasis
or
IloCplex.DeleteMode.LeaveBasis
.public IloCplex.DeleteMode getDeleteMode()
IloCplex
object.
IloCplex
object.public IloCplex.CplexStatus getCplexStatus() throws IloException
IloCplex
algorithm. The status
of IloCplex.CplexStatus
provides
more information about the status of the optimizer.
IloCplex.CplexStatus
status.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public IloCplex.CplexStatus getCplexSubStatus() throws IloException
IloCplex.CplexStatus
status of the last node problem solved. This method is often useful
when the preceding invocation of IloCplex.solve
terminates with an error when solving a MIP problem.
IloCplex.CplexStatus
status of the last node
that has been solved when solving a MIP.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public int getAlgorithm() throws IloException
IloException
public int getSubAlgorithm() throws IloException
IloException
public double getObjValue() throws IloException
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double getBestObjValue() throws IloException
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double getCutoff() throws IloException
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getValues(ilog.concert.IloLPMatrix matrix) throws IloCplex.UnknownObjectException, IloException
matrix
- The LP matrix for which to query the solution values.
This LP matrix must be in the active model.
x
is the array returned by this method,
x[j]
will be the solution value for the variable
corresponding to column j
of
matrix
.
IloCplex.UnknownObjectException
- matrix
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getValues(ilog.concert.IloLPMatrix matrix, int start, int num) throws IloCplex.UnknownObjectException, IloException
matrix
- The LP matrix for which to query the solution values.
This LP matrix must be in the active model.start
- The index of the first column whose solution value
is being queried.num
- The number of columns for which to query the
solution value.
x
is the array returned by this method,
x[j]
will be the solution value for the variable
corresponding to column j+start
of
matrix
.
IloCplex.UnknownObjectException
- matrix
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double getValue(ilog.concert.IloNumVar var) throws IloCplex.UnknownObjectException, IloException
var
- The variable whose value is being queried.
This variable must be in the active model.
var
.
IloCplex.UnknownObjectException
- var
is not in
the active model
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getValues(ilog.concert.IloNumVar[] var) throws IloCplex.UnknownObjectException, IloException
var
- An array of
variables whose solution values are being queried.
All variables must be in the active model.
var
.
If x
is the array returned by this method,
x[j]
will be the solution value for the variable
var[j]
.
IloCplex.UnknownObjectException
- One of the variables
specified in var
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getValues(ilog.concert.IloNumVar[] var, int start, int num) throws IloCplex.UnknownObjectException, IloException
var
- An array containing the variables whose solution values
are being queried. These variables must be in the
active model.start
- The index of the first variable in var
for
which to query the solution value.num
- The number of variables in var
for which
to query the solution value.
x
is the array returned by this method,
x[j]
will be the solution value for the
variable var[j+start]
.
IloCplex.UnknownObjectException
- One of the variables
specified in var
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getReducedCosts(ilog.concert.IloLPMatrix matrix) throws IloCplex.UnknownObjectException, IloException
matrix
- The LP matrix for which to query the reduced costs.
This LP matrix must be in the active model.
matrix
.
If dj
is the array returned by this method,
dj[j]
will be the reduced cost value for
the variable corresponding to column j
of
matrix
.
IloCplex.UnknownObjectException
- The LP matrix matrix
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getReducedCosts(ilog.concert.IloLPMatrix matrix, int start, int num) throws IloCplex.UnknownObjectException, IloException
matrix
- The LP matrix for which to query the reduced costs.
This LP matrix must be in the active model.start
- The index of the first column in matrix
for which to query the reduced cost.num
- The number of columns for which to query the
reduced cost.
dj
is the array returned by this method,
dj[j]
will be the reduced cost
for the variable corresponding to column j+start
of matrix
.
IloCplex.UnknownObjectException
- The LP matrix matrix
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double getReducedCost(ilog.concert.IloNumVar ivar) throws IloCplex.UnknownObjectException, IloException
var
.
IloCplex.UnknownObjectException
- The variable var
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getReducedCosts(ilog.concert.IloNumVar[] var) throws IloCplex.UnknownObjectException, IloException
var
- The array of variables whose reduced costs are being queried.
These variables must be in the active model.
var
. If dj
is the array returned
by this method, dj[j]
will be the reduced cost
for variable var[j]
.
IloCplex.UnknownObjectException
- One of the variables specified
in var
is not in the
active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getReducedCosts(ilog.concert.IloNumVar[] var, int start, int num) throws IloCplex.UnknownObjectException, IloException
var
- An array of variables whose reduced costs
are being queried. These variables must be in the
active model.start
- The index of the first variable in var
for
which to query the reduced cost.num
- The number of variables in var
for which to
query the reduced cost.
dj
is the array returned by this method,
dj[j]
will be the reduced cost for variable
var[j+start]
.
IloCplex.UnknownObjectException
- One of the specified variables
in var
is not in the
active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getDuals(ilog.concert.IloLPMatrix matrix) throws IloCplex.UnknownObjectException, IloException
matrix
- The LP matrix for the rows of which to query the dual
solution values. This LP matrix must be in the active
model.
pi
is the array returned by this method,
pi[i]
will be the dual solution value for the
constraint corresponding to row i
of
matrix
.
IloCplex.UnknownObjectException
- The LP matrix matrix
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getDuals(ilog.concert.IloLPMatrix matrix, int start, int num) throws IloCplex.UnknownObjectException, IloException
matrix
- The LP matrix of the constraints for which the dual
solution values are being queried. This LP matrix must
be in the active model.start
- The index of the first row whose
dual solution value is being queried.num
- The number of rows for which to query the
dual solution value.
pi
is the array returned by this method,
pi[i]
will be the dual solution value for the
constraint corresponding to row i+start
of the
IloLPMatrix
matrix.
IloCplex.UnknownObjectException
- The LP matrix matrix
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double getDual(ilog.concert.IloRange rng) throws IloCplex.UnknownObjectException, IloException
rng
- The range constraint whose dual solution value is being
queried. This range constraint must be in the active model,
either directly or through an IloLPMatrix
object.
IloCplex.UnknownObjectException
- The range constraint
rng
is not in the
active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getDuals(ilog.concert.IloRange[] rng) throws IloCplex.UnknownObjectException, IloException
rng
- The array of constraints whose dual solution values are being
queried. These constraints must be in the active model, either
directly or through an IloLPMatrix
object.
rng
. If pi
is the
array returned by this method, pi[i]
will be the
dual solution value for constraint rng[i]
.
IloCplex.UnknownObjectException
- A constraint in rng
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getDuals(ilog.concert.IloRange[] rng, int start, int num) throws IloCplex.UnknownObjectException, IloException
rng
- An array containing the constraints whose dual solution
values are being queried. These constraints
must be in the active model, either directly or
through an IloLPMatrix
object.start
- The index of the first constraint in rng
for
which to query the dual solution value.num
- The number of constraints in rng
for which to
query the dual solution value.
pi
is the array
returned by this method, pi[i]
will be the
dual solution value for the range constraint
rng[i+start]
.
IloCplex.UnknownObjectException
- One of the specified constraints
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getSlacks(ilog.concert.IloLPMatrix matrix) throws IloCplex.UnknownObjectException, IloException
matrix
- The LP matrix for the constraints of which to query the
slack values. This LP matrix must be in active model.
s
is the array returned by this method,
s[i]
will be the slack value for the range
constraint corresponding to row i
of
matrix
.
IloCplex.UnknownObjectException
- matrix
is not in
the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getSlacks(ilog.concert.IloLPMatrix matrix, int start, int num) throws IloCplex.UnknownObjectException, IloException
matrix
- The LP matrix for rows which to query slack values.
This LP matrix must be in the active model.start
- The index of the first row whose slack value
is being queried.num
- The number of rows for which to query the slack value.
s
is the array returned by this method,
s[i]
will be the slack value for the
constraint corresponding to row i+start
of
matrix
.
IloCplex.UnknownObjectException
- matrix
is not in
the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double getSlack(ilog.concert.IloRange rng) throws IloCplex.UnknownObjectException, IloException
rng
- The range constraint whose slack value is being queried.
This range constraint must be in the active
model, either directly or through
an IloLPMatrix
object.
IloCplex.UnknownObjectException
- rng
is not in
the active model
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getSlacks(ilog.concert.IloRange[] rng) throws IloCplex.UnknownObjectException, IloException
rng
- An array of constraints whose slack values
are being queried. These range constraints must be in the
active model, either directly or through
an IloLPMatrix
object.
rng
. If s
is the array returned
by this method, s[i]
will be the slack value for
the range constraint rng[i]
.
IloCplex.UnknownObjectException
- A constraint in rng
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getSlacks(ilog.concert.IloRange[] rng, int start, int num) throws IloCplex.UnknownObjectException, IloException
rng
- An array containing the constraints whose slack values
are being queried. These constraints
must be in the active model, either
directly or through an IloLPMatrix
object.start
- The index of the first constraint in rng
whose slack values are being queried.num
- The number of constraints in rng
for
which to query the slack values.
s
is the array returned by this
method, s[i]
will be the slack value for the
range constraint rng[i+start]
.
IloCplex.UnknownObjectException
- One of the specified constraints
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double getValue(ilog.concert.IloNumExpr expr) throws IloException
expr
takes for the current solution.
expr
- The expression for which to evaluate the current solution.
expr
takes for the current solution.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getAX(ilog.concert.IloLPMatrix matrix) throws IloCplex.UnknownObjectException, IloException
matrix
- The LP matrix for which to query the row activity values.
This LP matrix must be in the active model.
matrix
. If ax
is the array
returned by this method, ax[i]
will be the
row activity value for the constraint corresponding to row
i
of matrix
.
IloCplex.UnknownObjectException
- matrix
is unknown in
IloCplex
.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getAX(ilog.concert.IloLPMatrix matrix, int start, int num) throws IloCplex.UnknownObjectException, IloException
matrix
- The LP matrix for which to query the row activity
values. This LP matrix must be in the active model.start
- The index of the first row for which to query the
row activity values.num
- The number of rows for which to query the
row activity values.
ax
is the
array returned by this method, ax[i]
will be the
row activity value for the constraint corresponding to row
i+start
of the IloLPMatrix
matrix.
IloCplex.UnknownObjectException
- matrix
is unknown in
IloCplex
.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double getAX(ilog.concert.IloRange rng) throws IloCplex.UnknownObjectException, IloException
rng
- The range constraint whose row activity value is
being queried. This range constraint must be in the
active model, either directly or through an
IloLPMatrix
object.
rng
.
IloCplex.UnknownObjectException
- rng
is not in
the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getAX(ilog.concert.IloRange[] rng) throws IloCplex.UnknownObjectException, IloException
rng
- An array of range constraints whose row activity values
are being queried. These range constraints must all be in
the active model, either directly or through an
IloLPMatrix
object.
rng
. If ax
is the array returned by
this method, ax[i]
will be the row activity value
for the range constraint rng[i]
.
IloCplex.UnknownObjectException
- A constraint in rng
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double[] getAX(ilog.concert.IloRange[] rng, int start, int num) throws IloCplex.UnknownObjectException, IloException
rng
- An array containing the range constraints whose row
activity values are being queried. These range constraints
must be in the active model, either directly or through an
IloLPMatrix
object.start
- The index of the first range constraint in rng
for which to query the row activity value.num
- The number of range constraints in rng
for
which to query the row activity value.
ax
is the array returned by this method,
ax[i]
will be the row activity value for the
constraint rng[i+start]
.
IloCplex.UnknownObjectException
- One of the specified constraints
is not in the active model.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public IloCplex.BasisStatus getBasisStatus(ilog.concert.IloNumVar var) throws IloException
var
. This function
succeeds only if a basic solution is available in the invoking
IloCplex
optimizer.
var
- The variable whose basis status is being queried.
var
.
IloException
public IloCplex.BasisStatus[] getBasisStatuses(ilog.concert.IloNumVar[] var) throws IloException
var
.
This function succeeds only if a basic solution is available in the
invoking IloCplex
optimizer.
var
- The array of variables whose basis statuses are being queried.
var
. If
b
is the returned array, b[j]
will be the basis status for variable var[j]
.
IloException
public IloCplex.BasisStatus[] getBasisStatuses(ilog.concert.IloNumVar[] var, int start, int num) throws IloException
var
.
This function succeeds only if a basic solution is available in the
invoking IloCplex
optimizer.
var
- An array containing the variables whose basis statuses
are being queried.start
- The index of the first variable in array var
for which to return basis statuses.num
- The number of variables in array var
for
which to return basis statuses.
var
. If b
is the returned array,
b[j]
will be the basis status for variable
var[j+start]
.
IloException
public IloCplex.BasisStatus getBasisStatus(ilog.concert.IloConstraint con) throws IloException
con
.
This function succeeds only if a basic solution is available
in the invoking IloCplex
optimizer.
con
- The constraint whose basis status is being queried.
rng
.
IloException
public IloCplex.BasisStatus[] getBasisStatuses(ilog.concert.IloConstraint[] con) throws IloException
con
.
This function succeeds only if a basic solution is available in the
invoking IloCplex
optimizer.
con
- The array of constraints whose basis statuses are being
queried.
con
. If b
is the returned
array, b[i]
will be the basis status for
constraints con[i]
.
IloException
public IloCplex.BasisStatus[] getBasisStatuses(ilog.concert.IloConstraint[] con, int start, int num) throws IloException
IloCplex
optimizer.
con
- An array containing the constraints whose basis statuses
are being queried.start
- The index of the first constraint in array con
for which to return the basis status.num
- The number of constraints in array con
for
which to return the basis status.
con
. If b
is the returned array,
b[i]
will be the basis status for constraint
con[i+start]
.
IloException
public void setBasisStatuses(ilog.concert.IloNumVar[] var, IloCplex.BasisStatus[] cstat, ilog.concert.IloRange[] con, IloCplex.BasisStatus[] rstat) throws IloException
var
- An array of variables whose basis statuses are being set.cstat
- An array of basis statuses for variables in
var
. The basis status for variable
var[j]
will be set to cstat[j]
.con
- An array of constraints whose basis statuses are being set.rstat
- An array of basis statuses for the ranges in
con
. The basis status for constraint
con[i]
will be set to rstat[i]
.
IloException
public void setBasisStatuses(ilog.concert.IloNumVar[] var, IloCplex.BasisStatus[] cstat, int cstart, int cnum, ilog.concert.IloConstraint[] con, IloCplex.BasisStatus[] rstat, int rstart, int rnum) throws IloException
var
- An array of variables whose
basis statuses are being set.cstat
- An array containing the basis statuses for the
variables specified in var
.cstart
- The first element in var
and
cstat
to consider.cnum
- The number of variables in var
for which to
set the basis status.con
- An array of constraints whose
basis statuses are being set.rstat
- An array containing the basis statuses for the ranges
specified in con
.rstart
- The first element in con
and
rstat
to consider.rnum
- The number of constraints in con
for which
to set the basis status.
IloException
public void setVectors(double[] x, double[] dj, ilog.concert.IloNumVar[] var, double[] slack, double[] pi, ilog.concert.IloRange[] rng) throws IloException
solve
.
Starting point information is exploited at the next call of method
solve
. In particular, if the active model
is an LP or QP, and parameter IloCplex.IntParam.RootAlg
is
IloCplex.Algorithm.Primal
or
IloCplex.Algorithm.Dual
, the starting point information
provided with this method is used to construct a starting basis for
the Simplex method.
If the active model is a MIP, only primal starting point values for the
variables are used. A value must be specified for every variables of type
IloNumVarType.Int
or IloNumVarType.Boolean
. If
the provided values are compatible with an integer feasible solution, that
solution becomes the incumbent for the next search; otherwise the
starting information is ignored. Parameter
IloCplex.BooleanParam.MIPStart
must be turned on (set
to true
) for the starting point information to be used when
solving a MIP.
The starting point information is provided in the parameters of this
method. null
can be passed for any of
the parameters. 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
.
For all variables given in var
, x[j]
specifies
the starting primal value for variable var[j]
. Similarly,
dj[j]
specifies the starting reduced cost for variable
var[j]
. For all ranges specified in rng
,
slack[i]
specifies the starting slack value for
rng[i]
. Similarly, pi[i]
specifies the starting
dual value for rng[i]
.
x
- The array of starting primal values for var
.dj
- The array of starting reduced costs for var
.var
- The array of variables for which to set starting point
information.slack
- The array of starting slack values for rng
.pi
- The array of starting dual values for rng
.rng
- The array of constraints for which to set starting point
information.
IloException
public void setVectors(double[] x, double[] dj, ilog.concert.IloNumVar[] var, int vstart, int vnum, double[] slack, double[] pi, ilog.concert.IloRange[] rng, int rstart, int rnum) throws IloException
solve
.
Starting point information is exploited at the next call of method
solve
. In particular, if the active model
is an LP or QP, and parameter IloCplex.IntParam.RootAlg
is
IloCplex.Algorithm.Primal
or
IloCplex.Algorithm.Dual
, the starting point information
provided with this method is used to construct a starting basis for
the Simplex method.
If the active model is a MIP, only primal starting point values for the
variables are used. A value must be specified for every variables of type
IloNumVarType.Int
or IloNumVarType.Boolean
. If
the provided values are compatible with an integer feasible solution, that
solution becomes the incumbent for the next search; otherwise the
starting information is ignored. Parameter
IloCplex.BooleanParam.MIPStart
must be turned on (set
to true
) for the starting point information to be used when
solving a MIP.
The starting point information is provided in the parameters of this
method. null
can be passed for any of the array parameters.
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]
.
x
- An array of starting values for the variables
specified in var
.dj
- An array of starting reduced costs for the variables
specified in var
.var
- An array containing the variables for which to set starting
point information.vstart
- The index of the first element in the arrays
x
, dj
, or var
to be used.vnum
- The number of variables in the array var
for
which starting point information is to be set.slack
- An array of starting slack values for rng
.pi
- An array of starting dual values for rng
.rng
- An array containing the constraints for which to set
starting point information.rstart
- The index of the first element in slack
,
pi
, or rng
to be used.rnum
- The number of constraints in array rng
for
which starting point information is to be set.
IloException
public boolean feasOpt(ilog.concert.IloRange[] rngs, double[] rnglb, double[] rngub, ilog.concert.IloNumVar[] vars, double[] varlb, double[] varub, boolean optimize) throws IloException
For each bound, the user may specify a preference value indicating how much a relaxation of that bound is acceptable. A negative or zero (0) value indicates that the corresponding bound must not be relaxed. Typically, values ≥ 1 should be used.
If enough bounds were allowed to be relaxed, the method returns with suggested relaxed bounds that would make the active model feasible. These bounds are chosen in such a way that the relaxation is minimal in the sense that the sum of relaxation/preference over all variables and constraints is minimized. A solution vector for the model relaxed in this way will be available.
When the optimize
parameter is set to true
,
this method also tries finds the optimal solution of the minimally
relaxed model.
rngs
- An array of ranged constraints for the bounds of which
relaxation preference values can be specified in arrays
rnglb
and rngub
. This array
may be null
, in which case all bounds of
ranged constraint must not be relaxed.rnglb
- An array of doubles indicating the preference values
for relaxing the lower bound of the ranged constraints
specified in parameter rngs
. Element
rnglb[i]
specifies the preference value
for relaxing the lower bound of constraint
rngs[i]
. When the method returns after
successfully finding a relaxation, the relaxed bound
values are returned in this array. This array may be
null
, in which case all lower bounds of
constraints must not be relaxed.rngub
- An array of doubles indicating the preference values
for relaxing the upper bound of the ranged constraints
specified in parameter rngs
. Element
rngub[i]
specifies the preference value
for relaxing the upper bound of constraint
rngs[i]
. When the method returns after
successfully finding a relaxation, the relaxed bound
values are returned in this array. This array may be
null
, in which case all upper bounds of
constraints must not be relaxed.vars
- An array of modeling variables for the bounds of which
relaxation preference values can be specified in arrays
varlb
and varub
. This array
may be null
, in which case all bounds of
modeling variables must not be relaxed.varlb
- An array of doubles indicating the preference values
for relaxing the lower bound of the modeling variables
specified in parameter vars
. Element
varlb[i]
specifies the preference value
for relaxing the lower bound of variable
vars[i]
. When the method returns after
successfully finding a relaxation, the relaxed bound
values are returned in this array. This array may be
null
, in which case all lower bounds of
variables must not be relaxed.varub
- An array of doubles indicating the preference values
for relaxing the upper bound of the modeling variables
specified in parameter vars
. Element
varub[i]
specifies the preference value
for relaxing the upper bound of variable
vars[i]
. When the method returns after
successfully finding a relaxation, the relaxed bound
values are returned in this array. This array may be
null
, in which case all upper bounds of
variables must not be relaxed.optimize
- A Boolean value, indicating whether or not the method
feasOpt
should attempt to find the
optimal solution of a minimally relaxed model.
IloException
public boolean feasOpt(ilog.concert.IloNumVar[] vars, double[] varlb, double[] varub, boolean optimize) throws IloException
For each bound, the user may specify a preference value indicating how much a relaxation of that bound is acceptable. A negative or zero (0) value indicates that the corresponding bound must not be relaxed. Typically, values ≥ 1 should be used.
If enough bounds were allowed to be relaxed, the method returns with suggested relaxed bounds that would make the active model feasible. These bounds are chosen in such a way that the relaxation is minimal in the sense that the sum of relaxation/preference over all variables is minimized. A solution vector for the model relaxed in this way will be available.
When the optimize
parameter is set to true
,
this method also tries finds the optimal solution of the minimally
relaxed model.
vars
- An array of modeling variables for the bounds of which
relaxation preference values can be specified in arrays
varlb
and varub
. This array
may be null
, in which case all bounds of
modeling variables must not be relaxed.varlb
- An array of doubles indicating the preference values
for relaxing the lower bound of the modeling variables
specified in parameter vars
. Element
varlb[i]
specifies the preference value
for relaxing the lower bound of variable
vars[i]
. When the method returns after
successfully finding a relaxation, the relaxed bound
values are returned in this array. This array may be
null
, in which case all lower bounds of
variables must not be relaxed.varub
- An array of doubles indicating the preference values
for relaxing the upper bound of the modeling variables
specified in parameter vars
. Element
varub[i]
specifies the preference value
for relaxing the upper bound of variable
vars[i]
. When the method returns after
successfully finding a relaxation, the relaxed bound
values are returned in this array. This array may be
null
, in which case all upper bounds of
variables must not be relaxed.optimize
- A Boolean value, indicating whether or not the method
feasOpt
should attempt to find the
optimal solution of a minimally relaxed model.
IloException
public boolean feasOpt(ilog.concert.IloRange[] rngs, double[] rnglb, double[] rngub, boolean optimize) throws IloException
For each bound, the user may specify a preference value indicating how much a relaxation of that bound is acceptable. A negative or zero (0) value indicates that the corresponding bound must not be relaxed. Typically, values ≥ 1 should be used.
If enough bounds were allowed to be relaxed, the method returns with suggested relaxed bounds that would make the active model feasible. These bounds are chosen in such a way that the relaxation is minimal in the sense that the sum of relaxation/preference over all variables is minimized. A solution vector for the model relaxed in this way will be available.
When the optimize
parameter is set to true
,
this method also tries finds the optimal solution of the minimally
relaxed model.
rngs
- An array of ranged constraints for the bounds of which
relaxation preference values can be specified in arrays
rnglb
and rngub
. This array
may be null
, in which case all bounds of
ranged constraint must not be relaxed.rnglb
- An array of doubles indicating the preference values
for relaxing the lower bound of the ranged constraints
specified in parameter rngs
. Element
rnglb[i]
specifies the preference value
for relaxing the lower bound of constraint
rngs[i]
. When the method returns after
successfully finding a relaxation, the relaxed bound
values are returned in this array. This array may be
null
, in which case all lower bounds of
constraints must not be relaxed.rngub
- An array of doubles indicating the preference values
for relaxing the upper bound of the ranged constraints
specified in parameter rngs
. Element
rngub[i]
specifies the preference value
for relaxing the upper bound of constraint
rngs[i]
. When the method returns after
successfully finding a relaxation, the relaxed bound
values are returned in this array. This array may be
null
, in which case all upper bounds of
constraints must not be relaxed.optimize
- A Boolean value, indicating whether or not the method
feasOpt
should attempt to find the
optimal solution of a minimally relaxed model.
IloException
public IloCplex.IIS getIIS() throws IloException
IloException
public void getBoundSA(double[] lblower, double[] lbupper, double[] ublower, double[] ubupper, ilog.concert.IloLPMatrix matrix) throws IloException
lblower
- lblower[j]
will contain the lowest value
that the lower bound of the variable corresponding to
column j
of matrix
can be set to without affecting the optimality of the
basis. If this information is not required,
null
may be passed. Otherwise, the length
of the array must be at least the number of columns in
the matrix.lbupper
- lbupper[j]
will contain the highest value
that the lower bound of the variable corresponding to
column j
of matrix
can be set
to without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the length of the array must
be at least the number of columns in the matrix.ublower
- ublower[j]
will contain the lowest value
that the upper bound of the variable corresponding to
column j
of matrix
can be set
to without affecting the optimality of the basis. If
this information is not required null
may
be passed. Otherwise, the length of the array must be
at least the number of columns in the matrix.ubupper
- ubupper[j]
will contain the highest value
that the upper bound of the variable corresponding to
column j
of matrix
can be set
to without affecting the optimality of the basis. If
this information is not required null
may
be passed. Otherwise, the length of the array must be
at least the number of columns in the matrix.matrix
- The LP matrix for the columns for which the bound
sensitivity analysis information is to be computed.
IloException
public void getBoundSA(double[] lblower, double[] lbupper, double[] ublower, double[] ubupper, ilog.concert.IloLPMatrix matrix, int start, int num) throws IloException
lblower
- lblower[j]
will contain the lowest
value that the lower bound of the variable corresponding
to column j+start
of matrix
can be set to without affecting the optimality of the
basis. If this information is not required,
null
may be passed. Otherwise, the length
of the array must be at least num
.lbupper
- lbupper[j]
will contain the highest
value that the lower bound of the variable corresponding
to column j+start
of matrix
can
be set to without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the length of the array must
be at least num
.ublower
- ublower[j]
will contain the lowest
value that the upper bound of the variable corresponding
to column j+start
of matrix
can
be set to without affecting the optimality of the basis.
If this information is not required null
may
be passed. Otherwise, the length of the array must be
at least num
.ubupper
- ubupper[j]
will contain the highest
value that the upper bound of the variable corresponding
to column j+start
of matrix
can
be set to without affecting the optimality of the basis.
If this information is not required null
may
be passed. Otherwise, the length of the array must be
at least num
.matrix
- The LP matrix for the columns for which the bound
sensitivity analysis information is to be computed.start
- The index of the first column of the matrix for which
bound sensitivity analysis information is returned.num
- The number of columns in matrix for which to return
bound sensitivity analysis information.
IloException
public void getBoundSA(double[] lblower, double[] lbupper, double[] ublower, double[] ubupper, ilog.concert.IloNumVar[] var) throws IloException
lblower
- lblower[j]
will contain the lowest value
the lower bound of variable var[j]
can
be set to without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
the same length as var
.lbupper
- lbupper[j]
will contain the highest value
the lower bound of variable var[j]
can be
set to without affecting the optimality of the basis. If
this information is not required null
may
be passed. Otherwise, the array must have at least the
same length as var
.ublower
- ublower[j]
will contain the lowest value
the upper bound of variable var[j]
can
be set to without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
the same length as var
.ubupper
- ubupper[j]
will contain the highest value
the upper bound of variable var[j]
can
be set to without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
the same length as var
.var
- An array containing the variables for which to return
bound sensitivity analysis information.
IloException
public void getBoundSA(double[] lblower, double[] lbupper, double[] ublower, double[] ubupper, ilog.concert.IloNumVar[] var, int start, int num) throws IloException
lblower
- lblower[j]
will contain the lowest value
the lower bound of variable var[j+start]
can
be set to without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length num
.lbupper
- lbupper[j]
will contain the highest value
the lower bound of variable var[j+start]
can
be set to without affecting the optimality of the basis.
If this information is not required null
may
be passed. Otherwise, the array must have at least
length num
.ublower
- ublower[j]
will contain the lowest value
the upper bound of variable var[j+start]
can
be set to without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length num
.ubupper
- ubupper[j]
will contain the highest value
the upper bound of variable var[j+start]
can
be set to without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length num
.var
- An array containing the variables for which to return
bound sensitivity analysis information.start
- The index of first variable in var
for
which to return bound sensitivity analysis information.num
- The number of variables in var
for which
to return bound sensitivity analysis information.
IloException
public void getObjSA(double[] lower, double[] upper, ilog.concert.IloLPMatrix matrix) throws IloException
lower
- lower[j]
is the lowest value to which the
objective coefficient for the variable corresponding to
column j
of matrix
can be set
without affecting the optimality of the basis. If this
information is not required null
may be
passed. Otherwise, the array must have a length at least
equal to the number of columns in the
matrix
.upper
- upper[j]
is the highest value to which the
objective coefficient of the variable corresponding to
of column j
of matrix
that
can be set without affecting the optimality of the
basis. If this information is not required,
null
may be passed. Otherwise, the array
must have a length at least equal to the number of
columns in the matrix
.matrix
- The LP matrix which contains the column for which
objective sensitivity analysis information will be
returned.
IloException
public void getObjSA(double[] lower, double[] upper, ilog.concert.IloLPMatrix matrix, int start, int num) throws IloException
lower
- lower[j]
will contain the lowest value to
which the objective coefficient of the variable
corresponding to column j+start
of
matrix
that can be set, without affecting
the optimality of the basis. If this information is not
required, null
may be passed. Otherwise, the
array must have at least length num
.upper
- upper[j]
will contain the highest value to
which the objective coefficient of the variable
corresponding to column j+start
of
matrix
that can be set, without affecting
the optimality of the basis. If this information is not
required, null
may be passed. Otherwise,
the array must have at least length num
.matrix
- The LP matrix which contains the column for which
objective sensitivity analysis information is to be
returned.start
- The index of the first column of matrix
for
which to return objective sensitivity analysis
information.num
- The number of columns of matrix
for which
to return objective sensitivity analysis information.
IloException
public void getObjSA(double[] lower, double[] upper, ilog.concert.IloNumVar[] var) throws IloException
lower
- lower[j]
will contain the lowest value to
which the objective coefficient of the variable
var[j]
can be set without affecting the
optimality of the basis. If this information is not
required, null
may be passed. Otherwise, the
array must have a length at least equal to the length
of the array var
.upper
- upper[j]
will contain the highest value to
which the objective coefficient of the variable
var[j]
can be set without affecting the
optimality of the basis. If this information is not
required, null
may be passed. Otherwise,
the array must have a length at least equal to the length
of the array var
.var
- An array containing the variables for which objective
sensitivity analysis information will be returned.
IloException
public void getObjSA(double[] lower, double[] upper, ilog.concert.IloNumVar[] var, int start, int num) throws IloException
lower
- lower[j]
will contain the lowest value to
which the objective coefficient of the variable
var[j+start]
can be set without affecting
the optimality of the basis. If this information is not
required, null
may be passed. Otherwise,
the array must have at least length num
.upper
- uppper[j]
will contain the highest value to
which the objective coefficient of the variable
var[j+start]
can be set without affecting
the optimality of the basis. If this information is not
required, null
may be passed. Otherwise,
the array must have at least length num
.var
- An array containing the variables for which objective
sensitivity analysis information will be returned.start
- The index of first variable in var
for
which objective sensitivity analysis information will
be returned.num
- The number of variables in var
for which
objective sensitivity analysis information will be
returned.
IloException
public void getRangeSA(double[] lblower, double[] lbupper, double[] ublower, double[] ubupper, ilog.concert.IloRange[] rng) throws IloException
lblower
- lblower[i]
will contain the lowest value to
which the lower bound of range rng[i]
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
the same length as rng
.lbupper
- lbupper[i]
will contain the highest value to
which the lower bound of range rng[i]
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
the same length as rng
.ublower
- ublower[i]
will contain the lowest value to
which the upper bound of range rng[i]
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
the same length as rng
.ubupper
- ubupper[i]
will contain the highest value to
which the upper bound of range rng[i]
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
the same length as rng
.rng
- An array containing the constraints for which the
sensitivity information is requested.
IloException
public void getRangeSA(double[] lblower, double[] lbupper, double[] ublower, double[] ubupper, ilog.concert.IloRange[] rng, int start, int num) throws IloException
lblower
- lblower[i]
will contain the lowest value to
which the lower bound of range
rng[i+start]
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length num
.lbupper
- lbupper[i]
will contain the highest value to
which the lower bound of range
rng[i+start]
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length num
.ublower
- ublower[i]
will contain the lowest value to
which the upper bound of range
rng[i+start]
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length num
.ubupper
- ubupper[i]
will contain the highest value to
which the upper bound of range
rng[i+start]
can
be set to without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length num
.rng
- An array containing the constraints for which the
sensitivity information is requested.start
- The index of the first constraints in rng
for which the sensitivity information is requested.num
- The number of constraints in rng
for which
the sensitivity information is requested.
IloException
public void getRangeSA(double[] lblower, double[] lbupper, double[] ublower, double[] ubupper, ilog.concert.IloLPMatrix matrix, int start, int num) throws IloException
num
rows of the LP matrix
matrix
starting with row start
.
lblower
- lblower[i]
will contain the lowest value to
which the lower bound of the constraint corresponding
to row i+start
of matrix
can be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length num
.lbupper
- lbupper[i]
will contain the highest value to
which the lower bound of the constraint corresponding
to row i+start
of matrix
can be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length num
.ublower
- ublower[i]
will contain the lowest value to
which the upper bound of the constraint corresponding
to row i+start
of matrix
can be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length num
.ubupper
- ubupper[i]
will contain the highest value to
which the upper bound of the constraint corresponding
to row i+start
of matrix
can be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length num
.matrix
- The LP matrix for rows of which sensitivity analysis
information is to be computed.start
- The first row of matrix
for which
sensitivity analysis information is to be computed.num
- The number of rows of matrix
for which
sensitivity analysis information is to be computed.
IloException
public void getRangeSA(double[] lblower, double[] lbupper, double[] ublower, double[] ubupper, ilog.concert.IloLPMatrix matrix) throws IloException
matrix
.
lblower
- lblower[i]
will contain the lowest value to
which the lower bound of the constraint corresponding
to row i
of matrix
can be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the length of the array must
be at least equal to the number of rows in
matrix
.lbupper
- lbupper[i]
will contain the highest value to
which the lower bound of the constraint corresponding
to row i
of matrix
can be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the length of the array must
be at least equal to the number of rows in
matrix
.ublower
- ublower[i]
will contain the lowest value to
which the upper bound of the constraint corresponding
to row i
of matrix
can be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the length of the array must
be at least equal to the number of rows in
matrix
.ubupper
- ubupper[i]
will contain the highest value to
which the upper bound of the constraint corresponding
to row i
of matrix
can be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length equal to the number of rows in
matrix
.matrix
- The LP matrix for rows of which sensitivity analysis
information is to be computed.
IloException
public void getRHSSA(double[] lower, double[] upper, ilog.concert.IloRange[] rng) throws IloException
getRangeSA
, since both bounds are moved independently.
lower
- lower[i]
will contain the lowest value to
which the lower bound of range rng[i]
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
the same length as rng
.upper
- upper[i]
will contain the highest value to
which the lower bound of range rng[i]
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed.
Otherwise, the array must have at least the same length
as rng
.rng
- An array containing the constraints for which the
sensitivity analysis is requested.
IloException
public void getRHSSA(double[] lower, double[] upper, ilog.concert.IloRange[] rng, int start, int num) throws IloException
getRangeSA
, since both bounds are moved independently.
lower
- lower[i]
will contain the lowest value to
which the lower bound of rng[i+start]
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
num
.upper
- upper[i]
will contain the highest value to
which the lower bound of rng[i+start]
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length num
.rng
- An array containing the constraints for which the
sensitivity analysis is requested.start
- The first element in rng
for which the
sensitivity analysis is requestednum
- The number of elements in rng
for which
the sensitivity analysis is requested
IloException
public void getRHSSA(double[] lower, double[] upper, ilog.concert.IloLPMatrix matrix) throws IloException
getRangeSA
, since both bounds are moved independently.
lower
- lower[i]
will contain the lowest value to
which the lower bound of the constraint corresponding
to row i
of matrix
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
a length equal to the number of rows in
matrix
.upper
- upper[i]
will contain the highest value to
which the lower bound of the constraint corresponding
to row i
of matrix
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed.
a length equal to the number of rows in
matrix
.matrix
- The matrix for the rows of which
the sensitivity analysis is requested.
IloException
public void getRHSSA(double[] lower, double[] upper, ilog.concert.IloLPMatrix matrix, int start, int num) throws IloException
getRangeSA
, since both bounds are moved independently.
lower
- lower[i]
will contain the lowest value to
which the lower bound of the constraint corresponding
to row i+start
of matrix
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length num
.upper
- upper[i]
will contain the highest value to
which the lower bound of the constraint corresponding
to row i+start
of matrix
can
be set without affecting the optimality of the basis.
If this information is not required, null
may be passed. Otherwise, the array must have at least
length num
.matrix
- The matrix for the rows of which
the sensitivity analysis is requested.start
- The first row of matrix
for which the
sensitivity analysis is requested.num
- The number of rows of matrix
for which to
sensitivity analysis is requested.
IloException
public IloCplex.Quality getQuality(IloCplex.QualityType which) throws IloException
IloCplex.Quality
object that contains
the requested quality measure.
which
- The IloCplex.QualityType
which should be
computed.
IloCplex.Quality
object for the requested quality
measure.
IloException
IloCplex.Quality
,
IloCplex.QualityType
public java.io.PrintStream output()
IloCplex
object.
This stream is used by IloCplex
for printing logging
information. It can be set with the method setOut
.
IloCplex
object.IloCplex.setOut(java.io.OutputStream)
public java.io.PrintStream warning()
IloCplex
object. This stream is used by IloCplex
for printing
warnings. It can be set with the method setWarning
.
IloCplex
object.IloCplex.setWarning(java.io.OutputStream)
public void setOut(java.io.OutputStream s)
IloCplex
object. After this call, all logging output will be output via the new
stream. Passing null
as the new output stream will turn off
all logging output.
s
- The new default output stream.public void setWarning(java.io.OutputStream s)
IloCplex
object.
After this call, all warnings will be output via the new stream. Passing
null
as the new output stream will turn off all warnings.
s
- The new warnings output stream.public boolean solve() throws IloException
false
is returned, a feasible solution may still be present, but
IloCplex
has not been able to prove its feasibility.
IloException
public boolean solveFixed() throws IloException
false
is returned a feasible solution may still be present, but
IloCplex has not been able to prove its feasibility.
IloException
public int getNiterations()
public int getNphaseOneIterations()
public int getNbarrierIterations()
public int getNsiftingIterations()
public int getNsiftingPhaseOneIterations()
public int getNcrossDExch()
public int getNcrossDPush()
public int getNcrossPExch()
public int getNcrossPPush()
public int getNdualSuperbasics()
public int getNprimalSuperbasics()
public int getNcliques()
public int getNcovers()
public int getNnodes()
public int getNnodesLeft()
public int getIncumbentNode()
public void setPriority(ilog.concert.IloNumVar var, int pri) throws IloException
var
.
Branching priorities must be positive integers or 0
(zero) to reset
to the default priority. Variables with higher priorities are branched
on before variables with lower priorities when they become integer
infeasibile.
var
- The variable whose priority value is being set.pri
- The priority value to set for variable var
.
IloException
public void setPriorities(ilog.concert.IloNumVar[] var, int[] pri) throws IloException
0
(zero) to reset
to the default priority. Variables with higher priorities are branched
on before variables with lower priorities when they become integer
infeasibile.
var
- An array of variables whose priority values are being set.pri
- The array of priority values to use. The priority for
variable var[j]
will be set to
pri[j]
.
IloException
public void setPriorities(ilog.concert.IloNumVar[] var, int[] pri, int start, int num) throws IloException
0
(zero) to reset
to the default priority. Variables with higher priorities are branched
on before variables with lower priorities when they become integer
infeasibile.
var
- An array containing the variables whose priority
values are being set.pri
- An array containing the priority value to use. The
priority for variable var[j]
will be set to
pri[j]
, for
j = start, ..., start+num-1
.start
- The index of the first element in var
and
pri
to consider.num
- The number of elements in var
and
pri
to consider.
IloException
public void setDirection(ilog.concert.IloNumVar var, IloCplex.BranchDirection dir) throws IloException
var
- The variable whose branching direction is being set.dir
- The branching direction to set for variable
var
.
IloException
IloCplex.BranchDirection
public void setDirections(ilog.concert.IloNumVar[] var, IloCplex.BranchDirection[] brdir) throws IloException
var
- The array of variables whose branching directions are
being set.brdir
- The array of branching directions to use. The branching
direction of variable var[j]
will be set
to brdir[j]
.
IloException
IloCplex.BranchDirection
public void setDirections(ilog.concert.IloNumVar[] var, IloCplex.BranchDirection[] brdir, int start, int num) throws IloException
var
- An array containing the variables whose
branching directions are being set.brdir
- An array containing the branching directions to use.
The branching direction of variable
var[j]
will be set to brdir[j]
for
j = start, ..., start+num-1
.start
- The first elements in var
and
brdir
to consider.num
- The number of elements in var
and
brdir
to consider.
IloException
IloCplex.BranchDirection
public void delPriority(ilog.concert.IloNumVar var) throws IloException
var
.
var
- The variable whose branch priority assignment is being
removed.
IloException
public void delPriorities(ilog.concert.IloNumVar[] var) throws IloException
var
.
var
- The array of variables whose branch priority assignments
are being removed.
IloException
public void delPriorities(ilog.concert.IloNumVar[] var, int start, int num) throws IloException
num
variables in the array var
, starting with variable
var[start]
.
var
- An array containing the variables whose branch priority
assignments are to be removed.start
- The index of the first variable in var
from
which the priority order assignment is to be removed.num
- The number of variables in var
from which the
priority order assignments are to be removed.
IloException
public void delDirection(ilog.concert.IloNumVar var) throws IloException
var
.
var
- The variable whose branching direction
assignment is being removed.
IloException
public void delDirections(ilog.concert.IloNumVar[] var) throws IloException
var
.
var
- An array of variables whose branching direction
assignments are being removed.
IloException
public void delDirections(ilog.concert.IloNumVar[] var, int start, int num) throws IloException
num
variables in the array var
, starting with variable
var[start]
.
var
- And array containing the variables from which the branching
direction assignments are to be removed.start
- The index of the first variable in var
from
which the branching direction assignments are to be removed.num
- The number of variables in var
from which the
branching direction assignments are to be removed.
IloException
public int getPriority(ilog.concert.IloNumVar var) throws IloException
var
- The variable whose branch priority is being queried.
var
. A value of
0
indicates the IloCplex
default.
IloException
public int[] getPriorities(ilog.concert.IloNumVar[] var) throws IloException
var
- The array of variables whose branch priorities are being
queried.
var
.
If pri
is the array returned by this method,
pri[j]
is the branch priority of variable
var[j]
. A value of 0
indicates the IloCplex
default.
IloException
public int[] getPriorities(ilog.concert.IloNumVar[] var, int start, int num) throws IloException
var
- An array containing the variables whose branch priorities
are being queried.start
- The index of the first variable in var
for
which to query the branch priority.num
- The number of variables in var
for which to
query the branch priorities.
pri
is the array returned by this method,
pri[j]
is the branch priority of variable
var[j+start]
. A value of 0
indicates the IloCplex
default.
IloException
public IloCplex.BranchDirection getDirection(ilog.concert.IloNumVar var) throws IloException
var
.
If no branch direction has been assigned to the variable,
IloCplex.BranchDirection.Global
is returned.
var
- The variable whose branch direction is being queried.
var
.
IloException
public IloCplex.BranchDirection[] getDirections(ilog.concert.IloNumVar[] var) throws IloException
IloCplex.BranchDirection.Global
will be returned for it.
var
- An array of variables whose branch directions
are being queried.
var
.
If dir
is the array returned by this method,
dir[j]
is the branch direction of variable
var[j]
.
IloException
public IloCplex.BranchDirection[] getDirections(ilog.concert.IloNumVar[] var, int start, int num) throws IloException
IloCplex.BranchDirection.Global
will be returned for it.
var
- The array containing the variables whose
branch directions are being queried.start
- The index of the first variable in var
for
which to query the branch directions.num
- The number of variables in var
for which to
query the branch directions.
dir
is the array returned by this method,
dir[j]
is the branch direction of variable
var[j+start]
.
IloException
public void writeOrder(java.lang.String name) throws IloException
name
.
A priority order file contains the branching direction and branch
priority settings for the variables in the active model.
By convention, the file extension is .ord
.
The ORD file format is documented in the reference manual
ILOG CPLEX File Formats.
name
- The name of the file to which the priority order is written.
IloException
IloCplex.readOrder(java.lang.String)
public void writeParam(java.lang.String name) throws IloException
name
for all the
CPLEX parameters that are not currently
set at their default.
By convention, the file extension is .prm
.
The PRM file format is documented in the reference manual
ILOG CPLEX File Formats.
name
- The name of the file to write.
IloException
IloCplex.readParam(java.lang.String)
public void writeBasis(java.lang.String name) throws IloException
name
.
By convention, the file extension is .bas
.
The BAS file format is documented in the reference manual
ILOG CPLEX File Formats.
name
- The name of the file to write.
IloException
IloCplex.readBasis(java.lang.String)
public void writeVectors(java.lang.String name) throws IloException
name
.
A VEC file can later be read back into CPLEX with the method
readVectors
for crossover.
By convention, the file extension is .vec
.
The VEC file format is documented in the reference manual
ILOG CPLEX File Formats.
name
- The name of the file to write.
IloException
IloCplex.readVectors(java.lang.String)
public void writeTextSolution(java.lang.String name) throws IloException
name
.
name
- The name of the file to write.
IloException
public void writeMIPStart(java.lang.String name) throws IloException
name
.
By convention, the file extension is .mst
.
The MST file format is documented in the reference manual
ILOG CPLEX File Formats.
name
- The name of the file to write.
IloException
IloCplex.readMIPStart(java.lang.String)
public void writeTree(java.lang.String name) throws IloException
name
in TRE format.
By convention, the file extension is .tre
.
The TRE file format is documented in the reference manual
ILOG CPLEX File Formats.
name
- The name of the file to write.
IloException
IloCplex.readTree(java.lang.String)
public void readOrder(java.lang.String name) throws IloException
name
and copies the priority order information
into a CPLEX problem object. The parameter MipOrdInd
must be on (its default setting) for the priority order
to be used to start a subsequent optimization.
The names in the ORD file must match names in the active model.
By convention, the file extension is .ord
.
The ORD file format is documented in the reference manual
ILOG CPLEX File Formats.
name
- The name of the file to read.
IloException
IloCplex.writeOrder(java.lang.String)
public void readParam(java.lang.String name) throws IloException
name
and applies them to the invoking object.
All parameter settings that were previously active are overridden.
By convention, the file extension is .prm
.
The PRM file format is documented in the reference manual
ILOG CPLEX File Formats.
name
- The name of the file to read.
IloException
IloCplex.writeParam(java.lang.String)
public void readBasis(java.lang.String name) throws IloException
name
,
and copies that basis into the invoking object.
The parameter
AdvInd
must not be 0 (zero) for the basis to be used to start
a subsequent optimization.
By convention, the file extension is .bas
.
The BAS file format is documented in the reference manual
ILOG CPLEX File Formats.
name
- The name of the file to read.
IloException
IloCplex.writeBasis(java.lang.String)
public void readVectors(java.lang.String name) throws IloException
name
and copies this information into the invoking object.
This routine is typically used to initiate a crossover from the
barrier solution. The parameter AdvInd
must
not be 0 (zero) in order for the vector file to take effect for starting a
crossover.
By convention, the file extension is .vec
.
The VEC file format is documented in the reference manual
ILOG CPLEX File Formats.
name
- The name of the file to read.
IloException
IloCplex.writeVectors(java.lang.String)
public void readMIPStart(java.lang.String name) throws IloException
name
and
copies the MIP start information into the invoking object.
The parameter MIPSTART
must be on
in order for the MIP start information to be used to start
a subsequent optimization. The default value for the parameter is off.
By convention, the file extension is .mst
.
The MST file format is documented in the reference manual
ILOG CPLEX File Formats.
name
- The name of the file to read.
IloException
IloCplex.writeMIPStart(java.lang.String)
public void readTree(java.lang.String name) throws IloException
name
)
into the invoking object. The parameter AdvInd
must not be 0 (zero) in order for the tree to be used for starting a
subsequent optimization.
By convention, the file extension is .tre
.
The TRE file format is documented in the reference manual
ILOG CPLEX File Formats.
name
- The name of the file to read.
IloException
IloCplex.writeTree(java.lang.String)
public void use(IloCplex.Callback cb) throws IloException
Callbacks are objects with a user-written method main
that are called regularly during the optimization of the active
model. This object must be implemented as a class derived from a
subclass of IloCplex.Callback
class, and the abstract
method main
must be implemented for this class.
There are several places where the IloCplex
algorithms call
a callback. IloCplex
provides several different types of
callbacks, and each is implemented as a specific subclass of
IloCplex.Callback
.
IloCplex
can use only one callback of a given type at a
time. Thus, when calling method use
several times with
callbacks of the same type, only the callback passed at the last call of
method use
will be executed during the optimization.
However, callbacks of different types can be used simultaneously.
cb
- The callback to be used from now on. The type of the callback
object being passed determines which callback is being installed.
If a callback of the same type has previously been installed,
the new callback will replace the old one.
IloException
IloCplex.Callback
public void clearCallbacks() throws IloException
IloCplex
object.
IloException
public ilog.concert.IloLinearNumExpr getRay() throws IloException
Important:
Advanced methods typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other methods instead.
This method
returns a linear expression representing an unbounded direction for the
active model if it has been proven unbounded by one of the simplex
methods. If a*x + b*y
is the returned by this method, it
represents an unbounded direction vector with an x
coordinate of a
and y
coordinate of
b
.
IloException
public double dualFarkas(ilog.concert.IloConstraint[] rng, double[] y) throws IloException
Important:
Advanced methods typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other methods instead.
This method
returns a Farkas proof of infeasibility for the active LP model after
it has been proven to be infeasible by one of the simplex optimizers.
For every constraint i
of the active LP this method computes
a value y[i]
such that y'A >= y'b
, where
A
denotes the constraint matrix.
For more detailed information about the Farkas proof of infeasibility,
see the C function CPXdualfarkas
, documented
in the reference manual of the Callable Library.
rng
- Array of length getNrows
where constraints
corresponding to the values in y
are returned.y
- array of length getNrows
.
y'b - y'A z
for vector
z
defined such that z[j] = ub[j]
if
y'A[j] > 0
and z[j] = lb[j]
if
y'A[j] < 0
for all variables j
.
IloException
public void qpIndefCertificate(ilog.concert.IloNumVar[] var, double[] x) throws IloException
x'Q x < 0
in matrix terms) to prove the
indefiniteness.
var
- An array of length getNcols
where the variables
of the active model are returned.x
- An array of length getNcols
.
By setting var[j]
to x[j]
for all variables, the quadratic term of
the objective function evaluates to a negative value.
IloException
public void end()
IloCplex
license held by the invoking object,
and all the memory allocated by it.
When you no longer use an IloCplex
object
and any Concert model
created with it, you should call the method end
to
release the license. After a call of the method end
,
the invoking IloCplex
object and
all objects that have been created with it (such as variables and
constraints) may no longer be used. Attempting to use
them subsequently will cause the
exception IloCplex.CplexEndedException
to be thrown.
public static void registerLicense(java.lang.String ilm_CPLEX_license, int ilm_CPLEX_license_signature) throws IloException
registerLicense
method passes memory-based information
to the ILOG License Manager embedded inside the class
IloCplex
.
IloException
- if invalid information in the license
key passed into the routine.
IloException
public static void putenv(java.lang.String envstr) throws IloException
ILOG_LICENSE_FILE
environment variable
used by CPLEX.
This function sets the ILOG_LICENSE_FILE
environment variable to specify the path to the file containing the
ILOG license key. It must not be used to set any other environment
variable.
envstr
- String of the form ILOG_LICENSE_FILE=...
,
where ... is the setting of the environment
variable ILOG_LICENSE_FILE
.
IloException
- if the environment
variable could not be set.
IloException
public final IloCplex.Goal and(IloCplex.Goal goal1, IloCplex.Goal goal2)
and
goal.
This goal pushes the parameter goals onto the goal stack in
reverse order. When the goals are subsequently popped from the goal
stack, they will be executed in the order in which they were listed as
parameters.
goal1
- A goal to be pushed on the goal stack.goal2
- A goal to be pushed on the goal stack.
and
goal composed from the goals
passed as parameters.public final IloCplex.Goal and(IloCplex.Goal goal1, IloCplex.Goal goal2, IloCplex.Goal goal3)
and
goal.
This goal pushes the parameter goals onto the goal stack in
reverse order. When the goals are subsequently popped from the goal
stack, they will be executed in the order in which they were listed as
parameters.
goal1
- A goal to be pushed on the goal stack.goal2
- A goal to be pushed on the goal stack.goal3
- A goal to be pushed on the goal stack.
and
goal composed from the goals
passed as parameters.public final IloCplex.Goal and(IloCplex.Goal goal1, IloCplex.Goal goal2, IloCplex.Goal goal3, IloCplex.Goal goal4)
and
goal.
This goal pushes the parameter goals onto the goal stack in
reverse order. When the goals are subsequently popped from the goal
stack, they will be executed in the order in which they were listed as
parameters.
goal1
- A goal to be pushed on the goal stack.goal2
- A goal to be pushed on the goal stack.goal3
- A goal to be pushed on the goal stack.goal4
- A goal to be pushed on the goal stack.
and
goal composed from the goals
passed as parameters.public final IloCplex.Goal and(IloCplex.Goal goal1, IloCplex.Goal goal2, IloCplex.Goal goal3, IloCplex.Goal goal4, IloCplex.Goal goal5)
and
goal.
This goal pushes the parameter goals onto the goal stack in
reverse order. When the goals are subsequently popped from the goal
stack, they will be executed in the order in which they were listed as
parameters.
goal1
- A goal to be pushed on the goal stack.goal2
- A goal to be pushed on the goal stack.goal3
- A goal to be pushed on the goal stack.goal4
- A goal to be pushed on the goal stack.goal5
- A goal to be pushed on the goal stack.
and
goal composed from the goals
passed as parameters.public final IloCplex.Goal and(IloCplex.Goal goal1, IloCplex.Goal goal2, IloCplex.Goal goal3, IloCplex.Goal goal4, IloCplex.Goal goal5, IloCplex.Goal goal6)
and
goal.
This goal pushes the parameter goals onto the goal stack in
reverse order. When the goals are subsequently popped from the goal
stack they will be executed in the order in which they were listed as
parameters.
goal1
- A goal to be pushed on the goal stack.goal2
- A goal to be pushed on the goal stack.goal3
- A goal to be pushed on the goal stack.goal4
- A goal to be pushed on the goal stack.goal5
- A goal to be pushed on the goal stack.goal6
- A goal to be pushed on the goal stack.
and
goal composed from the goals
passed as parameters.public final IloCplex.Goal or(IloCplex.Goal goal1, IloCplex.Goal goal2)
or
goal.
This goal creates one child node for each argument. For each child,
it copies the goal stack of the current node to the child, and then it
pushes the appropriate goal from the argument list onto that
goal stack.
The goal then deactivates the current node, which will cause
IloCplex
to pick a new active node from the branch-and-cut
tree to process next.
goal1
- A goal to be used for a child node.goal2
- A goal to be used for a child node.
or
goal composed from the goals
passed as parameters.public final IloCplex.Goal or(IloCplex.Goal goal1, IloCplex.Goal goal2, IloCplex.Goal goal3)
or
goal.
This goal creates one child node for each argument. For each child,
it copies the goal stack of the current node to the child, and then it
pushes the appropriate goal from the argument list onto that
goal stack.
The goal then deactivates the current node, which will cause
IloCplex
to pick a new active node from the branch-and-cut
tree to process next.
goal1
- A goal to be used for a child node.goal2
- A goal to be used for a child node.goal3
- A goal to be used for a child node.
or
goal composed from the goals
passed as parameters.public final IloCplex.Goal or(IloCplex.Goal goal1, IloCplex.Goal goal2, IloCplex.Goal goal3, IloCplex.Goal goal4)
or
goal.
This goal creates one child node for each argument. For each child,
it copies the goal stack of the current node to the child, and then it
pushes the appropriate goal from the argument list onto that
goal stack.
The goal then deactivates the current node, which will cause
IloCplex
to pick a new active node from the branch-and-cut
tree to process next.
goal1
- A goal to be used for a child node.goal2
- A goal to be used for a child node.goal3
- A goal to be used for a child node.goal4
- A goal to be used for a child node.
or
goal composed from the goals
passed as parameters.public final IloCplex.Goal or(IloCplex.Goal goal1, IloCplex.Goal goal2, IloCplex.Goal goal3, IloCplex.Goal goal4, IloCplex.Goal goal5)
or
goal.
This goal creates one child node for each argument. For each child,
it copies the goal stack of the current node to the child, and then it
pushes the appropriate goal from the argument list onto that
goal stack.
The goal then deactivates the current node, which will cause
IloCplex
to pick a new active node from the branch-and-cut
tree to process next.
goal1
- A goal to be used for a child node.goal2
- A goal to be used for a child node.goal3
- A goal to be used for a child node.goal4
- A goal to be used for a child node.goal5
- A goal to be used for a child node.
or
goal composed from the goals
passed as parameters.public final IloCplex.Goal or(IloCplex.Goal goal1, IloCplex.Goal goal2, IloCplex.Goal goal3, IloCplex.Goal goal4, IloCplex.Goal goal5, IloCplex.Goal goal6)
or
goal.
This goal creates one child node for each argument. For each child,
it copies the goal stack of the current node to the child, and then it
pushes the appropriate goal from the argument list onto that
goal stack.
The goal then deactivates the current node, which will cause
IloCplex
to pick a new active node from the branch-and-cut
tree to process next.
goal1
- A goal to be used for a child node.goal2
- A goal to be used for a child node.goal3
- A goal to be used for a child node.goal4
- A goal to be used for a child node.goal5
- A goal to be used for a child node.goal6
- A goal to be used for a child node.
or
goal composed from the goals
passed as parameters.public final IloCplex.Goal branchAsCplex()
IloCplex
would in the absence of any goal at the current node. This
goal allows you to proceed with the built-in search
strategy while retaining the option to intervene at any node.
For example, a goal whose execute
method starts with
if (!isIntegerFeasible()) return cplex.and(cplex.branchAsCplex(), this);
would do something different from the built-in IloCplex
search procedure only when an integer feasible solution is found.
public final IloCplex.Goal apply(IloCplex.Goal goal, IloCplex.NodeEvaluator evaluator)
evaluator
to
the search tree defined by the goal
. In doing so, it
changes the order of processing of the active nodes of the search tree
defined by goal
according to evaluator
evaluator
to the search tree defined by
goal
.public final IloCplex.Goal limitSearch(IloCplex.Goal goal, IloCplex.SearchLimit limit)
goal
, as specified by
limit
. All nodes in a subtree that have not
yet been explored when the limit for that subtree is reached
will be discarded.
goal
to
search limit limit
.public final boolean solve(IloCplex.Goal goal) throws IloException
goal
. This is done by pushing
goal
onto the goal stack of the root node of the
branch-and-cut search tree before starting the search.
goal
- The goal that controls the branch-and-cut search to be
performed.
IloException
IloCplex.Goal
public final IloCplex.Goal failGoal()
public final IloCplex.Goal constraintGoal(ilog.concert.IloConstraint cut) throws IloException
cut
. When this goal is executed, the constraint
will be added to the current node and its descendents as a local cut.
Thus, this constraint will be active only in the subtree rooted
at the node where the goal was executed.
cut
- The constraint to added to the node and its descendents.
cut
.
IloException
public final IloCplex.Goal constraintGoal(ilog.concert.IloConstraint[] cut) throws IloException
cut
. When this goal is executed, the
constraints will be added to the current node and its descendents as a
local cut.
Thus, these constraints will be active only in the subtree rooted
at the node where the goal was executed.
cut
- The constraints to added to the current subtree.
cut
.
IloException
public final IloCplex.Goal globalCutGoal(ilog.concert.IloConstraint cut) throws IloException
cut
. When this goal is executed, the
constraint will be added to the active model as a global cut. This
constraint will be respected at every node explored from that
point on, not just those in the current subtree.
cut
- The constraint to added as a global cut.
cut
as a global cut.
IloException
public final IloCplex.Goal globalCutGoal(ilog.concert.IloConstraint[] cut) throws IloException
cut
. When this goal is executed, the
constraints will be added to the active model as global cuts. These
constraints will be respected at every node explored from that
point on, not just those in the current subtree.
cut
- The constraints to added as global cuts.
cut
as global cuts.
IloException
public final IloCplex.Goal solutionGoal(ilog.concert.IloNumVar[] vars, double[] vals) throws IloException
When the solution goal
is executed, it attempts to inject the solution specified by
setting the variables listed in vars
to the corresponding
values listed in val
as a new incumbent.
IloCplex
will not blindly accept such a solution. Instead,
it will make sure that this solution is compatible with both the
model and the goals. When checking feasibility with goals, it will
check feasibility with
both goals that have already been executed and goals that are still on the
goal stack. Thus, in particular, IloCplex
will reject any
solution that is not compatible with the branching that has been done so
far. It then continues by checking compatibility with the goals still
remaining on the goal stack, including those that may get created by them.
Only if the proposed solution remains feasible and has a better objective
value than the current incumbent will it be used to replace the current
incumbent.
vars
- An array of variables for which solution values are
specified.vals
- The array of solution values for the variables in
vars
. Value vals[j]
is the
proposed solution value for variable vars[j]
.
IloException
public IloCplex.Goal eqGoal(ilog.concert.IloNumExpr expr, double rhs) throws IloException
expr == rhs
. When this goal is executed, the constraint
will be added to the current node and all its descendents as a local cut.
Thus, the constraint will be active only in the subtree rooted at the
node where the goal was executed.
expr
- The lefthand side expression of the constraint.rhs
- The righthand side value of the constraint.
IloException
public IloCplex.Goal eqGoal(ilog.concert.IloNumExpr expr1, ilog.concert.IloNumExpr expr2) throws IloException
expr1 == expr2
. When this goal is executed, the constraint
will be added to the current node and all its descendents as a local cut.
Thus, the constraint will be active only in the subtree rooted at
the node where the goal was executed.
expr1
- The lefthand side expression of the constraint.expr2
- The righthand side expression of the constraint.
IloException
public IloCplex.Goal eqGoal(double lhs, ilog.concert.IloNumExpr expr) throws IloException
lhs == expr
. When this goal is executed, the constraint
will be added to the current node and all its descendents as a local cut.
Thus, the constraint will be active only in the subtree rooted at
the node where the goal was executed.
lhs
- The lefthand side value of the constraint.expr
- The righthand side expression of the constraint.
IloException
public IloCplex.Goal geGoal(ilog.concert.IloNumExpr expr, double rhs) throws IloException
expr >= rhs
. When this goal is executed, the constraint
will be added to the current node and all its descendents as a local cut.
Thus, the constraint will be active only in the subtree rooted at
the node where the goal was executed.
expr
- The lefthand side expression of the constraint.rhs
- The righthand side value of the constraint.
IloException
public IloCplex.Goal geGoal(ilog.concert.IloNumExpr expr1, ilog.concert.IloNumExpr expr2) throws IloException
expr1 >= expr2
. When this goal is executed, the constraint
will be added to the current node and all its descendents as a local cut.
Thus, the constraint will be active only in the subtree rooted at
the node where the goal was executed.
expr1
- The lefthand side expression of the constraint.expr2
- The righthand side expression of the constraint.
IloException
public IloCplex.Goal geGoal(double lhs, ilog.concert.IloNumExpr expr) throws IloException
lhs >= expr
. When this goal is executed, the constraint
will be added to the current node and all its descendents as a local cut.
Thus, the constraint will be active only in the subtree rooted at
the node where the goal was executed.
lhs
- The lefthand side value of the constraint.expr
- The righthand side expression of the constraint.
IloException
public IloCplex.Goal leGoal(ilog.concert.IloNumExpr expr, double rhs) throws IloException
expr <= rhs
. When this goal is executed, the constraint
will be added to the current node and all its descendents as a local cut.
Thus, the constraint will be active only in the subtree rooted at
the node where the goal was executed.
expr
- The lefthand side expression of the constraint.rhs
- The righthand side value of the constraint.
IloException
public IloCplex.Goal leGoal(ilog.concert.IloNumExpr expr1, ilog.concert.IloNumExpr expr2) throws IloException
expr1 <= expr2
. When this goal is executed, the constraint
will be added to the current node and all its descendents as a local cut.
Thus, the constraint will be active only in the subtree rooted at
the node where the goal was executed.
expr1
- The lefthand side expression of the constraint.expr2
- The righthand side expression of the constraint.
IloException
public IloCplex.Goal leGoal(double lhs, ilog.concert.IloNumExpr expr) throws IloException
lhs >= expr
. When this goal is executed, the constraint
will be added to the current node and all its descendents as a local cut.
Thus, the constraint will be active only in the subtree rooted at
the node where the goal was executed.
lhs
- The lefthand side value of the constraint.expr
- The righthand side expression of the constraint.
IloException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |