12.07.2015 Views

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

One approach, invoked by the method IloCplex.refineConflict, computes a minimalset of conflicting constraints and bounds and reports them to you for you to take action toremove the conflict from your infeasible model. For more about this approach, seeDiagnosing Infeasibility by Refining Conflicts on page 391.Another approach to consider is the method IloCplex.feasOpt to explore whether thereare modifications you can make that would render your model feasible. RepairingInfeasibility: FeasOpt on page 194 explains that feature of <strong>ILOG</strong> <strong>CPLEX</strong> more fully, withexamples of its use.Solution QualityThe <strong>ILOG</strong> <strong>CPLEX</strong> optimizer uses finite precision arithmetic to compute solutions. Tocompensate for numeric errors due to this, tolerances are used by which the computedsolution is allowed to violate feasibility or optimality conditions. Thus the solutioncomputed by the solve method may in fact slightly violate the bounds specified in theactive model.IloCplex provides the method getQuality to allow you to analyze the quality of thesolution. Several quality measures are defined in class IloCplex.QualityType. Forexample, to query the maximal bound violation of variables or slacks of the solution foundby cplex.solve call getQuality, like this:IloCplex.QualityType inf =cplex.getQuality(IloCplex.QualityType.MaxPrimalInfeas);double maxinfeas = inf.getValue();The variable or constraint for which this maximum infeasibility occurs can be queried bycalling inf.getNumVar or inf.getRange, one of which returns null. Not all qualitymeasures are available for solutions generated by different optimizers. See the <strong>ILOG</strong> <strong>CPLEX</strong>Java Reference <strong>Manual</strong> for further details.Advanced Modeling with IloLPMatrixSo far the constraints have been considered only individually as ranged constraints of typeIloRange; this approach is known as modeling by rows. However, mathematically themodels that can be solved with IloCplex are frequently represented as:Minimize (or Maximize) f(x)such that L ≤ Ax ≤ Uwith these bounds L ≤ x ≤ U90 <strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!