ilog.cplex
Class IloCplex

java.lang.Object
  |
  +--ilog.cplex.CpxModel
        |
        +--ilog.cplex.IloCplex
All Implemented Interfaces:
IloAddable, IloModel, IloModeler, IloMPModeler

public class IloCplex
extends ilog.cplex.CpxModel
implements IloMPModeler

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:

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:

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:

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 SOSs of type 1 in the active model.
 int getNSOS2()
          Returns the number of SOSs of type 2 in the active model.
 int getNSOSs()
          Returns the number of SOSs 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

IloCplex

public IloCplex()
         throws IloException
This constructor creates an IloCplex object with an empty active model.

Method Detail

numVar

public ilog.concert.IloNumVar numVar(double lb,
                                     double ub,
                                     ilog.concert.IloNumVarType type)
                              throws IloException
See IloModeler.numVar(double, double, IloNumVarType)

Specified by:
numVar in interface IloModeler
Parameters:
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.
Returns:
The new numerical variable object.
IloException

numVar

public ilog.concert.IloNumVar numVar(double lb,
                                     double ub,
                                     ilog.concert.IloNumVarType type,
                                     java.lang.String name)
                              throws IloException
See IloModeler.numVar(double, double, IloNumVarType, String)

Specified by:
numVar in interface IloModeler
Parameters:
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.
Returns:
The new numerical variable object.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double lb,
                                            double ub,
                                            ilog.concert.IloNumVarType type)
                                     throws IloException
See IloModeler.numVarArray(int, double, double, IloNumVarType)

Specified by:
numVarArray in interface IloModeler
Parameters:
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.
Returns:
An array containing the n new numerical variable objects.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double lb,
                                            double ub,
                                            ilog.concert.IloNumVarType type,
                                            java.lang.String[] name)
                                     throws IloException
See IloModeler.numVarArray(int, double, double, IloNumVarType, String[])

Specified by:
numVarArray in interface IloModeler
Parameters:
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].
Returns:
An array containing the n new numerical variable objects.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double[] lb,
                                            double[] ub,
                                            ilog.concert.IloNumVarType[] type)
                                     throws IloException
See IloModeler.numVarArray(int, double[], double[], IloNumVarType[])

Specified by:
numVarArray in interface IloModeler
Parameters:
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].
Returns:
An array containing the n new numerical variable objects.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double[] lb,
                                            double[] ub,
                                            ilog.concert.IloNumVarType[] type,
                                            java.lang.String[] name)
                                     throws IloException
See IloModeler.numVarArray(int, double[], double[], IloNumVarType[], String[])

Specified by:
numVarArray in interface IloModeler
Parameters:
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].
Returns:
An array containing the n new numerical variable objects.
IloException

numVar

public ilog.concert.IloNumVar numVar(double lb,
                                     double ub,
                                     java.lang.String name)
                              throws IloException
See IloModeler.numVar(double, double, String)

Specified by:
numVar in interface IloModeler
Parameters:
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.
Returns:
The new modeling variable object.
IloException

numVar

public ilog.concert.IloNumVar numVar(double lb,
                                     double ub)
                              throws IloException
See IloModeler.numVar(double, double)

Specified by:
numVar in interface IloModeler
Parameters:
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
Returns:
The new modeling variable object.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double lb,
                                            double ub)
                                     throws IloException
See IloModeler.numVarArray(int, double, double)

Specified by:
numVarArray in interface IloModeler
Parameters:
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
Returns:
The array new modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double[] lb,
                                            double[] ub)
                                     throws IloException
See IloModeler.numVarArray(int, double[], double[])

Specified by:
numVarArray in interface IloModeler
Parameters:
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].
Returns:
The array of new modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double lb,
                                            double ub,
                                            java.lang.String[] name)
                                     throws IloException
See IloModeler.numVarArray(int, double, double, String[])

Specified by:
numVarArray in interface IloModeler
Parameters:
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].
Returns:
The array of new modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(int n,
                                            double[] lb,
                                            double[] ub,
                                            java.lang.String[] name)
                                     throws IloException
See IloModeler.numVarArray(int, double[], double[], String[])

Specified by:
numVarArray in interface IloModeler
Parameters:
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].
Returns:
The array new modeling variables.
IloException

intVar

public ilog.concert.IloIntVar intVar(int lb,
                                     int ub,
                                     java.lang.String name)
                              throws IloException
See IloModeler.intVar(int, int, String)

Specified by:
intVar in interface IloModeler
Parameters:
lb - The minimum value of the variable.
ub - The maximum value of the variable.
name - The name of the variable.
IloException

intVar

public ilog.concert.IloIntVar intVar(int lb,
                                     int ub)
                              throws IloException
See IloModeler.intVar(int, int)

Specified by:
intVar in interface IloModeler
Parameters:
lb - The minimum value of the variable.
ub - The maximum value of the variable.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(int n,
                                            int lb,
                                            int ub)
                                     throws IloException
See IloModeler.intVarArray(int, int, int)

Specified by:
intVarArray in interface IloModeler
Parameters:
lb - The lower bound of the new modeling variable.
ub - The upper bound of the new modeling variable.
Returns:
The array of new modeling variables.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(int n,
                                            int[] lb,
                                            int[] ub)
                                     throws IloException
See IloModeler.intVarArray(int, int[], int[])

Specified by:
intVarArray in interface IloModeler
Parameters:
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].
Returns:
The array of new modeling variables.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(int n,
                                            int lb,
                                            int ub,
                                            java.lang.String[] name)
                                     throws IloException
See IloModeler.intVarArray(int, int, int, String[])

Specified by:
intVarArray in interface IloModeler
Parameters:
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].
Returns:
The new modeling variable object.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(int n,
                                            int[] lb,
                                            int[] ub,
                                            java.lang.String[] name)
                                     throws IloException
See IloModeler.intVarArray(int, int[], int[], String[])

Specified by:
intVarArray in interface IloModeler
Parameters:
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].
Returns:
The array of new modeling variables.
IloException

boolVar

public ilog.concert.IloIntVar boolVar(java.lang.String name)
                               throws IloException
See IloModeler.boolVar(String)

Specified by:
boolVar in interface IloModeler
Parameters:
name - The name of the variable.
IloException

boolVar

public ilog.concert.IloIntVar boolVar()
                               throws IloException
See IloModeler.boolVar()

Specified by:
boolVar in interface IloModeler
IloException

boolVarArray

public ilog.concert.IloIntVar[] boolVarArray(int n)
                                      throws IloException
See IloModeler.boolVarArray(int)

Specified by:
boolVarArray in interface IloModeler
IloException

boolVarArray

public ilog.concert.IloIntVar[] boolVarArray(int n,
                                             java.lang.String[] name)
                                      throws IloException
See IloModeler.boolVarArray(int, String[])

Specified by:
boolVarArray in interface IloModeler
IloException

minimize

public ilog.concert.IloObjective minimize(ilog.concert.IloNumExpr expr,
                                          java.lang.String name)
                                   throws IloException
See IloModeler.minimize(IloNumExpr, String)

Specified by:
minimize in interface IloModeler
Parameters:
expr - Expression to minimize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to minimize expr.
IloException

maximize

public ilog.concert.IloObjective maximize(ilog.concert.IloNumExpr expr,
                                          java.lang.String name)
                                   throws IloException
See IloModeler.maximize(IloNumExpr, String)

Specified by:
maximize in interface IloModeler
Parameters:
expr - Expression to maximize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

objective

public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense,
                                           ilog.concert.IloNumExpr expr,
                                           java.lang.String name)
                                    throws IloException
See IloModeler.objective(IloObjectiveSense, IloNumExpr, String)

Specified by:
objective in interface IloModeler
Parameters:
sense - Optimization sense.
expr - Expression to maximize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

minimize

public ilog.concert.IloObjective minimize(ilog.concert.IloNumExpr expr)
                                   throws IloException
See IloModeler.minimize(IloNumExpr)

Specified by:
minimize in interface IloModeler
Parameters:
expr - Expression to minimize.
Returns:
An IloObjective object representing the objective to minimize expr.
IloException

maximize

public ilog.concert.IloObjective maximize(ilog.concert.IloNumExpr expr)
                                   throws IloException
See IloModeler.maximize(IloNumExpr)

Specified by:
maximize in interface IloModeler
Parameters:
expr - Expression to maximize.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

objective

public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense,
                                           ilog.concert.IloNumExpr expr)
                                    throws IloException
See IloModeler.objective(IloObjectiveSense, IloNumExpr)

Specified by:
objective in interface IloModeler
Parameters:
sense - Optimization sense.
expr - Expression to maximize.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

addObjective

public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense,
                                              ilog.concert.IloNumExpr expr,
                                              java.lang.String name)
                                       throws IloException
See IloModeler.addObjective(IloObjectiveSense, IloNumExpr, String)

Specified by:
addObjective in interface IloModeler
Parameters:
sense - Optimization sense.
expr - Expression to maximize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

addMinimize

public ilog.concert.IloObjective addMinimize(ilog.concert.IloNumExpr expr)
                                      throws IloException
See IloModeler.addMinimize(IloNumExpr)

Specified by:
addMinimize in interface IloModeler
Parameters:
expr - Expression to minimize.
Returns:
An IloObjective object representing the objective to minimize expr.
IloException

addMaximize

public ilog.concert.IloObjective addMaximize(ilog.concert.IloNumExpr expr)
                                      throws IloException
See IloModeler.addMaximize(IloNumExpr)

Specified by:
addMaximize in interface IloModeler
Parameters:
expr - Expression to maximize.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

addObjective

public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense,
                                              ilog.concert.IloNumExpr expr)
                                       throws IloException
See IloModeler.addObjective(IloObjectiveSense, IloNumExpr)

Specified by:
addObjective in interface IloModeler
Parameters:
sense - Optimization sense.
expr - Expression to maximize.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

linearNumExpr

public ilog.concert.IloLinearNumExpr linearNumExpr()
                                            throws IloException
See IloModeler.linearNumExpr()

Specified by:
linearNumExpr in interface IloModeler
Returns:
A zero linear expression.
IloException

linearNumExpr

public ilog.concert.IloLinearNumExpr linearNumExpr(double val)
                                            throws IloException
See IloModeler.linearNumExpr(double)

Specified by:
linearNumExpr in interface IloModeler
Parameters:
val - The constant term of the new linear expression.
Returns:
The linear expression initialized to the constant val.
IloException

scalProd

public ilog.concert.IloLinearNumExpr scalProd(double[] vals,
                                              ilog.concert.IloNumVar[] vars)
                                       throws IloException
See IloModeler.scalProd(double[], IloNumVar[])

Specified by:
scalProd in interface IloModeler
Parameters:
vals - The values involved in the new scalar product expression.
vars - The variables involved in the new scalar product expression.
Returns:
The new linear expression.
IloException

scalProd

public ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars,
                                              double[] vals)
                                       throws IloException
See IloModeler.scalProd(IloNumVar[], double[])

Specified by:
scalProd in interface IloModeler
Parameters:
vals - The values involved in the new scalar product expression.
vars - The variables involved in the new scalar product expression.
Returns:
The new linear expression.
IloException

scalProd

public ilog.concert.IloLinearNumExpr scalProd(double[] vals,
                                              ilog.concert.IloNumVar[] vars,
                                              int start,
                                              int num)
                                       throws IloException
See IloModeler.scalProd(double[], IloNumVar[], int, int)

Specified by:
scalProd in interface IloModeler
Parameters:
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.
Returns:
The new linear expression.
IloException

scalProd

public ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars,
                                              double[] vals,
                                              int start,
                                              int num)
                                       throws IloException
See IloModeler.scalProd(IloNumVar[], double[], int, int)

Specified by:
scalProd in interface IloModeler
Parameters:
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.
Returns:
The new linear expression.
IloException

scalProd

public ilog.concert.IloLinearNumExpr scalProd(int[] vals,
                                              ilog.concert.IloNumVar[] vars)
                                       throws IloException
See IloModeler.scalProd(int[], IloNumVar[])

Specified by:
scalProd in interface IloModeler
Parameters:
vals - The values involved in the new scalar product expression.
vars - The variables involved in the new scalar product expression.
Returns:
The new linear expression.
IloException

scalProd

public ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars,
                                              int[] vals)
                                       throws IloException
See IloModeler.scalProd(IloNumVar[], int[])

Specified by:
scalProd in interface IloModeler
Parameters:
vals - The values involved in the new scalar product expression.
vars - The variables involved in the new scalar product expression.
Returns:
The new linear expression.
IloException

linearIntExpr

public ilog.concert.IloLinearIntExpr linearIntExpr(int val)
                                            throws IloException
See IloModeler.linearIntExpr(int)

Specified by:
linearIntExpr in interface IloModeler
Parameters:
val - Constant term of the new linear expression.
Returns:
Integer linear expression initialized to the constant val.
IloException

scalProd

public ilog.concert.IloLinearIntExpr scalProd(int[] vals,
                                              ilog.concert.IloIntVar[] vars)
                                       throws IloException
See IloModeler.scalProd(int[], IloIntVar[])

Specified by:
scalProd in interface IloModeler
Parameters:
vals - The integer values involved in the new scalar product expression.
vars - The integer variables involved in the new scalar product expression.
Returns:
The new integer linear expression.
IloException

scalProd

public ilog.concert.IloLinearIntExpr scalProd(ilog.concert.IloIntVar[] vars,
                                              int[] vals)
                                       throws IloException
See IloModeler.scalProd(IloIntVar[], int[])

Specified by:
scalProd in interface IloModeler
Parameters:
vars - The integer variables involved in the new scalar product expression.
vals - The integer values involved in the new scalar product expression.
Returns:
The new integer linear expression.
IloException

scalProd

public ilog.concert.IloLinearIntExpr scalProd(int[] vals,
                                              ilog.concert.IloIntVar[] vars,
                                              int start,
                                              int num)
                                       throws IloException
See IloModeler.scalProd(int[], IloIntVar[], int, int)

Specified by:
scalProd in interface IloModeler
Parameters:
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.
Returns:
The new integer linear expression.
IloException

scalProd

public ilog.concert.IloLinearIntExpr scalProd(ilog.concert.IloIntVar[] vars,
                                              int[] vals,
                                              int start,
                                              int num)
                                       throws IloException
See IloModeler.scalProd(IloIntVar[], int[], int, int)

Specified by:
scalProd in interface IloModeler
Parameters:
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.
Returns:
The new integer linear expression.
IloException

negative

public ilog.concert.IloNumExpr negative(ilog.concert.IloNumExpr e)
                                 throws IloException
See IloModeler.negative(IloNumExpr)

Specified by:
negative in interface IloModeler
Parameters:
e - An expression for which the negative value is given.
Returns:
An expression object representing the negative of e.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e,
                                   double v)
                            throws IloException
See IloModeler.sum(IloNumExpr, double)

Specified by:
sum in interface IloModeler
Parameters:
e - The numeric expression.
v - The value.
Returns:
An expression object representing the sum of e + v.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr e1,
                                   ilog.concert.IloNumExpr e2)
                            throws IloException
See IloModeler.sum(IloNumExpr, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
e1 - The first numeric expression.
e2 - The second numeric expression.
Returns:
A numeric expression object representing the sum of e1 + e2.
IloException

sum

public ilog.concert.IloNumExpr sum(double v,
                                   ilog.concert.IloNumExpr e1)
                            throws IloException
See IloModeler.sum(double, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
v - The value.
e1 - The numeric expression.
Returns:
An expression object representing the sum of v + e.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr expr1,
                                   ilog.concert.IloNumExpr expr2,
                                   ilog.concert.IloNumExpr expr3)
                            throws IloException
See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first numeric expression.
expr2 - The second numeric expression.
expr3 - The third numeric expression.
Returns:
A numeric expression object representing the sum of e1 + e2 + e3.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr expr1,
                                   ilog.concert.IloNumExpr expr2,
                                   ilog.concert.IloNumExpr expr3,
                                   ilog.concert.IloNumExpr expr4)
                            throws IloException
See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first numeric expression.
expr2 - The second numeric expression.
expr3 - The third numeric expression.
expr4 - The fourth numeric expression.
Returns:
A numeric expression object representing the sum of e1 + e2 + e3 + e4.
IloException

sum

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
See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
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.
Returns:
A numeric expression object representing the sum of e1 + e2 + e3 + e4 + e5.
IloException

sum

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
See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
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.
Returns:
A numeric expression object representing the sum of e1 + e2 + e3 + e4 + e5 + e6.
IloException

sum

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
See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
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.
Returns:
A numeric expression object representing the sum of e1 + e2 + e3 + e4 + e5 + e6 + e7.
IloException

sum

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
See IloModeler.sum(IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr, IloNumExpr)

Specified by:
sum in interface IloModeler
Parameters:
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.
Returns:
A numeric expression object representing the sum of e1 + e2 + e3 + e4 + e5 + e6 + e7 + e8.
IloException

diff

public ilog.concert.IloIntExpr diff(ilog.concert.IloIntExpr e,
                                    int v)
                             throws IloException
See IloModeler.diff(IloIntExpr, int)

Specified by:
diff in interface IloModeler
Parameters:
e - An integer expression to use in the difference.
v - A value to use in the difference.
Returns:
An integer expression object representing the difference of e - v.
IloException

diff

public ilog.concert.IloNumExpr diff(ilog.concert.IloNumExpr e,
                                    double v)
                             throws IloException
See IloModeler.diff(IloNumExpr, double)

Specified by:
diff in interface IloModeler
Parameters:
e - An expression to use in the difference.
v - A value to use in the difference.
Returns:
An expression object representing the difference of e - v.
IloException

diff

public ilog.concert.IloNumExpr diff(ilog.concert.IloNumExpr e1,
                                    ilog.concert.IloNumExpr e2)
                             throws IloException
See IloModeler.diff(IloNumExpr, IloNumExpr)

Specified by:
diff in interface IloModeler
Parameters:
e1 - An expression to use in the difference.
e2 - An expression to use in the difference.
Returns:
An expression object representing the difference of e1 - e2.
IloException

diff

public ilog.concert.IloNumExpr diff(double v,
                                    ilog.concert.IloNumExpr e1)
                             throws IloException
See IloModeler.diff(double, IloNumExpr)

Specified by:
diff in interface IloModeler
Parameters:
v - A value to use in the difference.
e1 - An expression to use in the difference.
Returns:
An expression object representing the difference of v - e1.
IloException

prod

public ilog.concert.IloNumExpr prod(double v,
                                    ilog.concert.IloNumVar var1,
                                    ilog.concert.IloNumVar var2)
                             throws IloException
See IloMPModeler.prod(double, IloNumVar, IloNumVar)

Specified by:
prod in interface IloMPModeler
Parameters:
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.
Returns:
An expression object representing the product val * var1 * var2.
IloException

prod

public ilog.concert.IloNumExpr prod(ilog.concert.IloNumVar var1,
                                    double v,
                                    ilog.concert.IloNumVar var2)
                             throws IloException
See IloMPModeler.prod(IloNumVar, double, IloNumVar)

Specified by:
prod in interface IloMPModeler
Parameters:
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.
Returns:
An expression object representing the product val * var1 * var2.
IloException

prod

public ilog.concert.IloNumExpr prod(ilog.concert.IloNumVar var1,
                                    ilog.concert.IloNumVar var2,
                                    double v)
                             throws IloException
See IloMPModeler.prod(IloNumVar, IloNumVar, double)

Specified by:
prod in interface IloMPModeler
Parameters:
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.
Returns:
An expression object representing the product val * var1 * var2.
IloException

prod

public ilog.concert.IloNumExpr prod(ilog.concert.IloNumExpr e,
                                    double v)
                             throws IloException
See IloModeler.prod(IloNumExpr, double)

Specified by:
prod in interface IloModeler
Parameters:
e - An expression to use in the product.
v - A value to use in the product.
Returns:
An expression object representing the product of e * v.
IloException

prod

public ilog.concert.IloNumExpr prod(ilog.concert.IloNumExpr e1,
                                    ilog.concert.IloNumExpr e2)
                             throws IloException
See IloModeler.prod(IloNumExpr, IloNumExpr)

Specified by:
prod in interface IloModeler
Parameters:
e1 - An expression to use in the product.
e2 - An expression to use in the product.
Returns:
An expression object representing the product of expr1 * expr2.
IloException

prod

public ilog.concert.IloNumExpr prod(double v,
                                    ilog.concert.IloNumExpr e1)
                             throws IloException
See IloModeler.prod(double, IloNumExpr)

Specified by:
prod in interface IloModeler
Parameters:
e1 - An expression to use in the product.
v - A value to use in the product.
Returns:
An expression object representing the product of e1 * v.
IloException

square

public ilog.concert.IloNumExpr square(ilog.concert.IloNumExpr e)
                               throws IloException
See IloModeler.square(IloNumExpr)

Specified by:
square in interface IloModeler
Parameters:
e - An expression to use in the square.
Returns:
An expression object representing the product of e * e.
IloException

constant

public ilog.concert.IloNumExpr constant(double x)
                                 throws IloException
See IloModeler.constant(double)

Specified by:
constant in interface IloModeler
Parameters:
x - A value for which to construct a constant expression term.
Returns:
An expression object representing the constant x.
IloException

negative

public ilog.concert.IloIntExpr negative(ilog.concert.IloIntExpr e)
                                 throws IloException
See IloModeler.negative(IloIntExpr)

Specified by:
negative in interface IloModeler
Parameters:
e - An integer expression for which the negative value is given.
Returns:
An integer expression object representing the negative of e.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr e,
                                   int v)
                            throws IloException
See IloModeler.sum(IloIntExpr, int)

Specified by:
sum in interface IloModeler
Parameters:
e - The integer expression.
v - The value.
Returns:
An integer expression object representing the sum of e + v.
IloException

sum

public ilog.concert.IloIntExpr sum(int v,
                                   ilog.concert.IloIntExpr e1)
                            throws IloException
See IloModeler.sum(int, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
v - The value.
e1 - The integer expression.
Returns:
An integer expression object representing the sum of e + v.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr expr1,
                                   ilog.concert.IloIntExpr expr2)
                            throws IloException
See IloModeler.sum(IloIntExpr, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first integer expression.
expr2 - The second integer expression.
Returns:
An integer expression object representing the sum of e1 + e2.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr expr1,
                                   ilog.concert.IloIntExpr expr2,
                                   ilog.concert.IloIntExpr expr3)
                            throws IloException
See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first integer expression.
expr2 - The second integer expression.
expr3 - The third integer expression.
Returns:
The expression exp, representing the sum of e1 +e2 +e3.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr expr1,
                                   ilog.concert.IloIntExpr expr2,
                                   ilog.concert.IloIntExpr expr3,
                                   ilog.concert.IloIntExpr expr4)
                            throws IloException
See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
expr1 - The first integer expression.
expr2 - The second integer expression.
expr3 - The third integer expression.
expr4 - The fourth integer expression.
Returns:
The expression exp, representing the sum of e1 + e2 + e3 +e 4.
IloException

sum

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
See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
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.
Returns:
The expression exp, representing the sum of e1 + e2 + e3 + e4 + e5.
IloException

sum

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
See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
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.
Returns:
The expression exp, representing the sum of e1 + e2 + e3 + e4 + e5 + e6.
IloException

sum

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
See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
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.
Returns:
The expression exp, representing the sum of e1 + e2 + e3 + e4 + e5 + e6 + e7.
IloException

sum

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
See IloModeler.sum(IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr, IloIntExpr)

Specified by:
sum in interface IloModeler
Parameters:
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.
Returns:
The expression exp, representing the sum of e1 + e2 + e3 + e4 + e5 + e6 + e7 + e8.
IloException

diff

public ilog.concert.IloIntExpr diff(ilog.concert.IloIntExpr e1,
                                    ilog.concert.IloIntExpr e2)
                             throws IloException
See IloModeler.diff(IloIntExpr, IloIntExpr)

Specified by:
diff in interface IloModeler
Parameters:
e1 - An integer expression to use in the difference.
e2 - An integer expression to use in the difference.
Returns:
An integer expression object representing the difference of expr1 - expr2.
IloException

diff

public ilog.concert.IloIntExpr diff(int v,
                                    ilog.concert.IloIntExpr e1)
                             throws IloException
See IloModeler.diff(int, IloIntExpr)

Specified by:
diff in interface IloModeler
Parameters:
v - A value to use in the difference.
e1 - An integer expression to use in the difference.
Returns:
An integer expression object representing the difference of v - e1.
IloException

prod

public ilog.concert.IloIntExpr prod(ilog.concert.IloIntExpr e,
                                    int v)
                             throws IloException
See IloModeler.prod(IloIntExpr, int)

Specified by:
prod in interface IloModeler
IloException

prod

public ilog.concert.IloIntExpr prod(ilog.concert.IloIntExpr e1,
                                    ilog.concert.IloIntExpr e2)
                             throws IloException
See IloModeler.prod(IloIntExpr, IloIntExpr)

Specified by:
prod in interface IloModeler
IloException

prod

public ilog.concert.IloIntExpr prod(int v,
                                    ilog.concert.IloIntExpr e1)
                             throws IloException
See IloModeler.prod(int, IloIntExpr)

Specified by:
prod in interface IloModeler
IloException

square

public ilog.concert.IloIntExpr square(ilog.concert.IloIntExpr e)
                               throws IloException
See IloModeler.square(IloIntExpr)

Specified by:
square in interface IloModeler
IloException

constant

public ilog.concert.IloIntExpr constant(int x)
                                 throws IloException
See IloModeler.constant(int)

Specified by:
constant in interface IloModeler
Parameters:
x - The value of the constant expression.
Returns:
The constant expression.
IloException

numVar

public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column,
                                     double lb,
                                     double ub,
                                     ilog.concert.IloNumVarType type)
                              throws IloException
See IloMPModeler.numVar(IloColumn column, double lb, double ub, IloNumVarType type)

Specified by:
numVar in interface IloMPModeler
Parameters:
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.
Returns:
The new modeling variable.
IloException

numVar

public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column,
                                     double lb,
                                     double ub,
                                     ilog.concert.IloNumVarType type,
                                     java.lang.String name)
                              throws IloException
See IloMPModeler.numVar(IloColumn column, double lb, double ub, IloNumVarType type, String name)

Specified by:
numVar in interface IloMPModeler
Parameters:
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.
Returns:
The new modeling variable.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double lb,
                                            double ub,
                                            ilog.concert.IloNumVarType type)
                                     throws IloException
See IloMPModeler.numVarArray(IloColumnArray cols, double lb, double ub, IloNumVarType type)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
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.
Returns:
The array of new modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double lb,
                                            double ub,
                                            ilog.concert.IloNumVarType type,
                                            java.lang.String[] name)
                                     throws IloException
See IloMPModeler.numVarArray(IloColumnArray cols, double lb, double ub, IloNumVarType type, String[] name)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double[] lb,
                                            double[] ub,
                                            ilog.concert.IloNumVarType[] type)
                                     throws IloException
See IloMPModeler.numVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double[] lb,
                                            double[] ub,
                                            ilog.concert.IloNumVarType[] type,
                                            java.lang.String[] name)
                                     throws IloException
See IloMPModeler.numVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type, String[] name)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new modeling variables.
IloException

numVar

public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column,
                                     double lb,
                                     double ub,
                                     java.lang.String name)
                              throws IloException
See IloMPModeler.numVar(IloColumn column, double lb, double ub, String name)

Specified by:
numVar in interface IloMPModeler
Parameters:
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.
Returns:
The new continuous modeling variable.
IloException

numVar

public ilog.concert.IloNumVar numVar(ilog.concert.IloColumn column,
                                     double lb,
                                     double ub)
                              throws IloException
See IloMPModeler.numVar(IloColumn column, double lb, double ub)

Specified by:
numVar in interface IloMPModeler
Parameters:
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.
Returns:
The new continuous modeling variable.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double lb,
                                            double ub)
                                     throws IloException
See IloMPModeler.numVarArray(IloColumnArray cols, double lb, double ub)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
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.
Returns:
The array of new continuous modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double[] lb,
                                            double[] ub)
                                     throws IloException
See IloMPModeler.numVarArray(IloColumnArray cols, double[] lb, double[] ub)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new continuous modeling variables
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double lb,
                                            double ub,
                                            java.lang.String[] name)
                                     throws IloException
See IloMPModeler.numVarArray(IloColumnArray cols, double lb, double ub, String[] name)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new continuous modeling variables.
IloException

numVarArray

public ilog.concert.IloNumVar[] numVarArray(ilog.concert.IloColumnArray cols,
                                            double[] lb,
                                            double[] ub,
                                            java.lang.String[] name)
                                     throws IloException
See IloMPModeler.numVarArray(IloColumnArray cols, double[] lb, double[] ub, String[] name)

Specified by:
numVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new continuous modeling variables.
IloException

intVar

public ilog.concert.IloIntVar intVar(ilog.concert.IloColumn column,
                                     int lb,
                                     int ub)
                              throws IloException
See IloMPModeler.intVar(IloColumn column, int lb, int ub)

Specified by:
intVar in interface IloMPModeler
Parameters:
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.
Returns:
The new integer modeling variable.
IloException

intVar

public ilog.concert.IloIntVar intVar(ilog.concert.IloColumn column,
                                     int lb,
                                     int ub,
                                     java.lang.String name)
                              throws IloException
See IloMPModeler.intVar(IloColumn column, int lb, int ub, String name)

Specified by:
intVar in interface IloMPModeler
Parameters:
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.
Returns:
The new integer modeling variable.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols,
                                            int lb,
                                            int ub,
                                            java.lang.String[] name)
                                     throws IloException
See IloMPModeler.intVarArray(IloColumnArray cols, int lb, int ub, String[] name)

Specified by:
intVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new integer modeling variables.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols,
                                            int[] lb,
                                            int[] ub,
                                            java.lang.String[] name)
                                     throws IloException
See IloMPModeler.intVarArray(IloColumnArray cols, int[] lb, int[] ub, String[] name)

Specified by:
intVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new integer modeling variables.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols,
                                            int lb,
                                            int ub)
                                     throws IloException
See IloMPModeler.intVarArray(IloColumnArray cols, int lb, int ub)

Specified by:
intVarArray in interface IloMPModeler
Parameters:
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.
Returns:
The array of new integer modeling variables.
IloException

intVarArray

public ilog.concert.IloIntVar[] intVarArray(ilog.concert.IloColumnArray cols,
                                            int[] lb,
                                            int[] ub)
                                     throws IloException
See IloMPModeler.intVarArray(IloColumnArray cols, int[] lb, int[] ub)

Specified by:
intVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new integer modeling variables.
IloException

boolVar

public ilog.concert.IloIntVar boolVar(ilog.concert.IloColumn column,
                                      java.lang.String name)
                               throws IloException
See IloMPModeler.boolVar(IloColumn column, String name)

Specified by:
boolVar in interface IloMPModeler
Parameters:
column - The column object describing where to install the new variable.
name - The name of the new modeling variable.
Returns:
The new Boolean modeling variable.
IloException

boolVar

public ilog.concert.IloIntVar boolVar(ilog.concert.IloColumn column)
                               throws IloException
See IloMPModeler.boolVar(IloColumn column)

Specified by:
boolVar in interface IloMPModeler
Parameters:
column - The column object describing where to install the new variable.
Returns:
The new Boolean modeling variable.
IloException

boolVarArray

public ilog.concert.IloIntVar[] boolVarArray(ilog.concert.IloColumnArray cols)
                                      throws IloException
See IloMPModeler.boolVarArray(IloColumnArray cols)

Specified by:
boolVarArray in interface IloMPModeler
Parameters:
cols - The IloColumnArray object describing where to install the new variables.
Returns:
The array of new Boolean modeling variables
IloException

boolVarArray

public ilog.concert.IloIntVar[] boolVarArray(ilog.concert.IloColumnArray cols,
                                             java.lang.String[] name)
                                      throws IloException
See IloMPModeler.boolVarArray(IloColumnArray cols, String[] name)

Specified by:
boolVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new Boolean modeling variables.
IloException

piecewiseLinear

public ilog.concert.IloNumExpr piecewiseLinear(ilog.concert.IloNumExpr expr,
                                               double[] points,
                                               double[] slopes,
                                               double a,
                                               double fa)
                                        throws IloException
See IloMPModeler.piecewiseLinear(IloNumExpr, double[], double[], double, double)

Specified by:
piecewiseLinear in interface IloMPModeler
Parameters:
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.
Returns:
A piecewise linear function of expr.
IloException

piecewiseLinear

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
See IloMPModeler.piecewiseLinear(IloNumExpr, double[], int, int, double[], int, double, double)

Specified by:
piecewiseLinear in interface IloMPModeler
Parameters:
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.
Returns:
A piecewise linear function of expr.
IloException

addToExpr

public void addToExpr(ilog.concert.IloObjective obj,
                      ilog.concert.IloNumExpr expr)
               throws IloException
See IloMPModeler.addToExpr(IloObjective, IloNumExpr)

Specified by:
addToExpr in interface IloMPModeler
Parameters:
obj - The objective to modify.
expr - The new expression to add.
IloException

setLinearCoef

public void setLinearCoef(ilog.concert.IloObjective obj,
                          double val,
                          ilog.concert.IloNumVar var)
                   throws IloException
See IloMPModeler.setLinearCoef(IloObjective, double, IloNumVar)

Specified by:
setLinearCoef in interface IloMPModeler
Parameters:
obj - The objective to modify.
val - The coefficient to set.
var - The variable for which to set the coefficient.
IloException

setLinearCoef

public void setLinearCoef(ilog.concert.IloObjective obj,
                          ilog.concert.IloNumVar var,
                          double val)
                   throws IloException
See IloMPModeler.setLinearCoef(IloObjective, IloNumVar, double)

Specified by:
setLinearCoef in interface IloMPModeler
Parameters:
obj - The objective to modify.
var - The variable for which to set the coefficient.
val - The coefficient to set.
IloException

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloObjective obj,
                           double[] val,
                           ilog.concert.IloNumVar[] var)
                    throws IloException
See IloMPModeler.setLinearCoefs(IloObjective, double[], IloNumVar[])

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
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

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloObjective obj,
                           ilog.concert.IloNumVar[] var,
                           double[] val)
                    throws IloException
See IloMPModeler.setLinearCoefs(IloObjective, IloNumVar[], double[])

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
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

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloObjective obj,
                           double[] val,
                           ilog.concert.IloNumVar[] var,
                           int start,
                           int num)
                    throws IloException
See IloMPModeler.setLinearCoefs(IloObjective, double[], IloNumVar[], int, int)

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
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

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloObjective obj,
                           ilog.concert.IloNumVar[] var,
                           double[] val,
                           int start,
                           int num)
                    throws IloException
See IloMPModeler.setLinearCoefs(IloObjective, IloNumVar[], double[], int, int)

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
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

semiContVar

public ilog.concert.IloSemiContVar semiContVar(double lb,
                                               double ub,
                                               ilog.concert.IloNumVarType type,
                                               java.lang.String name)
                                        throws IloException
See IloMPModeler.semiContVar(double, double, IloNumVarType, String)

Specified by:
semiContVar in interface IloMPModeler
Parameters:
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.
Returns:
The new modeling variable.
IloException

semiContVar

public ilog.concert.IloSemiContVar semiContVar(double lb,
                                               double ub,
                                               ilog.concert.IloNumVarType type)
                                        throws IloException
See IloMPModeler.semiContVar(double, double, IloNumVarType)

Specified by:
semiContVar in interface IloMPModeler
Parameters:
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.
Returns:
The new modeling variable.
IloException

semiContVar

public ilog.concert.IloSemiContVar semiContVar(ilog.concert.IloColumn column,
                                               double lb,
                                               double ub,
                                               ilog.concert.IloNumVarType type,
                                               java.lang.String name)
                                        throws IloException
See IloMPModeler.semiContVar(IloColumn, double, double, IloNumVarType, String)

Specified by:
semiContVar in interface IloMPModeler
Parameters:
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.
Returns:
The new modeling variable.
IloException

semiContVar

public ilog.concert.IloSemiContVar semiContVar(ilog.concert.IloColumn column,
                                               double lb,
                                               double ub,
                                               ilog.concert.IloNumVarType type)
                                        throws IloException
See IloMPModeler.semiContVar(IloColumn, double, double, IloNumVarType)

Specified by:
semiContVar in interface IloMPModeler
Parameters:
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.
Returns:
The new modeling variable.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(int n,
                                                      double lb,
                                                      double ub,
                                                      ilog.concert.IloNumVarType type)
                                               throws IloException
See IloMPModeler.semiContVarArray(int, double, double, IloNumVarType)

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
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.
Returns:
The array of new modeling variables.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(int n,
                                                      double[] lb,
                                                      double[] ub,
                                                      ilog.concert.IloNumVarType[] type)
                                               throws IloException
See IloMPModeler.semiContVarArray(int, double[], double[], IloNumVarType[])

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new modeling variables.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(int n,
                                                      double lb,
                                                      double ub,
                                                      ilog.concert.IloNumVarType type,
                                                      java.lang.String[] name)
                                               throws IloException
See IloMPModeler.semiContVarArray(int, double, double, IloNumVarType, String[])

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new modeling variables.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(int n,
                                                      double[] lb,
                                                      double[] ub,
                                                      ilog.concert.IloNumVarType[] type,
                                                      java.lang.String[] name)
                                               throws IloException
See IloMPModeler.semiContVarArray(int, double[], double[], IloNumVarType[], String[])

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new modeling variables.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols,
                                                      double lb,
                                                      double ub,
                                                      ilog.concert.IloNumVarType type)
                                               throws IloException
See IloMPModeler.semiContVarArray(IloColumnArray, double, double, IloNumVarType)

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
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.
Returns:
The array of new modeling variables.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols,
                                                      double[] lb,
                                                      double[] ub,
                                                      ilog.concert.IloNumVarType[] type)
                                               throws IloException
See IloMPModeler.semiContVarArray(IloColumnArray, double[], double[], IloNumVarType[])

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new modeling variables.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols,
                                                      double lb,
                                                      double ub,
                                                      ilog.concert.IloNumVarType type,
                                                      java.lang.String[] name)
                                               throws IloException
See IloMPModeler.semiContVarArray(IloColumnArray, double, double, IloNumVarType, String[])

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new modeling variables.
IloException

semiContVarArray

public ilog.concert.IloSemiContVar[] semiContVarArray(ilog.concert.IloColumnArray cols,
                                                      double[] lb,
                                                      double[] ub,
                                                      ilog.concert.IloNumVarType[] type,
                                                      java.lang.String[] name)
                                               throws IloException
See IloMPModeler.semiContVarArray(IloColumnArray cols, double[] lb, double[] ub, IloNumVarType[] type, String[] name)

Specified by:
semiContVarArray in interface IloMPModeler
Parameters:
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].
Returns:
The array of new modeling variables.
IloException

minimize

public ilog.concert.IloObjective minimize()
                                   throws IloException
See IloMPModeler.minimize()

Specified by:
minimize in interface IloMPModeler
Returns:
The new zero minimization objective.
IloException

maximize

public ilog.concert.IloObjective maximize()
                                   throws IloException
See IloMPModeler.maximize()

Specified by:
maximize in interface IloMPModeler
Returns:
The new zero maximization objective.
IloException

minimize

public ilog.concert.IloObjective minimize(java.lang.String name)
                                   throws IloException
See IloMPModeler.minimize(String)

Specified by:
minimize in interface IloMPModeler
Parameters:
name - The name assigned to the new objective.
Returns:
The new zero minimization objective.
IloException

maximize

public ilog.concert.IloObjective maximize(java.lang.String name)
                                   throws IloException
See IloMPModeler.maximize(String)

Specified by:
maximize in interface IloMPModeler
Parameters:
name - The name assigned to the new objective.
Returns:
The new zero maximization objective.
IloException

objective

public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense)
                                    throws IloException
See IloMPModeler.objective(IloObjectiveSense)

Specified by:
objective in interface IloMPModeler
Parameters:
sense - The optimization sense of the new objective.
Returns:
The new zero objective.
IloException

objective

public ilog.concert.IloObjective objective(ilog.concert.IloObjectiveSense sense,
                                           java.lang.String name)
                                    throws IloException
See IloMPModeler.objective(IloObjectiveSense, String)

Specified by:
objective in interface IloMPModeler
Parameters:
sense - The optimization sense of the new objective.
name - The name assigned to the new objective.
Returns:
The new zero objective.
IloException

addMinimize

public ilog.concert.IloObjective addMinimize(ilog.concert.IloNumExpr expr,
                                             java.lang.String name)
                                      throws IloException
See IloModeler.addMinimize(IloNumExpr, String)

Specified by:
addMinimize in interface IloModeler
Parameters:
expr - Expression to minimize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to minimize expr.
IloException

addMaximize

public ilog.concert.IloObjective addMaximize(ilog.concert.IloNumExpr expr,
                                             java.lang.String name)
                                      throws IloException
See IloModeler.addMaximize(IloNumExpr, String)

Specified by:
addMaximize in interface IloModeler
Parameters:
expr - Expression to maximize.
name - Name assigned to the new IloObjective object.
Returns:
An IloObjective object representing the objective to maximize expr.
IloException

addMinimize

public ilog.concert.IloObjective addMinimize()
                                      throws IloException
See IloMPModeler.addMinimize()

Specified by:
addMinimize in interface IloMPModeler
Returns:
The new zero minimization objective.
IloException

addMaximize

public ilog.concert.IloObjective addMaximize()
                                      throws IloException
See IloMPModeler.addMaximize()

Specified by:
addMaximize in interface IloMPModeler
Returns:
The new zero maximization objective.
IloException

addObjective

public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense)
                                       throws IloException
See IloMPModeler.addObjective(IloObjectiveSense)

Specified by:
addObjective in interface IloMPModeler
Parameters:
sense - The optimization sense of the new objective.
Returns:
The new zero objective.
IloException

addMinimize

public ilog.concert.IloObjective addMinimize(java.lang.String name)
                                      throws IloException
See IloMPModeler.addMinimize(String)

Specified by:
addMinimize in interface IloMPModeler
Parameters:
name - The name assigned to the new objective.
Returns:
The new zero minimization objective.
IloException

addMaximize

public ilog.concert.IloObjective addMaximize(java.lang.String name)
                                      throws IloException
See IloMPModeler.addMaximize(String)

Specified by:
addMaximize in interface IloMPModeler
Parameters:
name - The name assigned to the new objective.
Returns:
The new zero maximization objective.
IloException

addObjective

public ilog.concert.IloObjective addObjective(ilog.concert.IloObjectiveSense sense,
                                              java.lang.String name)
                                       throws IloException
See IloMPModeler.addObjective(IloObjectiveSense, String)

Specified by:
addObjective in interface IloMPModeler
Parameters:
sense - The optimization sense of the new objective.
name - The name assigned to the new objective.
Returns:
The new zero objective.
IloException

conversion

public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar var,
                                             ilog.concert.IloNumVarType type,
                                             java.lang.String name)
                                      throws IloException
See IloMPModeler.conversion(IloNumVar var, IloNumVarType type, String name)

Specified by:
conversion in interface IloMPModeler
Parameters:
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.
Returns:
The new IloConversion object.
IloException

conversion

public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar var,
                                             ilog.concert.IloNumVarType type)
                                      throws IloException
See IloMPModeler.conversion(IloNumVar var, IloNumVarType type)

Specified by:
conversion in interface IloMPModeler
Parameters:
var - The variable the type of which is to be converted.
type - The converted type for variable var.
Returns:
The new IloConversion object.
IloException

conversion

public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] ilovar,
                                             ilog.concert.IloNumVarType type,
                                             java.lang.String name)
                                      throws IloException
See IloMPModeler.conversion(IloNumVar[] ilovar, IloNumVarType type, String name)

Specified by:
conversion in interface IloMPModeler
Parameters:
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.
Returns:
The new IloConversion object.
IloException

conversion

public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] ilovar,
                                             ilog.concert.IloNumVarType type)
                                      throws IloException
See IloMPModeler.conversion(IloNumVar[] ilovar, IloNumVarType type)

Specified by:
conversion in interface IloMPModeler
Parameters:
ilovar - The array of variables the types of which are to be converted.
type - The converted type for all variables in var.
Returns:
The new IloConversion object.
IloException

conversion

public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] ilovar,
                                             ilog.concert.IloNumVarType[] type,
                                             java.lang.String name)
                                      throws IloException
See IloMPModeler.conversion(IloNumVar[] ilovar, IloNumVarType[] type, String name)

Specified by:
conversion in interface IloMPModeler
Parameters:
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.
Returns:
The new IloConversion object.
IloException

conversion

public ilog.concert.IloConversion conversion(ilog.concert.IloNumVar[] ilovar,
                                             ilog.concert.IloNumVarType[] type)
                                      throws IloException
See IloMPModeler.conversion(IloNumVar[] ilovar, IloNumVarType[] type)

Specified by:
conversion in interface IloMPModeler
Parameters:
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].
Returns:
The new IloConversion object.
IloException

addLPMatrix

public ilog.concert.IloLPMatrix addLPMatrix(java.lang.String name)
                                     throws IloException
See IloMPModeler.addLPMatrix(String name)

Specified by:
addLPMatrix in interface IloMPModeler
Parameters:
name - The name for the new IloLPMatrix object.
Returns:
The new IloLPMatrix object.
IloException

addLPMatrix

public ilog.concert.IloLPMatrix addLPMatrix()
                                     throws IloException
See IloMPModeler.addLPMatrix()

Specified by:
addLPMatrix in interface IloMPModeler
Returns:
The new IloLPMatrix object.
IloException

LPMatrix

public ilog.concert.IloLPMatrix LPMatrix(java.lang.String name)
                                  throws IloException
See IloMPModeler.LPMatrix(String name)

Specified by:
LPMatrix in interface IloMPModeler
Parameters:
name - The name for the new IloLPMatrix object.
Returns:
The new IloLPMatrix object.
IloException

LPMatrix

public ilog.concert.IloLPMatrix LPMatrix()
                                  throws IloException
See IloMPModeler.LPMatrix()

Specified by:
LPMatrix in interface IloMPModeler
Returns:
The new IloLPMatrix object.
IloException

addRange

public ilog.concert.IloRange addRange(double lb,
                                      ilog.concert.IloNumExpr expr,
                                      double ub,
                                      java.lang.String name)
                               throws IloException
See IloModeler.addRange(double lb, IloNumExpr expr, double ub, String name)

Specified by:
addRange in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint lb <= expr <= ub.
IloException

addRange

public ilog.concert.IloRange addRange(double lb,
                                      ilog.concert.IloNumExpr expr,
                                      double ub)
                               throws IloException
See IloModeler.addRange(double lb, IloNumExpr expr, double ub)

Specified by:
addRange in interface IloModeler
Parameters:
lb - Lower bound of the new IloRange constraint.
expr - Expression of the new IloRange constraint.
ub - Upper bound of the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint lb <= expr <= ub.
IloException

addRange

public ilog.concert.IloRange addRange(double lb,
                                      double ub,
                                      java.lang.String name)
                               throws IloException
See IloMPModeler.addRange(double lb, double ub, String name)

Specified by:
addRange in interface IloMPModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint lb <= 0 <= ub.
IloException

addRange

public ilog.concert.IloRange addRange(double lb,
                                      double ub)
                               throws IloException
See IloMPModeler.addRange(double lb, double ub)

Specified by:
addRange in interface IloMPModeler
Parameters:
lb - The lower bound of the new IloRange constraint.
ub - The upper bound of the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint lb <= 0 <= ub.
IloException

addEq

public ilog.concert.IloRange addEq(ilog.concert.IloNumExpr e,
                                   double v)
                            throws IloException
See IloModeler.addEq(IloNumExpr e, double v)

Specified by:
addEq in interface IloModeler
Parameters:
e - Expression of the new equality constraint.
v - Upper bound of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint expr == rhs.
IloException

addEq

public ilog.concert.IloRange addEq(ilog.concert.IloNumExpr e,
                                   double v,
                                   java.lang.String name)
                            throws IloException
See IloModeler.addEq(IloNumExpr e, double v, String name)

Specified by:
addEq in interface IloModeler
Parameters:
e - Expression of the new equality constraint.
v - Upper bound of the new equality constraint.
name - Name assigned to the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint expr == rhs.
IloException

addEq

public ilog.concert.IloConstraint addEq(ilog.concert.IloNumExpr e1,
                                        ilog.concert.IloNumExpr e2)
                                 throws IloException
See IloModeler.addEq(IloNumExpr e1, IloNumExpr e2)

Specified by:
addEq in interface IloModeler
Parameters:
e1 - Left-hand side expression of the new equality constraint.
e2 - Right-hand side expression of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 == e2.
IloException

addEq

public ilog.concert.IloConstraint addEq(ilog.concert.IloNumExpr e1,
                                        ilog.concert.IloNumExpr e2,
                                        java.lang.String name)
                                 throws IloException
See IloModeler.addEq(IloNumExpr e1, IloNumExpr e2, String name)

Specified by:
addEq in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint e1 == e2.
IloException

addEq

public ilog.concert.IloRange addEq(double v,
                                   ilog.concert.IloNumExpr e)
                            throws IloException
See IloModeler.addEq(double v, IloNumExpr e)

Specified by:
addEq in interface IloModeler
Parameters:
v - Value of the new equality constraint.
e - Expression of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint val == expr.
IloException

addEq

public ilog.concert.IloRange addEq(double v,
                                   ilog.concert.IloNumExpr e,
                                   java.lang.String name)
                            throws IloException
See IloModeler.addEq(double v, IloNumExpr e, String name)

Specified by:
addEq in interface IloModeler
Parameters:
v - Value of the new equality constraint.
e - Expression of the new equality constraint.
name - Name assigned to the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint val == expr.
IloException

addGe

public ilog.concert.IloRange addGe(ilog.concert.IloNumExpr e,
                                   double v)
                            throws IloException
See IloModeler.addGe(IloNumExpr e, double v)

Specified by:
addGe in interface IloModeler
Parameters:
e - Expression of the new greater-equal constraint.
v - Upper bound of the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint expr >= rhs.
IloException

addGe

public ilog.concert.IloRange addGe(ilog.concert.IloNumExpr e,
                                   double v,
                                   java.lang.String name)
                            throws IloException
See IloModeler.addGe(IloNumExpr e, double v, String name)

Specified by:
addGe in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint expr >= rhs.
IloException

addGe

public ilog.concert.IloConstraint addGe(ilog.concert.IloNumExpr e1,
                                        ilog.concert.IloNumExpr e2)
                                 throws IloException
See IloModeler.addGe(IloNumExpr e1, IloNumExpr e2)

Specified by:
addGe in interface IloModeler
Parameters:
e1 - Left-hand side expression of the new greater-equal constraint.
e2 - Right-hand side expression of the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 >= e2.
IloException

addGe

public ilog.concert.IloConstraint addGe(ilog.concert.IloNumExpr e1,
                                        ilog.concert.IloNumExpr e2,
                                        java.lang.String name)
                                 throws IloException
See IloModeler.addGe(IloNumExpr e1, IloNumExpr e2, String name)

Specified by:
addGe in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint e1 >= e2.
IloException

addGe

public ilog.concert.IloRange addGe(double v,
                                   ilog.concert.IloNumExpr e)
                            throws IloException
See IloModeler.addGe(double v, IloNumExpr e)

Specified by:
addGe in interface IloModeler
Parameters:
v - Value of the new greater-equal constraint.
e - Expression of the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint val >= expr.
IloException

addGe

public ilog.concert.IloRange addGe(double v,
                                   ilog.concert.IloNumExpr e,
                                   java.lang.String name)
                            throws IloException
See IloModeler.addGe(double v, IloNumExpr e, String name)

Specified by:
addGe in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint val >= expr.
IloException

addLe

public ilog.concert.IloRange addLe(ilog.concert.IloNumExpr e,
                                   double v)
                            throws IloException
See IloModeler.addLe(IloNumExpr e, double v)

Specified by:
addLe in interface IloModeler
Parameters:
e - Expression of the new less-equal constraint.
v - Upper bound of the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint expr <= rhs.
IloException

addLe

public ilog.concert.IloRange addLe(ilog.concert.IloNumExpr e,
                                   double v,
                                   java.lang.String name)
                            throws IloException
See IloModeler.addLe(IloNumExpr e, double v, String name)

Specified by:
addLe in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint expr <= rhs.
IloException

addLe

public ilog.concert.IloConstraint addLe(ilog.concert.IloNumExpr e1,
                                        ilog.concert.IloNumExpr e2)
                                 throws IloException
See IloModeler.addLe(IloNumExpr e1, IloNumExpr e2)

Specified by:
addLe in interface IloModeler
Parameters:
e1 - Left-hand side expression of the new less-equal constraint.
e2 - Right-hand side expression of the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 <= e2.
IloException

addLe

public ilog.concert.IloConstraint addLe(ilog.concert.IloNumExpr e1,
                                        ilog.concert.IloNumExpr e2,
                                        java.lang.String name)
                                 throws IloException
See IloModeler.addLe(IloNumExpr e1, IloNumExpr e2, String name)

Specified by:
addLe in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint e1 <= e2.
IloException

addLe

public ilog.concert.IloRange addLe(double v,
                                   ilog.concert.IloNumExpr e)
                            throws IloException
See IloModeler.addLe(double v, IloNumExpr e)

Specified by:
addLe in interface IloModeler
Parameters:
v - Value of the new less-equal constraint.
e - Expression of the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint val <= exp.
IloException

addLe

public ilog.concert.IloRange addLe(double v,
                                   ilog.concert.IloNumExpr e,
                                   java.lang.String name)
                            throws IloException
See IloModeler.addLe(double v, IloNumExpr e, String name)

Specified by:
addLe in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint val <= expr.
IloException

range

public ilog.concert.IloRange range(double lb,
                                   ilog.concert.IloNumExpr expr,
                                   double ub,
                                   java.lang.String name)
                            throws IloException
See IloModeler.range(double lb, IloNumExpr expr, double ub, String name)

Specified by:
range in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint lb <= expr <= ub.
IloException

range

public ilog.concert.IloRange range(double lb,
                                   ilog.concert.IloNumExpr expr,
                                   double ub)
                            throws IloException
See IloModeler.range(double lb, IloNumExpr expr, double ub)

Specified by:
range in interface IloModeler
Parameters:
lb - Lower bound of the new IloRange constraint.
expr - Expression of the new IloRange constraint.
ub - Upper bound of the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint lb <= expr <= ub.
IloException

range

public ilog.concert.IloRange range(double lb,
                                   double ub,
                                   java.lang.String name)
                            throws IloException
See IloMPModeler.range(double lb, double ub, String name)

Specified by:
range in interface IloMPModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint lb <= 0 <= ub.
IloException

range

public ilog.concert.IloRange range(double lb,
                                   double ub)
                            throws IloException
See IloMPModeler.range(double lb, double ub)

Specified by:
range in interface IloMPModeler
Parameters:
lb - The lower bound of the new IloRange constraint.
ub - The upper bound of the new IloRange constraint.
Returns:
A new IloRange object initialized to represent the constraint lb <= 0 <= ub.
IloException

eq

public ilog.concert.IloRange eq(ilog.concert.IloNumExpr e,
                                double v)
                         throws IloException
See IloModeler.eq(IloNumExpr e, double v)

Specified by:
eq in interface IloModeler
Parameters:
e - Expression of the new equality constraint.
v - Upper bound of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint expr == rhs.
IloException

eq

public ilog.concert.IloRange eq(ilog.concert.IloNumExpr e,
                                double v,
                                java.lang.String name)
                         throws IloException
See IloModeler.eq(IloNumExpr e, double v, String name)

Specified by:
eq in interface IloModeler
Parameters:
e - Expression of the new equality constraint.
v - Upper bound of the new equality constraint.
name - Name assigned to the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint expr == rhs.
IloException

eq

public ilog.concert.IloConstraint eq(ilog.concert.IloNumExpr e1,
                                     ilog.concert.IloNumExpr e2)
                              throws IloException
See IloModeler.eq(IloNumExpr e1, IloNumExpr e2)

Specified by:
eq in interface IloModeler
Parameters:
e1 - Left-hand side expression of the new equality constraint.
e2 - Right-hand side expression of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 == e2.
IloException

eq

public ilog.concert.IloConstraint eq(ilog.concert.IloNumExpr e1,
                                     ilog.concert.IloNumExpr e2,
                                     java.lang.String name)
                              throws IloException
See IloModeler.eq(IloNumExpr e1, IloNumExpr e2, String name)

Specified by:
eq in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint e1 == e2.
IloException

eq

public ilog.concert.IloRange eq(double v,
                                ilog.concert.IloNumExpr e)
                         throws IloException
See IloModeler.eq(double v, IloNumExpr e)

Specified by:
eq in interface IloModeler
Parameters:
v - Value of the new equality constraint.
e - Expression of the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint val == expr.
IloException

eq

public ilog.concert.IloRange eq(double v,
                                ilog.concert.IloNumExpr e,
                                java.lang.String name)
                         throws IloException
See IloModeler.eq(double v, IloNumExpr e, String name)

Specified by:
eq in interface IloModeler
Parameters:
v - Value of the new equality constraint.
e - Expression of the new equality constraint.
name - Name assigned to the new equality constraint.
Returns:
A new IloRange object initialized to represent the constraint val == expr.
IloException

ge

public ilog.concert.IloRange ge(ilog.concert.IloNumExpr e,
                                double v)
                         throws IloException
See IloModeler.ge(IloNumExpr e, double v)

Specified by:
ge in interface IloModeler
Parameters:
e - Expression of the new greater-equal constraint.
v - Upper bound of the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint expr >= rhs.
IloException

ge

public ilog.concert.IloRange ge(ilog.concert.IloNumExpr e,
                                double v,
                                java.lang.String name)
                         throws IloException
See IloModeler.ge(IloNumExpr e, double v, String name)

Specified by:
ge in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint expr >= rhs.
IloException

ge

public ilog.concert.IloConstraint ge(ilog.concert.IloNumExpr e1,
                                     ilog.concert.IloNumExpr e2)
                              throws IloException
See IloModeler.ge(IloNumExpr e1, IloNumExpr e2)

Specified by:
ge in interface IloModeler
Parameters:
e1 - Left-hand side expression of the new greater-equal constraint.
e2 - Right-hand side expression of the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 >= e2.
IloException

ge

public ilog.concert.IloConstraint ge(ilog.concert.IloNumExpr e1,
                                     ilog.concert.IloNumExpr e2,
                                     java.lang.String name)
                              throws IloException
See IloModeler.ge(IloNumExpr e1, IloNumExpr e2, String name)

Specified by:
ge in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint e1 >= e2.
IloException

ge

public ilog.concert.IloRange ge(double v,
                                ilog.concert.IloNumExpr e)
                         throws IloException
See IloModeler.ge(double v, IloNumExpr e)

Specified by:
ge in interface IloModeler
Parameters:
v - Value of the new greater-equal constraint.
e - Expression of the new greater-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint val >= expr.
IloException

ge

public ilog.concert.IloRange ge(double v,
                                ilog.concert.IloNumExpr e,
                                java.lang.String name)
                         throws IloException
See IloModeler.ge(double v, IloNumExpr e, String name)

Specified by:
ge in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint val >= expr.
IloException

le

public ilog.concert.IloRange le(ilog.concert.IloNumExpr e,
                                double v)
                         throws IloException
See IloModeler.le(IloNumExpr e, double v)

Specified by:
le in interface IloModeler
Parameters:
e - Expression of the new less-equal constraint.
v - Upper bound of the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint expr <= rhs.
IloException

le

public ilog.concert.IloRange le(ilog.concert.IloNumExpr e,
                                double v,
                                java.lang.String name)
                         throws IloException
See IloModeler.le(IloNumExpr e, double v, String name)

Specified by:
le in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint expr <= rhs.
IloException

le

public ilog.concert.IloConstraint le(ilog.concert.IloNumExpr e1,
                                     ilog.concert.IloNumExpr e2)
                              throws IloException
See IloModeler.le(IloNumExpr e1, IloNumExpr e2)

Specified by:
le in interface IloModeler
Parameters:
e1 - Left-hand side expression of the new less-equal constraint.
e2 - Right-hand side expression of the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint e1 <= e2.
IloException

le

public ilog.concert.IloConstraint le(ilog.concert.IloNumExpr e1,
                                     ilog.concert.IloNumExpr e2,
                                     java.lang.String name)
                              throws IloException
See IloModeler.le(IloNumExpr e1, IloNumExpr e2, String name)

Specified by:
le in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint e1 <= e2.
IloException

le

public ilog.concert.IloRange le(double v,
                                ilog.concert.IloNumExpr e)
                         throws IloException
See IloModeler.le(double v, IloNumExpr e)

Specified by:
le in interface IloModeler
Parameters:
v - Value of the new less-equal constraint.
e - Expression of the new less-equal constraint.
Returns:
A new IloRange object initialized to represent the constraint val <= expr.
IloException

le

public ilog.concert.IloRange le(double v,
                                ilog.concert.IloNumExpr e,
                                java.lang.String name)
                         throws IloException
See IloModeler.le(double v, IloNumExpr e, String name)

Specified by:
le in interface IloModeler
Parameters:
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.
Returns:
A new IloRange object initialized to represent the constraint val <= expr.
IloException

addToExpr

public void addToExpr(ilog.concert.IloRange rng,
                      ilog.concert.IloNumExpr expr)
               throws IloException
See IloMPModeler.addToExpr(IloRange rng, IloNumExpr expr)

Specified by:
addToExpr in interface IloMPModeler
Parameters:
rng - The range constraint to modify.
expr - The expression to add.
IloException

setLinearCoef

public void setLinearCoef(ilog.concert.IloRange rng,
                          double val,
                          ilog.concert.IloNumVar var)
                   throws IloException
See IloMPModeler.setLinearCoef(IloRange rng, double val, IloNumVar var)

Specified by:
setLinearCoef in interface IloMPModeler
Parameters:
rng - The range constraint to modify.
val - The coefficient to set.
var - The variable for which to set the coefficient.
IloException

setLinearCoef

public void setLinearCoef(ilog.concert.IloRange rng,
                          ilog.concert.IloNumVar var,
                          double val)
                   throws IloException
See IloMPModeler.setLinearCoef(IloRange rng, IloNumVar var, double val)

Specified by:
setLinearCoef in interface IloMPModeler
Parameters:
rng - The range constraint to modify.
val - The coefficient to set.
var - The variable for which to set the coefficient.
IloException

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloRange rng,
                           double[] val,
                           ilog.concert.IloNumVar[] var)
                    throws IloException
See IloMPModeler.setLinearCoefs(IloRange rng, double[] val, IloNumVar[] var)

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
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

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloRange rng,
                           ilog.concert.IloNumVar[] var,
                           double[] val)
                    throws IloException
See IloMPModeler.setLinearCoefs(IloRange rng, IloNumVar[] var, double[] val)

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
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

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloRange rng,
                           double[] val,
                           ilog.concert.IloNumVar[] var,
                           int start,
                           int num)
                    throws IloException
See IloMPModeler.setLinearCoefs(IloRange rng, double[] val, IloNumVar[] var, int start, int num)

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
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

setLinearCoefs

public void setLinearCoefs(ilog.concert.IloRange rng,
                           ilog.concert.IloNumVar[] var,
                           double[] val,
                           int start,
                           int num)
                    throws IloException
See IloMPModeler.setLinearCoefs(IloRange rng, IloNumVar[] var, double[] val, int start, int num)

Specified by:
setLinearCoefs in interface IloMPModeler
Parameters:
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

addSOS1

public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var,
                                    double[] val)
                             throws IloException
See IloMPModeler.addSOS1(IloNumVar[] var, double[] val)

Specified by:
addSOS1 in interface IloMPModeler
Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
Returns:
The new IloSOS1 object.
IloException

addSOS1

public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var,
                                    double[] val,
                                    int start,
                                    int num)
                             throws IloException
See IloMPModeler.addSOS1(IloNumVar[] var, double[] val, int start, int num)

Specified by:
addSOS1 in interface IloMPModeler
Parameters:
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.
Returns:
The new IloSOS1 object.
IloException

addSOS1

public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var,
                                    double[] val,
                                    java.lang.String name)
                             throws IloException
See IloMPModeler.addSOS1(IloNumVar[] var, double[] val, String name)

Specified by:
addSOS1 in interface IloMPModeler
Parameters:
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.
Returns:
The new IloSOS1 object.
IloException

addSOS1

public ilog.concert.IloSOS1 addSOS1(ilog.concert.IloNumVar[] var,
                                    double[] val,
                                    int start,
                                    int num,
                                    java.lang.String name)
                             throws IloException
See IloMPModeler.addSOS1(IloNumVar[] var, double[] val, int start, int num, String name)

Specified by:
addSOS1 in interface IloMPModeler
Parameters:
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.
Returns:
The new IloSOS1 object.
IloException

SOS1

public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var,
                                 double[] val)
                          throws IloException
See IloMPModeler.SOS1(IloNumVar[] var, double[] val)

Specified by:
SOS1 in interface IloMPModeler
Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
Returns:
The new IloSOS1 object.
IloException

SOS1

public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var,
                                 double[] val,
                                 int start,
                                 int num)
                          throws IloException
See IloMPModeler.SOS1(IloNumVar[] var, double[] val, int start, int num)

Specified by:
SOS1 in interface IloMPModeler
Parameters:
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.
Returns:
The new IloSOS1 object.
IloException

SOS1

public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var,
                                 double[] val,
                                 java.lang.String name)
                          throws IloException
See IloMPModeler.SOS1(IloNumVar[] var, double[] val, String name)

Specified by:
SOS1 in interface IloMPModeler
Parameters:
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.
Returns:
The new IloSOS1 object.
IloException

SOS1

public ilog.concert.IloSOS1 SOS1(ilog.concert.IloNumVar[] var,
                                 double[] val,
                                 int start,
                                 int num,
                                 java.lang.String name)
                          throws IloException
See IloMPModeler.SOS1(IloNumVar[] var, double[] val, int start, int num, String name)

Specified by:
SOS1 in interface IloMPModeler
Parameters:
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.
Returns:
The new IloSOS1 object.
IloException

addSOS2

public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var,
                                    double[] val)
                             throws IloException
See IloMPModeler.addSOS2(IloNumVar[] var, double[] val)

Specified by:
addSOS2 in interface IloMPModeler
Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
Returns:
The new IloSOS2 object.
IloException

addSOS2

public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var,
                                    double[] val,
                                    int start,
                                    int num)
                             throws IloException
See IloMPModeler.addSOS2(IloNumVar[] var, double[] val, int start, int num)

Specified by:
addSOS2 in interface IloMPModeler
Parameters:
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.
Returns:
The new IloSOS2 object.
IloException

addSOS2

public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var,
                                    double[] val,
                                    java.lang.String name)
                             throws IloException
See IloMPModeler.addSOS2(IloNumVar[] var, double[] val, String name)

Specified by:
addSOS2 in interface IloMPModeler
Parameters:
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.
Returns:
The new IloSOS2 object.
IloException

addSOS2

public ilog.concert.IloSOS2 addSOS2(ilog.concert.IloNumVar[] var,
                                    double[] val,
                                    int start,
                                    int num,
                                    java.lang.String name)
                             throws IloException
See IloMPModeler.addSOS2(IloNumVar[] var, double[] val, int start, int num, String name)

Specified by:
addSOS2 in interface IloMPModeler
Parameters:
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.
Returns:
The new IloSOS2 object.
IloException

SOS2

public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var,
                                 double[] val)
                          throws IloException
See IloMPModeler.SOS2(IloNumVar[] var, double[] val)

Specified by:
SOS2 in interface IloMPModeler
Parameters:
var - The variables in the new SOS.
val - The weight values for the variables in the new SOS.
Returns:
The new IloSOS2 object.
IloException

SOS2

public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var,
                                 double[] val,
                                 int start,
                                 int num)
                          throws IloException
See IloMPModeler.SOS2(IloNumVar[] var, double[] val, int start, int num)

Specified by:
SOS2 in interface IloMPModeler
Parameters:
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.
Returns:
The new IloSOS2 object.
IloException

SOS2

public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var,
                                 double[] val,
                                 java.lang.String name)
                          throws IloException
See IloMPModeler.SOS2(IloNumVar[] var, double[] val, String name)

Specified by:
SOS2 in interface IloMPModeler
Parameters:
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.
Returns:
The new IloSOS2 object.
IloException

SOS2

public ilog.concert.IloSOS2 SOS2(ilog.concert.IloNumVar[] var,
                                 double[] val,
                                 int start,
                                 int num,
                                 java.lang.String name)
                          throws IloException
See IloMPModeler.SOS2(IloNumVar[] var, double[] val, int start, int num, String name)

Specified by:
SOS2 in interface IloMPModeler
Parameters:
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.
Returns:
The new IloSOS2 object.
IloException

delete

public void delete(ilog.concert.IloCopyable obj)
            throws IloException
See IloMPModeler.delete(IloCopyable obj)

Specified by:
delete in interface IloMPModeler
Parameters:
obj - The modeling object to be deleted from the invoking IloModel.
IloException

column

public ilog.concert.IloColumn column(ilog.concert.IloRange rng,
                                     double val)
                              throws IloException
See IloMPModeler.column(IloRange rng, double val)

Specified by:
column in interface IloMPModeler
Parameters:
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.
Returns:
The new IloColumn object.
IloException

columnArray

public ilog.concert.IloColumnArray columnArray(ilog.concert.IloRange rng,
                                               double[] val)
                                        throws IloException
See IloMPModeler.columnArray(IloRange rng, double[] val)

Specified by:
columnArray in interface IloMPModeler
Parameters:
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.
Returns:
The new IloColumnArray object.
IloException

columnArray

public ilog.concert.IloColumnArray columnArray(ilog.concert.IloRange rng,
                                               double[] val,
                                               int start,
                                               int num)
                                        throws IloException
See IloMPModeler.columnArray(IloRange rng, double[] val, int start, int num)

Specified by:
columnArray in interface IloMPModeler
Parameters:
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.
Returns:
The new IloColumnArray object.
IloException

column

public ilog.concert.IloColumn column(ilog.concert.IloObjective obj,
                                     double val)
                              throws IloException
See IloMPModeler.column(IloObjective obj, double val)

Specified by:
column in interface IloMPModeler
Parameters:
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.
Returns:
The new IloColumn object.
IloException

columnArray

public ilog.concert.IloColumnArray columnArray(ilog.concert.IloObjective obj,
                                               double[] val)
                                        throws IloException
See IloMPModeler.columnArray(IloObjective obj, double[] val)

Specified by:
columnArray in interface IloMPModeler
Parameters:
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.
Returns:
The new IloColumnArray object.
IloException

columnArray

public ilog.concert.IloColumnArray columnArray(ilog.concert.IloObjective obj,
                                               double[] val,
                                               int start,
                                               int num)
                                        throws IloException
See IloMPModeler.columnArray(IloObjective obj, double[] val, int start, int num)

Specified by:
columnArray in interface IloMPModeler
Parameters:
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.
Returns:
The new IloColumnArray object.
IloException

column

public ilog.concert.IloColumn column(ilog.concert.IloLPMatrix lp)
                              throws IloException
See IloMPModeler.column(IloLPMatrix lp)

Specified by:
column in interface IloMPModeler
Parameters:
lp - The IloLPMatrix object for which to create the new column.
Returns:
The new IloColumn object.
IloException

column

public ilog.concert.IloColumn column(ilog.concert.IloLPMatrix lp,
                                     int[] ind,
                                     double[] val)
                              throws IloException
See IloMPModeler.column(IloLPMatrix lp, int[] ind, double[] val)

Specified by:
column in interface IloMPModeler
Parameters:
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.
Returns:
An IloColumn object suitable for creating a new column in lp with nonzeros as specified by parameters ind and val.
IloException

column

public ilog.concert.IloColumn column(ilog.concert.IloLPMatrix lp,
                                     int[] ind,
                                     double[] val,
                                     int start,
                                     int num)
                              throws IloException
See IloMPModeler.column(IloLPMatrix lp, int[] ind, double[] val, int start, int num)

Specified by:
column in interface IloMPModeler
Parameters:
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.
Returns:
An IloColumn object suitable for creating a new column in lp with nonzeros as specified in parameters ind and val.
IloException

columnArray

public ilog.concert.IloColumnArray columnArray(ilog.concert.IloLPMatrix lp,
                                               int num,
                                               int[][] ind,
                                               double[][] val)
                                        throws IloException
See IloMPModeler.columnArray(IloLPMatrix lp, int num, int[][] ind, double[][] val)

Specified by:
columnArray in interface IloMPModeler
Parameters:
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.
Returns:
An IloColumnArray object suitable for creating new columns in the LP matrix lp as specified by parameters ind and val.
IloException

columnArray

public ilog.concert.IloColumnArray columnArray(ilog.concert.IloLPMatrix lp,
                                               int num)
                                        throws IloException
See IloMPModeler.columnArray(IloLPMatrix lp, int num)

Specified by:
columnArray in interface IloMPModeler
Parameters:
lp - The IloLPMatrix object for which to create the new column.
num - The size of the new column array term to create.
Returns:
An IloColumnArray object suitable for creating num empty columns to the IloLPMatrix.
IloException

delete

public void delete(ilog.concert.IloCopyable[] obj)
            throws IloException
See IloMPModeler.delete(IloCopyable[] obj)

Specified by:
delete in interface IloMPModeler
Parameters:
obj - The array of modeling objects to be deleted from the invoking IloModel
IloException

delete

public void delete(ilog.concert.IloCopyable[] obj,
                   int beg,
                   int num)
            throws IloException
See IloMPModeler.delete(IloCopyable[] obj, int beg, int num)

Specified by:
delete in interface IloMPModeler
Parameters:
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

scalProd

public ilog.concert.IloLinearNumExpr scalProd(int[] vals,
                                              ilog.concert.IloNumVar[] vars,
                                              int start,
                                              int num)
                                       throws IloException
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.

Parameters:
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.
Returns:
An expression representing the scalar product of the specified values and variables.
IloException

scalProd

public ilog.concert.IloLinearNumExpr scalProd(ilog.concert.IloNumVar[] vars,
                                              int[] vals,
                                              int start,
                                              int num)
                                       throws IloException
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.

Parameters:
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.
Returns:
An expression representing the scalar product of the specified values and variables.
IloException

linearIntExpr

public ilog.concert.IloLinearIntExpr linearIntExpr()
                                            throws IloException
See IloModeler.linearIntExpr()

Specified by:
linearIntExpr in interface IloModeler
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr[] expr,
                                   int start,
                                   int num)
                            throws IloException
See IloModeler.sum(IloNumExpr[] expr, int start, int num)

Specified by:
sum in interface IloModeler
Parameters:
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.
Returns:
An expression representing the sum of the specified expressions.
IloException

sum

public ilog.concert.IloNumExpr sum(ilog.concert.IloNumExpr[] expr)
                            throws IloException
See IloModeler.sum(IloNumExpr[] expr)

Specified by:
sum in interface IloModeler
Parameters:
expr - An array containing the expressions to be summed.
Returns:
An expression representing the sum of the specified expressions.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr[] expr,
                                   int start,
                                   int num)
                            throws IloException
See IloModeler.sum(IloIntExpr[] expr, int start, int num)

Specified by:
sum in interface IloModeler
Parameters:
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.
Returns:
An integer expression representing the sum of the specified expressions.
IloException

sum

public ilog.concert.IloIntExpr sum(ilog.concert.IloIntExpr[] expr)
                            throws IloException
See IloModeler.sum(IloIntExpr[] expr)

Specified by:
sum in interface IloModeler
Parameters:
expr - An array containing the expressions to be summed.
Returns:
An integer expression representing the sum of the specified expressions.
IloException

addUserCut

public ilog.concert.IloConstraint addUserCut(ilog.concert.IloConstraint cut)
                                      throws IloException
This is an advanced method.

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.

Parameters:
cut - The user cut to be added. The cut must be linear.
Returns:
The added user cut.
IloException

addUserCuts

public ilog.concert.IloConstraint[] addUserCuts(ilog.concert.IloConstraint[] cuts)
                                         throws IloException
This is an advanced method.

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.

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.

Parameters:
cuts - An array of user cuts to be added. All cuts must be linear.
Returns:
The array of user cuts that have been added.
IloException

addUserCuts

public ilog.concert.IloConstraint[] addUserCuts(ilog.concert.IloConstraint[] cuts,
                                                int start,
                                                int num)
                                         throws IloException
This is an advanced method.

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.

Parameters:
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.
Returns:
The array cuts containing the user cuts that have been added.
IloException

clearUserCuts

public void clearUserCuts()
                   throws IloException
This is an advanced method.

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

addLazyConstraint

public ilog.concert.IloConstraint addLazyConstraint(ilog.concert.IloConstraint cut)
                                             throws IloException
This is an advanced method.

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.

Parameters:
cut - The constraint to be added as a lazy constraint. The constraint must be linear.
Returns:
The constraint added as a lazy constraint.
IloException

addLazyConstraints

public ilog.concert.IloConstraint[] addLazyConstraints(ilog.concert.IloConstraint[] cut)
                                                throws IloException
This is an advanced method.

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.

Parameters:
cut - The array of constraints to be added as lazy constraints. All constraints must be linear.
Returns:
The array of constraints be added as lazy constraints.
IloException

addLazyConstraints

public ilog.concert.IloConstraint[] addLazyConstraints(ilog.concert.IloConstraint[] cut,
                                                       int start,
                                                       int num)
                                                throws IloException
This is an advanced method.

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.

Parameters:
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.
Returns:
An array containing the constraints added as lazy constraints. This is the same array as cut.
IloException

clearLazyConstraints

public void clearLazyConstraints()
                          throws IloException
This is an advanced method.

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

addCut

public ilog.concert.IloConstraint addCut(ilog.concert.IloConstraint cut)
                                  throws IloException
Adds the constraint 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.

Parameters:
cut - The constraint to add as a cut. It must be linear.
Returns:
The constraint added as a cut.
IloException

addCuts

public ilog.concert.IloConstraint[] addCuts(ilog.concert.IloConstraint[] cut)
                                     throws IloException
Adds the constraints given in 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.

Parameters:
cut - An array of constraints to be added as a cut.
Returns:
The array of constraints added as a cut.
IloException

addCuts

public ilog.concert.IloConstraint[] addCuts(ilog.concert.IloConstraint[] cut,
                                            int start,
                                            int num)
                                     throws IloException
Adds 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.

Parameters:
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.
Returns:
The array containing the constraints added as a cuts. This is array cut.
IloException

clearCuts

public void clearCuts()
               throws IloException
Deletes all user cuts added to the invoking IloCplex object with the methods addCut and addCuts.

IloException

exportModel

public void exportModel(java.lang.String name)
                 throws IloException
Writes the active model to a file. The file format is determined by the extension of the filename. The following extensions are recognized: If no name has been assigned to a variable or range (that is, 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.

Parameters:
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

importModel

public void importModel(java.lang.String name)
                 throws IloException
Reads a model into the active model. The format of the file is determined by the extension of the filename. The following extensions are recognized: When reading a file, the existing active model is first cleaned out and then new modeling objects, as required by the input file, are added to it. In particular, one 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.

Parameters:
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

clearModel

public void clearModel()
                throws IloException
Removes all modeling objects from the active model. The result is an empty model.

IloException

getNcols

public int getNcols()
Returns the number of columns in the matrix representation of the active model. Note that the result may be greater than the number of variables in the active model, since some modeling objects may require more than one matrix column.

Returns:
The number of columns of the matrix representation of the active model.

getNrows

public int getNrows()
Returns the number of rows of the matrix representation of the active model. Note that the result may be different than the number of constraints in the active model, as some modeling objects may require more than one matrix row and quadratic constraints are not accounted for as rows.

Returns:
The number of rows of the matrix representation of the active model.

getNQCs

public int getNQCs()
Returns the number of quadratic constraints in the active model. Note that the result may be different from the number of constraints in the active model, since linear constraints are counted separately.

Returns:
The number of rows of the matrix representation of the active model.

getNSOS1

public int getNSOS1()
Returns the number of SOSs of type 1 in the active model.

Returns:
The number of SOSs of type 1 in the active model.

getNSOS2

public int getNSOS2()
Returns the number of SOSs of type 2 in the active model.

Returns:
The number of SOSs of type 2 in the active model.

getNSOSs

public int getNSOSs()
Returns the number of SOSs of both types, 1 and 2 in the active model.

Returns:
The number of SOSs in the active model.

getNNZs

public int getNNZs()
Returns the number of nonzero elements in the matrix representation of the active model.

Returns:
The number of nonzero elements in the matrix representation of the active model.

getNintVars

public int getNintVars()
Returns the number of integer variables in the matrix representation of the active model. Note that the result is not necessarily equal to the number of integer variables in the active model, as some mapping of modeling objects may require the introduction of added matrix columns.

Returns:
The number of integer variables in the matrix representation of the active model.

getNbinVars

public int getNbinVars()
Returns the number of binary (or Boolean) variables in the matrix representation of the active model. Note that the result is not necessarily equal to the number of Boolean variables in the active model, as some mapping of modeling objects may require the introduction of added matrix columns.

Returns:
The number of binary variables in the matrix representation of the active model.

getNsemiContVars

public int getNsemiContVars()
Returns the number of semi-continuous variables in the matrix representation of the active model.

Returns:
The number of semi-continuous variables in the matrix representation of the active model.

getNsemiIntVars

public int getNsemiIntVars()
Returns the number of semi-integer variables in the matrix representation of the active model.

Returns:
The number of semi-integer variables in the matrix representation of the active model.

isMIP

public boolean isMIP()
Returns true if the active model is a MIP.

Returns:
true if the active model is a MIP.

isQO

public boolean isQO()
Returns true if the active model has a quadratic objective function.

Returns:
true if the active model has a quadratic objective function.

isQC

public boolean isQC()
Returns 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).

Returns:
true if the active model has quadratic constraints.

LPMatrixIterator

public java.util.Iterator LPMatrixIterator()
Returns an iterator over all IloLPMatrix objects in the active model.

Returns:
An iterator over all IloLPMatrix objects in the active model.

rangeIterator

public java.util.Iterator rangeIterator()
Returns an iterator over all 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.

Returns:
An iterator over all IloRange objects in the active model.

conversionIterator

public java.util.Iterator conversionIterator()
Returns an iterator over all IloConversion objects in the active model.

Returns:
An iterator over all IloConversion objects in the active model.

SOS1iterator

public java.util.Iterator SOS1iterator()
Returns an iterator over all IloSOS1 objects in the active model.

Returns:
An iterator over all IloSOS1 objects in the active model.

SOS2iterator

public java.util.Iterator SOS2iterator()
Returns an iterator over all IloSOS2 objects in the active model.

Returns:
An iterator over all IloSOS2 objects in the active model.

getObjective

public ilog.concert.IloObjective getObjective()
Returns the IloObjective object of the active model, or null if no IloObjective object is currently in the active model.

Returns:
The IloObjective object in the active model, or null if there is no IloObjective.

getStatus

public IloCplex.Status getStatus()
                          throws IloException
Returns the solution status of the active model.

Returns:
The solution status of the active model.
IloException
See Also:
IloCplex.Status

isPrimalFeasible

public boolean isPrimalFeasible()
                         throws IloException
Returns 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

isDualFeasible

public boolean isDualFeasible()
                       throws IloException
Returns 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

setParam

public void setParam(IloCplex.IntParam which,
                     int val)
              throws IloException
Sets an integer parameter to value val.

Parameters:
which - The identifier of the parameter to set.
val - The new value for the integer parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getParam

public int getParam(IloCplex.IntParam which)
             throws IloException
Returns the current value of an integer parameter.

Parameters:
which - The identifier of the integer parameter to be queried.
Returns:
The current value of the integer parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getMin

public int getMin(IloCplex.IntParam which)
           throws IloException
Returns the minimum value allowed for an integer parameter.

Parameters:
which - The identifier of the integer parameter to be queried.
Returns:
The minimum allowed value for the integer parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getMax

public int getMax(IloCplex.IntParam which)
           throws IloException
Returns the maximum allowed value for an integer parameter.

Parameters:
which - The identifier of the integer parameter to be queried.
Returns:
The maximum allowed value for the integer parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getDefault

public int getDefault(IloCplex.IntParam which)
               throws IloException
Returns the default value of an integer parameter.

Parameters:
which - The identifier of the integer parameter to be queried.
Returns:
The default value of the integer parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

setParam

public void setParam(IloCplex.BooleanParam which,
                     boolean val)
              throws IloException
Sets a Boolean parameter to value val.

Parameters:
which - The identifier of the Boolean parameter to be set.
val - The new value for the Boolean parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getParam

public boolean getParam(IloCplex.BooleanParam which)
                 throws IloException
Returns the current value of a Boolean parameter.

Parameters:
which - The identifier of the Boolean parameter to be queried.
Returns:
The current value of the Boolean parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getDefault

public boolean getDefault(IloCplex.BooleanParam which)
                   throws IloException
Returns the default value of a Boolean parameter.

Parameters:
which - The identifier of the Boolean parameter to be queried.
Returns:
The default value of the Boolean parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

setParam

public void setParam(IloCplex.DoubleParam which,
                     double val)
              throws IloException
Sets a double parameter to value val.

Parameters:
which - The identifier of the double parameter to be set.
val - The new value for the double parameter
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getParam

public double getParam(IloCplex.DoubleParam which)
                throws IloException
Returns the current value of a double parameter.

Parameters:
which - The identifier of the double parameter to be queried.
Returns:
The current value of the double parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getMin

public double getMin(IloCplex.DoubleParam which)
              throws IloException
Returns the minimum value allowed for a double parameter.

Parameters:
which - The identifier of the double parameter to be queried.
Returns:
The minimum allowed value for the queried double parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getMax

public double getMax(IloCplex.DoubleParam which)
              throws IloException
Returns the maximum allowed value for a double parameter.

Parameters:
which - The identifier of the double parameter to be queried.
Returns:
The maximum allowed value for the queried double parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getDefault

public double getDefault(IloCplex.DoubleParam which)
                  throws IloException
Returns the default value of a double parameter.

Parameters:
which - The identifier of the double parameter to be queried.
Returns:
The default value of the queried double parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

setParam

public void setParam(IloCplex.StringParam which,
                     java.lang.String val)
              throws IloException
Sets a string parameter to value val.

Parameters:
which - The identifier of the string parameter to set.
val - The new value for the string parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getParam

public java.lang.String getParam(IloCplex.StringParam which)
                          throws IloException
Returns the current value of a string parameter.

Parameters:
which - The identifier of the string parameter to be queried.
Returns:
The current value of the string parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getDefault

public java.lang.String getDefault(IloCplex.StringParam which)
                            throws IloException
Returns the default value of a string parameter.

Parameters:
which - The identifier of the string parameter to be queried.
Returns:
The default value of the string parameter.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

setDefaults

public void setDefaults()
                 throws IloException
Resets all parameters to their default values.

Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getVersion

public java.lang.String getVersion()
                            throws IloException
Returns a string that indicates the version of CPLEX.

Returns:
A string that indicates the version of CPLEX.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

setDeleteMode

public void setDeleteMode(IloCplex.DeleteMode mode)
Sets the delete mode. The delete mode in the invoking IloCplex object is set to mode.

Parameters:
mode - The delete mode to be set, IloCplex.DeleteMode.FixBasis or IloCplex.DeleteMode.LeaveBasis.

getDeleteMode

public IloCplex.DeleteMode getDeleteMode()
Returns the current delete mode of the invoking IloCplex object.

Returns:
The current delete mode of the invoking IloCplex object.

getCplexStatus

public IloCplex.CplexStatus getCplexStatus()
                                    throws IloException
Returns the status of the IloCplex algorithm. The status of IloCplex.CplexStatus provides more information about the status of the optimizer.

Returns:
The IloCplex.CplexStatus status.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getCplexSubStatus

public IloCplex.CplexStatus getCplexSubStatus()
                                       throws IloException
Returns the 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.

Returns:
The IloCplex.CplexStatus status of the last node that has been solved when solving a MIP.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getAlgorithm

public int getAlgorithm()
                 throws IloException
Returns the algorithm that was used to generate the current solution.

Returns:
The algorithm that was used to generate the current solution.
IloException

getSubAlgorithm

public int getSubAlgorithm()
                    throws IloException
Returns the algorithm that was used to generate the solution of the last branch-and-cut node solved during a MIP solve.

Returns:
The algorithm that was used to generate the solution of the last branch-and-cut node solved.
IloException

getObjValue

public double getObjValue()
                   throws IloException
Returns the objective value of the current solution.

Returns:
The objective value of the current solution.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getBestObjValue

public double getBestObjValue()
                       throws IloException
This method returns a bound on the optimal solution value of the active problem. When a model has been solved to optimality, this value matches the optimal solution value. If a MIP optimization is terminated before optimality has been proven, this value is computed for a minimization (maximization) problem as the minimum (maximum) objective function value of all remaining unexplored nodes.

Returns:
A bound on the optimal solution value.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getCutoff

public double getCutoff()
                 throws IloException
Returns the cutoff for the objective value when nodes are being solved during branch-and-cut search. This value is typically computed from the objective value of an incumbent solution and the optimality gap. In the case of a minimization problem, for example, if the objective value of a node exceeds the cutoff value, the node can be pruned without the need to solve the node to optimality.

Returns:
The objective value cutoff.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getValues

public double[] getValues(ilog.concert.IloLPMatrix matrix)
                   throws IloCplex.UnknownObjectException,
                          IloException
Returns the solution vector for the columns of an LP matrix.

Parameters:
matrix - The LP matrix for which to query the solution values. This LP matrix must be in the active model.
Returns:
The solution vector for columns of an LP matrix. If x is the array returned by this method, x[j] will be the solution value for the variable corresponding to column j of matrix.
Throws:
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.

getValues

public double[] getValues(ilog.concert.IloLPMatrix matrix,
                          int start,
                          int num)
                   throws IloCplex.UnknownObjectException,
                          IloException
Returns the solution vector for a range of columns of an LP matrix.

Parameters:
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.
Returns:
The solution vector for the specified columns of an LP matrix. If 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.
Throws:
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.

getValue

public double getValue(ilog.concert.IloNumVar var)
                throws IloCplex.UnknownObjectException,
                       IloException
Returns the solution value for a variable.

Parameters:
var - The variable whose value is being queried. This variable must be in the active model.
Returns:
The solution value for the variable var.
Throws:
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.

getValues

public double[] getValues(ilog.concert.IloNumVar[] var)
                   throws IloCplex.UnknownObjectException,
                          IloException
Returns solution values for an array of variables.

Parameters:
var - An array of variables whose solution values are being queried. All variables must be in the active model.
Returns:
The solution values for the variables in var. If x is the array returned by this method, x[j] will be the solution value for the variable var[j].
Throws:
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.

getValues

public double[] getValues(ilog.concert.IloNumVar[] var,
                          int start,
                          int num)
                   throws IloCplex.UnknownObjectException,
                          IloException
Returns solution values for a set of variables.

Parameters:
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.
Returns:
The solution values for the specified variables. If x is the array returned by this method, x[j] will be the solution value for the variable var[j+start].
Throws:
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.

getReducedCosts

public double[] getReducedCosts(ilog.concert.IloLPMatrix matrix)
                         throws IloCplex.UnknownObjectException,
                                IloException
Returns reduced costs for the variables corresponding to the columns of an LP matrix.

Parameters:
matrix - The LP matrix for which to query the reduced costs. This LP matrix must be in the active model.
Returns:
An array containing the reduced costs for the variables corresponding to the columns of 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.
Throws:
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.

getReducedCosts

public double[] getReducedCosts(ilog.concert.IloLPMatrix matrix,
                                int start,
                                int num)
                         throws IloCplex.UnknownObjectException,
                                IloException
Returns reduced costs for the variables corresponding to a range of columns of LP matrix.

Parameters:
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.
Returns:
The reduced costs for the specified columns of LP matrix. If 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.
Throws:
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.

getReducedCost

public double getReducedCost(ilog.concert.IloNumVar ivar)
                      throws IloCplex.UnknownObjectException,
                             IloException
Returns the reduced cost for a variable.

Returns:
The reduced cost for variable var.
Throws:
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.

getReducedCosts

public double[] getReducedCosts(ilog.concert.IloNumVar[] var)
                         throws IloCplex.UnknownObjectException,
                                IloException
Returns reduced costs for an array of variables.

Parameters:
var - The array of variables whose reduced costs are being queried. These variables must be in the active model.
Returns:
An array containing the reduced cost values for the variables in var. If dj is the array returned by this method, dj[j] will be the reduced cost for variable var[j].
Throws:
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.

getReducedCosts

public double[] getReducedCosts(ilog.concert.IloNumVar[] var,
                                int start,
                                int num)
                         throws IloCplex.UnknownObjectException,
                                IloException
Returns reduced costs for a set of variables.

Parameters:
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.
Returns:
The reduced costs for the specified variables. If dj is the array returned by this method, dj[j] will be the reduced cost for variable var[j+start].
Throws:
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.

getDuals

public double[] getDuals(ilog.concert.IloLPMatrix matrix)
                  throws IloCplex.UnknownObjectException,
                         IloException
Returns the dual solution vector for the constraints corresponding to the rows of an LP matrix.

Parameters:
matrix - The LP matrix for the rows of which to query the dual solution values. This LP matrix must be in the active model.
Returns:
An array containing the dual solution values for the constraints corresponding to the rows of an LP matrix. If 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.
Throws:
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.

getDuals

public double[] getDuals(ilog.concert.IloLPMatrix matrix,
                         int start,
                         int num)
                  throws IloCplex.UnknownObjectException,
                         IloException
Returns dual solution values for the constraints corresponding to a range of rows of an LP matrix.

Parameters:
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.
Returns:
An array containing the dual solution values for the constraints corresponding to the specified rows of LP matrix. If 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.
Throws:
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.

getDual

public double getDual(ilog.concert.IloRange rng)
               throws IloCplex.UnknownObjectException,
                      IloException
Returns the dual solution value for a constraint.

Parameters:
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.
Returns:
The dual solution value for the range constraint.
Throws:
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.

getDuals

public double[] getDuals(ilog.concert.IloRange[] rng)
                  throws IloCplex.UnknownObjectException,
                         IloException
Returns dual solution values for an array of range constraints.

Parameters:
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.
Returns:
An array containing the dual solution values for the constraints in rng. If pi is the array returned by this method, pi[i] will be the dual solution value for constraint rng[i].
Throws:
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.

getDuals

public double[] getDuals(ilog.concert.IloRange[] rng,
                         int start,
                         int num)
                  throws IloCplex.UnknownObjectException,
                         IloException
Returns dual solution values for a set of constraints.

Parameters:
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.
Returns:
An array containing the dual solution values for the specified constraints. If pi is the array returned by this method, pi[i] will be the dual solution value for the range constraint rng[i+start].
Throws:
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.

getSlacks

public double[] getSlacks(ilog.concert.IloLPMatrix matrix)
                   throws IloCplex.UnknownObjectException,
                          IloException
Returns slack values for the constraints corresponding to the rows of an LP matrix.

Parameters:
matrix - The LP matrix for the constraints of which to query the slack values. This LP matrix must be in active model.
Returns:
An array of slack values for the constraints the LP matrix. If 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.
Throws:
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.

getSlacks

public double[] getSlacks(ilog.concert.IloLPMatrix matrix,
                          int start,
                          int num)
                   throws IloCplex.UnknownObjectException,
                          IloException
Returns slack values for a range of rows of an LP matrix.

Parameters:
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.
Returns:
An array containing the slack vector for the constraints corresponding to the specified rows of the LP matrix. If 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.
Throws:
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.

getSlack

public double getSlack(ilog.concert.IloRange rng)
                throws IloCplex.UnknownObjectException,
                       IloException
Returns the slack value for a range constraint.

Parameters:
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.
Returns:
The slack value for a range constraint.
Throws:
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.

getSlacks

public double[] getSlacks(ilog.concert.IloRange[] rng)
                   throws IloCplex.UnknownObjectException,
                          IloException
Returns slack values for an array of range constraints.

Parameters:
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.
Returns:
An array containing the slack values for the constraints in rng. If s is the array returned by this method, s[i] will be the slack value for the range constraint rng[i].
Throws:
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.

getSlacks

public double[] getSlacks(ilog.concert.IloRange[] rng,
                          int start,
                          int num)
                   throws IloCplex.UnknownObjectException,
                          IloException
Returns slack values for a set of constraints.

Parameters:
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.
Returns:
An array containing the slack values for the specified constraints. If s is the array returned by this method, s[i] will be the slack value for the range constraint rng[i+start].
Throws:
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.

getValue

public double getValue(ilog.concert.IloNumExpr expr)
                throws IloException
Returns the value that expr takes for the current solution.

Parameters:
expr - The expression for which to evaluate the current solution.
Returns:
The value expr takes for the current solution.
Throws:
IloException - If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

getAX

public double[] getAX(ilog.concert.IloLPMatrix matrix)
               throws IloCplex.UnknownObjectException,
                      IloException
Returns an array containing the row activity values for the constraints corresponding to the rows of an LP matrix.

Parameters:
matrix - The LP matrix for which to query the row activity values. This LP matrix must be in the active model.
Returns:
An array containing the row activity values for the rows of 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.
Throws:
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.

getAX

public double[] getAX(ilog.concert.IloLPMatrix matrix,
                      int start,
                      int num)
               throws IloCplex.UnknownObjectException,
                      IloException
Returns row activity values for a range of rows of an LP matrix.

Parameters:
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.
Returns:
An array containing the row activity vector for specified rows of LP 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+start of the IloLPMatrix matrix.
Throws:
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.

getAX

public double getAX(ilog.concert.IloRange rng)
             throws IloCplex.UnknownObjectException,
                    IloException
Returns the row activity value for a range constraint.

Parameters:
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.
Returns:
The row activity value for rng.
Throws:
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.

getAX

public double[] getAX(ilog.concert.IloRange[] rng)
               throws IloCplex.UnknownObjectException,
                      IloException
Returns row activity values for an array of range constraints.

Parameters:
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.
Returns:
The row activity values for the range constraints in rng. If ax is the array returned by this method, ax[i] will be the row activity value for the range constraint rng[i].
Throws:
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.

getAX

public double[] getAX(ilog.concert.IloRange[] rng,
                      int start,
                      int num)
               throws IloCplex.UnknownObjectException,
                      IloException
Queries row activity values for a set of range constraints.

Parameters:
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.
Returns:
The row activity values for the specified range constraints. If ax is the array returned by this method, ax[i] will be the row activity value for the constraint rng[i+start].
Throws:
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.

getBasisStatus

public IloCplex.BasisStatus getBasisStatus(ilog.concert.IloNumVar var)
                                    throws IloException
Returns the basis status for variable var. This function succeeds only if a basic solution is available in the invoking IloCplex optimizer.

Parameters:
var - The variable whose basis status is being queried.
Returns:
The basis status for variable var.
IloException

getBasisStatuses

public IloCplex.BasisStatus[] getBasisStatuses(ilog.concert.IloNumVar[] var)
                                        throws IloException
Returns basis statuses for the variables in array var. This function succeeds only if a basic solution is available in the invoking IloCplex optimizer.

Parameters:
var - The array of variables whose basis statuses are being queried.
Returns:
The basis statuses for variables var. If b is the returned array, b[j] will be the basis status for variable var[j].
IloException

getBasisStatuses

public IloCplex.BasisStatus[] getBasisStatuses(ilog.concert.IloNumVar[] var,
                                               int start,
                                               int num)
                                        throws IloException
Returns basis statuses for a set of variables in array var. This function succeeds only if a basic solution is available in the invoking IloCplex optimizer.

Parameters:
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.
Returns:
The basis statuses for the specified variables in var. If b is the returned array, b[j] will be the basis status for variable var[j+start].
IloException

getBasisStatus

public IloCplex.BasisStatus getBasisStatus(ilog.concert.IloConstraint con)
                                    throws IloException
Returns the basis status for the constraint con. This function succeeds only if a basic solution is available in the invoking IloCplex optimizer.

Parameters:
con - The constraint whose basis status is being queried.
Returns:
The basis status for constraint rng.
IloException

getBasisStatuses

public IloCplex.BasisStatus[] getBasisStatuses(ilog.concert.IloConstraint[] con)
                                        throws IloException
Returns basis statuses for the constraints in array con. This function succeeds only if a basic solution is available in the invoking IloCplex optimizer.

Parameters:
con - The array of constraints whose basis statuses are being queried.
Returns:
An array containing the basis statuses for the constraints in con. If b is the returned array, b[i] will be the basis status for constraints con[i].
IloException

getBasisStatuses

public IloCplex.BasisStatus[] getBasisStatuses(ilog.concert.IloConstraint[] con,
                                               int start,
                                               int num)
                                        throws IloException
Returns basis statuses for a set of constraints. This function succeeds only if a basic solution is available in the invoking IloCplex optimizer.

Parameters:
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.
Returns:
An array containing the basis statuses for constraints in con. If b is the returned array, b[i] will be the basis status for constraint con[i+start].
IloException

setBasisStatuses

public void setBasisStatuses(ilog.concert.IloNumVar[] var,
                             IloCplex.BasisStatus[] cstat,
                             ilog.concert.IloRange[] con,
                             IloCplex.BasisStatus[] rstat)
                      throws IloException
Sets basis statuses for variables and constraints.

Parameters:
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

setBasisStatuses

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
Sets basis statuses for a set of variables and constraints.

Parameters:
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

setVectors

public void setVectors(double[] x,
                       double[] dj,
                       ilog.concert.IloNumVar[] var,
                       double[] slack,
                       double[] pi,
                       ilog.concert.IloRange[] rng)
                throws IloException
Specifies a starting point for the next invocation of method 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].

Parameters:
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

setVectors

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
Specifies a starting point for the next invocation of method 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].

Parameters:
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

feasOpt

public boolean feasOpt(ilog.concert.IloRange[] rngs,
                       double[] rnglb,
                       double[] rngub,
                       ilog.concert.IloNumVar[] vars,
                       double[] varlb,
                       double[] varub,
                       boolean optimize)
                throws IloException
This function computes a minimal relaxation of variable and/or constraint bounds that make the active model feasible.

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.

Parameters:
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.
Returns:
true if a relaxation is found along with a solution for it.
IloException

feasOpt

public boolean feasOpt(ilog.concert.IloNumVar[] vars,
                       double[] varlb,
                       double[] varub,
                       boolean optimize)
                throws IloException
This function computes a minimal relaxation of variable bounds that make the active model feasible.

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.

Parameters:
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.
Returns:
true if a relaxation is found along with a solution for it.
IloException

feasOpt

public boolean feasOpt(ilog.concert.IloRange[] rngs,
                       double[] rnglb,
                       double[] rngub,
                       boolean optimize)
                throws IloException
This function computes a minimal relaxation of constraint bounds that make the active model feasible.

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.

Parameters:
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.
Returns:
true if a relaxation is found along with a solution for it.
IloException

getIIS

public IloCplex.IIS getIIS()
                    throws IloException
Computes and returns the IIS (Irreducibly Inconsistent Set) of the active model if it is an infeasible LP.

Returns:
The IIS if the active model infeasible model.
IloException

getBoundSA

public void getBoundSA(double[] lblower,
                       double[] lbupper,
                       double[] ublower,
                       double[] ubupper,
                       ilog.concert.IloLPMatrix matrix)
                throws IloException
Computes and returns sensitivity analysis information for the bounds of all variables in the specified LP matrix.

Parameters:
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

getBoundSA

public void getBoundSA(double[] lblower,
                       double[] lbupper,
                       double[] ublower,
                       double[] ubupper,
                       ilog.concert.IloLPMatrix matrix,
                       int start,
                       int num)
                throws IloException
Computes and returns sensitivity analysis information for the bounds of a set of variables in the specified LP matrix.

Parameters:
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

getBoundSA

public void getBoundSA(double[] lblower,
                       double[] lbupper,
                       double[] ublower,
                       double[] ubupper,
                       ilog.concert.IloNumVar[] var)
                throws IloException
Computes and returns sensitivity analysis information for variable bounds.

Parameters:
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

getBoundSA

public void getBoundSA(double[] lblower,
                       double[] lbupper,
                       double[] ublower,
                       double[] ubupper,
                       ilog.concert.IloNumVar[] var,
                       int start,
                       int num)
                throws IloException
Computes and returns sensitivity analysis information for variable bounds.

Parameters:
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

getObjSA

public void getObjSA(double[] lower,
                     double[] upper,
                     ilog.concert.IloLPMatrix matrix)
              throws IloException
Computes and returns sensitivity analysis information for objective coefficients of the variables corresponding to the columns of the specified LP matrix.

Parameters:
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

getObjSA

public void getObjSA(double[] lower,
                     double[] upper,
                     ilog.concert.IloLPMatrix matrix,
                     int start,
                     int num)
              throws IloException
Computes and returns sensitivity analysis information for objective coefficients of the variables corresponding to a range of columns of the specified LP matrix.

Parameters:
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

getObjSA

public void getObjSA(double[] lower,
                     double[] upper,
                     ilog.concert.IloNumVar[] var)
              throws IloException
Computes and returns sensitivity analysis information for objective coefficients for an array of variables.

Parameters:
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

getObjSA

public void getObjSA(double[] lower,
                     double[] upper,
                     ilog.concert.IloNumVar[] var,
                     int start,
                     int num)
              throws IloException
Computes and returns sensitivity analysis information for objective coefficients for a set of variables.

Parameters:
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

getRangeSA

public void getRangeSA(double[] lblower,
                       double[] lbupper,
                       double[] ublower,
                       double[] ubupper,
                       ilog.concert.IloRange[] rng)
                throws IloException
Computes and returns sensitivity analysis information for range constraint bounds.

Parameters:
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

getRangeSA

public void getRangeSA(double[] lblower,
                       double[] lbupper,
                       double[] ublower,
                       double[] ubupper,
                       ilog.concert.IloRange[] rng,
                       int start,
                       int num)
                throws IloException
Computes and returns sensitivity analysis information for range constraint bounds.

Parameters:
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

getRangeSA

public void getRangeSA(double[] lblower,
                       double[] lbupper,
                       double[] ublower,
                       double[] ubupper,
                       ilog.concert.IloLPMatrix matrix,
                       int start,
                       int num)
                throws IloException
Computes and returns sensitivity analysis information for the constraints corresponding to num rows of the LP matrix matrix starting with row start.

Parameters:
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

getRangeSA

public void getRangeSA(double[] lblower,
                       double[] lbupper,
                       double[] ublower,
                       double[] ubupper,
                       ilog.concert.IloLPMatrix matrix)
                throws IloException
Computes and returns sensitivity analysis information for the constraints corresponding to the rows of the LP matrix matrix.

Parameters:
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

getRHSSA

public void getRHSSA(double[] lower,
                     double[] upper,
                     ilog.concert.IloRange[] rng)
              throws IloException
Computes and returns sensitivity analysis information for RHS values of constraints. The returned bounds represent the interval in which both bounds can simultaneously be moved without affecting the solution. This is useful for equality constraints, that is, ranged constraints where the upper and lower bound match. In this case the returned bounds indicate within which interval the value b for a constraint in the form a'x = b can be moved. It is not possible to obtain this information using getRangeSA, since both bounds are moved independently.

Parameters:
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

getRHSSA

public void getRHSSA(double[] lower,
                     double[] upper,
                     ilog.concert.IloRange[] rng,
                     int start,
                     int num)
              throws IloException
Computes and returns sensitivity analysis information for RHS values of a set of constraints. The returned bounds represent the interval in which both bounds can simultaneously be moved without affecting the solution. This is useful for equality constraints, that is, ranged constraints where the upper and lower bound match. In this case the returned bounds indicate within which interval the value b for a constraint in the form a'x = b can be moved. It is not possible to obtain this information from getRangeSA, since both bounds are moved independently.

Parameters:
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 requested
num - The number of elements in rng for which the sensitivity analysis is requested
IloException

getRHSSA

public void getRHSSA(double[] lower,
                     double[] upper,
                     ilog.concert.IloLPMatrix matrix)
              throws IloException
Computes and returns sensitivity analysis information for RHS values of the constraints corresponding to the rows of an LP matrix. The returned bounds represent the interval in which both bounds can simultaneously be moved without affecting the solution. This is useful for equality constraints, that is, ranged constraints where the upper and lower bound match. In this case the returned bounds indicate within which interval the value b for a constraint in the form a'x = b can be moved. It is not possible to obtain this information using getRangeSA, since both bounds are moved independently.

Parameters:
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

getRHSSA

public void getRHSSA(double[] lower,
                     double[] upper,
                     ilog.concert.IloLPMatrix matrix,
                     int start,
                     int num)
              throws IloException
Computes and returns sensitivity analysis information for RHS values of the constraints corresponding to a range of rows of an LP matrix. The returned bounds represent the interval in which both bounds can simultaneously be moved without affecting the solution. This is useful for equality constraints, that is, ranged constraints where the upper and lower bound match. In this case the returned bounds indicate within which interval the value b for a constraint in the form a'x = b can be moved. It is not possible to obtain this information using getRangeSA, since both bounds are moved independently.

Parameters:
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

getQuality

public IloCplex.Quality getQuality(IloCplex.QualityType which)
                            throws IloException
Returns an IloCplex.Quality object that contains the requested quality measure.

Parameters:
which - The IloCplex.QualityType which should be computed.
Returns:
An IloCplex.Quality object for the requested quality measure.
IloException
See Also:
IloCplex.Quality, IloCplex.QualityType

output

public java.io.PrintStream output()
Returns the output stream of the invoking IloCplex object. This stream is used by IloCplex for printing logging information. It can be set with the method setOut.

Returns:
The output stream of the invoking IloCplex object.
See Also:
IloCplex.setOut(java.io.OutputStream)

warning

public java.io.PrintStream warning()
Returns the warning output stream of the invoking IloCplex object. This stream is used by IloCplex for printing warnings. It can be set with the method setWarning.

Returns:
The warning stream of the invoking IloCplex object.
See Also:
IloCplex.setWarning(java.io.OutputStream)

setOut

public void setOut(java.io.OutputStream s)
Sets the default output stream of the invoking 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.

Parameters:
s - The new default output stream.

setWarning

public void setWarning(java.io.OutputStream s)
Sets the warning stream of the invoking 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.

Parameters:
s - The new warnings output stream.

solve

public boolean solve()
              throws IloException
Solves the active model.

Returns:
A Boolean value indicating whether a feasible solution has been found. This solution is not necessarily optimal. If false is returned, a feasible solution may still be present, but IloCplex has not been able to prove its feasibility.
IloException

solveFixed

public boolean solveFixed()
                   throws IloException
Solves the fixed active model. The fixed model is generated from a MIP problem, and a solution to it, by fixing all integer variables to their solution values.

Returns:
A Boolean value indicating whether a feasible solution has been found. This solution is not necessarily optimal. If false is returned a feasible solution may still be present, but IloCplex has not been able to prove its feasibility.
IloException

getNiterations

public int getNiterations()
Returns the number of iterations from the last solve.

Returns:
The number of iterations from the last solve.

getNphaseOneIterations

public int getNphaseOneIterations()
Returns the number of phase I simplex iterations from the last solve.

Returns:
The number of phase I simplex iterations from the last solve.

getNbarrierIterations

public int getNbarrierIterations()
Returns the number of barrier iterations from the last solve.

Returns:
The number of barrier iterations from the last solve.

getNsiftingIterations

public int getNsiftingIterations()
Returns the number of sifting iterations from the last solve.

Returns:
The number of sifting iterations from the last solve.

getNsiftingPhaseOneIterations

public int getNsiftingPhaseOneIterations()
Returns the number of sifting phase I iterations from the last solve.

Returns:
The number of sifting phase I iterations from the last solve.

getNcrossDExch

public int getNcrossDExch()
Returns the number of dual exchange operations in the crossover of the last solve.

Returns:
The number of dual exchange operations in the crossover of the last solve.

getNcrossDPush

public int getNcrossDPush()
Returns the number of dual push operations in the crossover of the last solve.

Returns:
The number of dual push operations in the crossover of the last solve.

getNcrossPExch

public int getNcrossPExch()
Returns the number of primal exchange operations in the crossover of the last solve.

Returns:
The number of primal exchange operations in the crossover of the last solve.

getNcrossPPush

public int getNcrossPPush()
Returns the number of primal push operations in the crossover of the last solve.

Returns:
The number of primal push operations in the crossover of the last solve.

getNdualSuperbasics

public int getNdualSuperbasics()
Returns the number of dual superbasic variables in the basis.

Returns:
The number of dual superbasic variables in the basis.

getNprimalSuperbasics

public int getNprimalSuperbasics()
Returns the number of primal superbasic variables in the basis.

Returns:
The number of primal superbasic variables in the basis.

getNcliques

public int getNcliques()
Returns the number of clique cuts added to the problem during the last solve.

Returns:
The number of clique cuts added to the problem.

getNcovers

public int getNcovers()
Returns the number of cover cuts added to the problem during the last solve.

Returns:
The number of cover cuts added to the problem.

getNnodes

public int getNnodes()
Returns the number of branch-and-cut nodes explored in solving the active model.

Returns:
The number of branch-and-cut nodes explored in solving the active model.

getNnodesLeft

public int getNnodesLeft()
Returns the number of unexplored nodes in the branch-and-cut tree.

Returns:
The number of unexplored nodes in the branch-and-cut tree.

getIncumbentNode

public int getIncumbentNode()
Returns the node number where the current incumbent was found.

Returns:
The node number where the current incumbent was found.

setPriority

public void setPriority(ilog.concert.IloNumVar var,
                        int pri)
                 throws IloException
Sets the branch priority for the variable 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.

Parameters:
var - The variable whose priority value is being set.
pri - The priority value to set for variable var.
IloException

setPriorities

public void setPriorities(ilog.concert.IloNumVar[] var,
                          int[] pri)
                   throws IloException
Sets branch priorities for an array of variables. 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.

Parameters:
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

setPriorities

public void setPriorities(ilog.concert.IloNumVar[] var,
                          int[] pri,
                          int start,
                          int num)
                   throws IloException
Sets branch priorities for a set of variables. 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.

Parameters:
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

setDirection

public void setDirection(ilog.concert.IloNumVar var,
                         IloCplex.BranchDirection dir)
                  throws IloException
Sets the branching direction for a variable.

Parameters:
var - The variable whose branching direction is being set.
dir - The branching direction to set for variable var.
IloException
See Also:
IloCplex.BranchDirection

setDirections

public void setDirections(ilog.concert.IloNumVar[] var,
                          IloCplex.BranchDirection[] brdir)
                   throws IloException
Sets branching directions for an array of variables.

Parameters:
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
See Also:
IloCplex.BranchDirection

setDirections

public void setDirections(ilog.concert.IloNumVar[] var,
                          IloCplex.BranchDirection[] brdir,
                          int start,
                          int num)
                   throws IloException
Sets branching directions for a set of variables.

Parameters:
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
See Also:
IloCplex.BranchDirection

delPriority

public void delPriority(ilog.concert.IloNumVar var)
                 throws IloException
Removes any existing branch priority assignment from variable var.

Parameters:
var - The variable whose branch priority assignment is being removed.
IloException

delPriorities

public void delPriorities(ilog.concert.IloNumVar[] var)
                   throws IloException
Removes any existing branch priority assignment from the variables in array var.

Parameters:
var - The array of variables whose branch priority assignments are being removed.
IloException

delPriorities

public void delPriorities(ilog.concert.IloNumVar[] var,
                          int start,
                          int num)
                   throws IloException
Removes any existing branch priority assignment from num variables in the array var, starting with variable var[start].

Parameters:
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

delDirection

public void delDirection(ilog.concert.IloNumVar var)
                  throws IloException
Removes any existing branching direction assignments from the variable var.

Parameters:
var - The variable whose branching direction assignment is being removed.
IloException

delDirections

public void delDirections(ilog.concert.IloNumVar[] var)
                   throws IloException
Removes any existing branching direction assignments all the variables in array var.

Parameters:
var - An array of variables whose branching direction assignments are being removed.
IloException

delDirections

public void delDirections(ilog.concert.IloNumVar[] var,
                          int start,
                          int num)
                   throws IloException
Removes any existing branching direction assignments from num variables in the array var, starting with variable var[start].

Parameters:
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

getPriority

public int getPriority(ilog.concert.IloNumVar var)
                throws IloException
Returns the branch priority for a variable.

Parameters:
var - The variable whose branch priority is being queried.
Returns:
The branch priority for variable var. A value of 0 indicates the IloCplex default.
IloException

getPriorities

public int[] getPriorities(ilog.concert.IloNumVar[] var)
                    throws IloException
Returns branch priorities for an array of variables.

Parameters:
var - The array of variables whose branch priorities are being queried.
Returns:
The branch priorities for the variables in 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

getPriorities

public int[] getPriorities(ilog.concert.IloNumVar[] var,
                           int start,
                           int num)
                    throws IloException
Returns branch priorities for a set of variables.

Parameters:
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.
Returns:
The branch priorities for the specified variables. If 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

getDirection

public IloCplex.BranchDirection getDirection(ilog.concert.IloNumVar var)
                                      throws IloException
Returns the branch direction for a variable. This method returns the branch direction assigned to the variable var. If no branch direction has been assigned to the variable, IloCplex.BranchDirection.Global is returned.

Parameters:
var - The variable whose branch direction is being queried.
Returns:
The branch direction for variable var.
IloException

getDirections

public IloCplex.BranchDirection[] getDirections(ilog.concert.IloNumVar[] var)
                                         throws IloException
Returns branch directions for an array of variables. If no branch direction has been assigned to a variable, IloCplex.BranchDirection.Global will be returned for it.

Parameters:
var - An array of variables whose branch directions are being queried.
Returns:
The branch directions for the variables in var. If dir is the array returned by this method, dir[j] is the branch direction of variable var[j].
IloException

getDirections

public IloCplex.BranchDirection[] getDirections(ilog.concert.IloNumVar[] var,
                                                int start,
                                                int num)
                                         throws IloException
Returns branch directions for a set of variables. If no branch direction has been assigned to a variable, IloCplex.BranchDirection.Global will be returned for it.

Parameters:
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.
Returns:
The branch directions for the specified variables. If dir is the array returned by this method, dir[j] is the branch direction of variable var[j+start].
IloException

writeOrder

public void writeOrder(java.lang.String name)
                throws IloException
Writes a priority order file with the indicated 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.

Parameters:
name - The name of the file to which the priority order is written.
IloException
See Also:
IloCplex.readOrder(java.lang.String)

writeParam

public void writeParam(java.lang.String name)
                throws IloException
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. By convention, the file extension is .prm. The PRM file format is documented in the reference manual ILOG CPLEX File Formats.

Parameters:
name - The name of the file to write.
IloException
See Also:
IloCplex.readParam(java.lang.String)

writeBasis

public void writeBasis(java.lang.String name)
                throws IloException
Writes the current simplex basis to the file indicated by name. By convention, the file extension is .bas. The BAS file format is documented in the reference manual ILOG CPLEX File Formats.

Parameters:
name - The name of the file to write.
IloException
See Also:
IloCplex.readBasis(java.lang.String)

writeVectors

public void writeVectors(java.lang.String name)
                  throws IloException
Writes solution information from a barrier optimization (without crossover) in VEC format to the file indicated by 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.

Parameters:
name - The name of the file to write.
IloException
See Also:
IloCplex.readVectors(java.lang.String)

writeTextSolution

public void writeTextSolution(java.lang.String name)
                       throws IloException
Writes a solution file in text format for the current solution to the file indicated by name.

Parameters:
name - The name of the file to write.
IloException

writeMIPStart

public void writeMIPStart(java.lang.String name)
                   throws IloException
Writes a starting solution for a MIP in MST format to file name.

By convention, the file extension is .mst. The MST file format is documented in the reference manual ILOG CPLEX File Formats.

Parameters:
name - The name of the file to write.
IloException
See Also:
IloCplex.readMIPStart(java.lang.String)

writeTree

public void writeTree(java.lang.String name)
               throws IloException
Writes the branch-and-bound path (that is, the tree) of the current problem to file 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.

Parameters:
name - The name of the file to write.
IloException
See Also:
IloCplex.readTree(java.lang.String)

readOrder

public void readOrder(java.lang.String name)
               throws IloException
Reads the ORD file indicated by 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.

Parameters:
name - The name of the file to read.
IloException
See Also:
IloCplex.writeOrder(java.lang.String)

readParam

public void readParam(java.lang.String name)
               throws IloException
Reads parameters and their settings from the file indicated by 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.

Parameters:
name - The name of the file to read.
IloException
See Also:
IloCplex.writeParam(java.lang.String)

readBasis

public void readBasis(java.lang.String name)
               throws IloException
Reads a simplex basis from the BAS file indicated by 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.

Parameters:
name - The name of the file to read.
IloException
See Also:
IloCplex.writeBasis(java.lang.String)

readVectors

public void readVectors(java.lang.String name)
                 throws IloException
Reads a barrier solution from the VEC file indicated by 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.

Parameters:
name - The name of the file to read.
IloException
See Also:
IloCplex.writeVectors(java.lang.String)

readMIPStart

public void readMIPStart(java.lang.String name)
                  throws IloException
Reads the MST file indicated by 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.

Parameters:
name - The name of the file to read.
IloException
See Also:
IloCplex.writeMIPStart(java.lang.String)

readTree

public void readTree(java.lang.String name)
              throws IloException
Reads branch-and-bound progress information from a prior run (contained in the TRE file indicated by 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.

Parameters:
name - The name of the file to read.
IloException
See Also:
IloCplex.writeTree(java.lang.String)

use

public void use(IloCplex.Callback cb)
         throws IloException
Installs a user-written callback.

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.

Parameters:
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
See Also:
IloCplex.Callback

clearCallbacks

public void clearCallbacks()
                    throws IloException
Removes all callbacks from the invoking IloCplex object.

IloException

getRay

public ilog.concert.IloLinearNumExpr getRay()
                                     throws IloException
This is an advanced method.

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.

Returns:
A linear expression describing unbounded direction for the unbounded active model
IloException

dualFarkas

public double dualFarkas(ilog.concert.IloConstraint[] rng,
                         double[] y)
                  throws IloException
This is an advanced method.

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.

Parameters:
rng - Array of length getNrows where constraints corresponding to the values in y are returned.
y - array of length getNrows.
Returns:
The value of 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

qpIndefCertificate

public void qpIndefCertificate(ilog.concert.IloNumVar[] var,
                               double[] x)
                        throws IloException
Returns a vector proving that the Q matrix of QP is not positive semi-definite. When solving QPs, the quadratic terms of the objective function must form a positive semi-definite Q matrix (for a minimization problem, or negative semi-definite otherwise). If IloCplex finds this not be true, it will discontinue the optimization. In such cases, this method can be used to compute assignments to all variables such that the quadratic term of the objective function evaluates to a negative value (x'Q x < 0 in matrix terms) to prove the indefiniteness.

Parameters:
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

end

public void end()
Releases the 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.


registerLicense

public static void registerLicense(java.lang.String ilm_CPLEX_license,
                                   int ilm_CPLEX_license_signature)
                            throws IloException
Passes memory-based information to the ILOG License Manager. The registerLicense method passes memory-based information to the ILOG License Manager embedded inside the class IloCplex.

Throws:
IloException - if invalid information in the license key passed into the routine.
IloException

putenv

public static void putenv(java.lang.String envstr)
                   throws IloException
Sets the 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.

Parameters:
envstr - String of the form ILOG_LICENSE_FILE=..., where ... is the setting of the environment variable ILOG_LICENSE_FILE .
Throws:
IloException - if the environment variable could not be set.
IloException

and

public final IloCplex.Goal and(IloCplex.Goal goal1,
                               IloCplex.Goal goal2)
Creates and returns an 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.

Parameters:
goal1 - A goal to be pushed on the goal stack.
goal2 - A goal to be pushed on the goal stack.
Returns:
The and goal composed from the goals passed as parameters.

and

public final IloCplex.Goal and(IloCplex.Goal goal1,
                               IloCplex.Goal goal2,
                               IloCplex.Goal goal3)
Creates and returns an 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.

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.
Returns:
The and goal composed from the goals passed as parameters.

and

public final IloCplex.Goal and(IloCplex.Goal goal1,
                               IloCplex.Goal goal2,
                               IloCplex.Goal goal3,
                               IloCplex.Goal goal4)
Creates and returns an 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.

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.
Returns:
The and goal composed from the goals passed as parameters.

and

public final IloCplex.Goal and(IloCplex.Goal goal1,
                               IloCplex.Goal goal2,
                               IloCplex.Goal goal3,
                               IloCplex.Goal goal4,
                               IloCplex.Goal goal5)
Creates and returns an 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.

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.
Returns:
The and goal composed from the goals passed as parameters.

and

public final 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. 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.

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.
Returns:
The and goal composed from the goals passed as parameters.

or

public final IloCplex.Goal or(IloCplex.Goal goal1,
                              IloCplex.Goal goal2)
Creates and returns an 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.

Parameters:
goal1 - A goal to be used for a child node.
goal2 - A goal to be used for a child node.
Returns:
The or goal composed from the goals passed as parameters.

or

public final IloCplex.Goal or(IloCplex.Goal goal1,
                              IloCplex.Goal goal2,
                              IloCplex.Goal goal3)
Creates and returns an 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.

Parameters:
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.
Returns:
The or goal composed from the goals passed as parameters.

or

public final IloCplex.Goal or(IloCplex.Goal goal1,
                              IloCplex.Goal goal2,
                              IloCplex.Goal goal3,
                              IloCplex.Goal goal4)
Creates and returns an 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.

Parameters:
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.
Returns:
The or goal composed from the goals passed as parameters.

or

public final IloCplex.Goal or(IloCplex.Goal goal1,
                              IloCplex.Goal goal2,
                              IloCplex.Goal goal3,
                              IloCplex.Goal goal4,
                              IloCplex.Goal goal5)
Creates and returns an 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.

Parameters:
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.
Returns:
The or goal composed from the goals passed as parameters.

or

public final 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. 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.

Parameters:
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.
Returns:
The or goal composed from the goals passed as parameters.

branchAsCplex

public final 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. 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.


apply

public final IloCplex.Goal apply(IloCplex.Goal goal,
                                 IloCplex.NodeEvaluator evaluator)
Returns a goal that applies the 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

Returns:
The goal that applies the node selection strategy defined by evaluator to the search tree defined by goal.

limitSearch

public final 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. All nodes in a subtree that have not yet been explored when the limit for that subtree is reached will be discarded.

Returns:
A goal imposing the search tree defined by goal to search limit limit.

solve

public final boolean solve(IloCplex.Goal goal)
                    throws IloException
This method solves the active MIP model using the search strategy specified by 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.

Parameters:
goal - The goal that controls the branch-and-cut search to be performed.
Returns:
A Boolean value indicating whether a feasible solution has been found. This solution is not necessarily the optimal solution, if for example the search is prematurely terminated because a limit is encountered.
IloException
See Also:
IloCplex.Goal

failGoal

public final IloCplex.Goal failGoal()
Creates and returns a goal that always fails. The node on which the goal is executed will be pruned, thus discarding the subtree rooted at that node.

Returns:
The new fail goal.

constraintGoal

public final IloCplex.Goal constraintGoal(ilog.concert.IloConstraint cut)
                                   throws IloException
Creates and returns a constraint goal for the specified constraint 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.

Parameters:
cut - The constraint to added to the node and its descendents.
Returns:
A constraint goal for adding cut.
IloException

constraintGoal

public final IloCplex.Goal constraintGoal(ilog.concert.IloConstraint[] cut)
                                   throws IloException
Creates and returns a constraint goal for the constraints specified in array 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.

Parameters:
cut - The constraints to added to the current subtree.
Returns:
A constraint goal for adding the constraints in cut.
IloException

globalCutGoal

public final IloCplex.Goal globalCutGoal(ilog.concert.IloConstraint cut)
                                  throws IloException
Creates and returns a global cut goal for the constraint 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.

Parameters:
cut - The constraint to added as a global cut.
Returns:
A global cut goal for adding the constraint cut as a global cut.
IloException

globalCutGoal

public final IloCplex.Goal globalCutGoal(ilog.concert.IloConstraint[] cut)
                                  throws IloException
Creates and returns a global cut goal for the constraints specified in array 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.

Parameters:
cut - The constraints to added as global cuts.
Returns:
A global cut goal for adding the constraints cut as global cuts.
IloException

solutionGoal

public final IloCplex.Goal solutionGoal(ilog.concert.IloNumVar[] vars,
                                        double[] vals)
                                 throws IloException
Creates and returns a solution goal.

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.

Parameters:
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].
Returns:
The goal that injects the solution.
IloException

eqGoal

public IloCplex.Goal eqGoal(ilog.concert.IloNumExpr expr,
                            double rhs)
                     throws IloException
Creates a constraint goal for the constraint 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.

Parameters:
expr - The lefthand side expression of the constraint.
rhs - The righthand side value of the constraint.
Returns:
A constraint goal for adding the specified constraint.
IloException

eqGoal

public IloCplex.Goal eqGoal(ilog.concert.IloNumExpr expr1,
                            ilog.concert.IloNumExpr expr2)
                     throws IloException
Creates a constraint goal for the constraint 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.

Parameters:
expr1 - The lefthand side expression of the constraint.
expr2 - The righthand side expression of the constraint.
Returns:
A constraint goal for adding the specified constraint.
IloException

eqGoal

public IloCplex.Goal eqGoal(double lhs,
                            ilog.concert.IloNumExpr expr)
                     throws IloException
Creates a constraint goal for the constraint 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.

Parameters:
lhs - The lefthand side value of the constraint.
expr - The righthand side expression of the constraint.
Returns:
A constraint goal for adding the specified constraint.
IloException

geGoal

public IloCplex.Goal geGoal(ilog.concert.IloNumExpr expr,
                            double rhs)
                     throws IloException
Creates a constraint goal for the constraint 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.

Parameters:
expr - The lefthand side expression of the constraint.
rhs - The righthand side value of the constraint.
Returns:
A constraint goal for adding the specified constraint.
IloException

geGoal

public IloCplex.Goal geGoal(ilog.concert.IloNumExpr expr1,
                            ilog.concert.IloNumExpr expr2)
                     throws IloException
Creates a constraint goal for the constraint 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.

Parameters:
expr1 - The lefthand side expression of the constraint.
expr2 - The righthand side expression of the constraint.
Returns:
A constraint goal for adding the specified constraint.
IloException

geGoal

public IloCplex.Goal geGoal(double lhs,
                            ilog.concert.IloNumExpr expr)
                     throws IloException
Creates a constraint goal for the constraint 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.

Parameters:
lhs - The lefthand side value of the constraint.
expr - The righthand side expression of the constraint.
Returns:
A constraint goal for adding the specified constraint.
IloException

leGoal

public IloCplex.Goal leGoal(ilog.concert.IloNumExpr expr,
                            double rhs)
                     throws IloException
Creates a constraint goal for the constraint 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.

Parameters:
expr - The lefthand side expression of the constraint.
rhs - The righthand side value of the constraint.
Returns:
A constraint goal for adding the specified constraint.
IloException

leGoal

public IloCplex.Goal leGoal(ilog.concert.IloNumExpr expr1,
                            ilog.concert.IloNumExpr expr2)
                     throws IloException
Creates a constraint goal for the constraint 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.

Parameters:
expr1 - The lefthand side expression of the constraint.
expr2 - The righthand side expression of the constraint.
Returns:
A constraint goal for adding the specified constraint.
IloException

leGoal

public IloCplex.Goal leGoal(double lhs,
                            ilog.concert.IloNumExpr expr)
                     throws IloException
Creates a constraint goal for the constraint 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.

Parameters:
lhs - The lefthand side value of the constraint.
expr - The righthand side expression of the constraint.
Returns:
A constraint goal for adding the specified constraint.
IloException