XPRSprob
- java.lang.Object
-  
  - com.dashoptimization.XPRSobject
-  
    - com.dashoptimization.XPRSprob
 
 
-  
   - All Implemented Interfaces:
- 
     java.lang.AutoCloseable
 - Direct Known Subclasses:
- 
     XpressProblem
 
 public class XPRSprob extends XPRSobject Represents a problem and an optimizer instance.
-  
    
   -  
         Nested Class SummaryModifier and Type Class Description classXPRSprob.AbstractUserFunctionBase class for user functions.static classXPRSprob.AttributeInfoAttribute descriptor forgetAttribInfo(String).classXPRSprob.AttributesClass to access attributes.static classXPRSprob.BasisValueReturn value forgetBasisVal(int,int).static classXPRSprob.ControlInfoControl descriptor forgetControlInfo(String).classXPRSprob.ControlsClass to access controls.static classXPRSprob.GeneralConstraintInfoReturn value forgetGenCons(int, int).static classXPRSprob.GlobalInfoDeprecated.Deprecated since 40.01, useMIPEntityInfoinstead.static classXPRSprob.IISDataReturn value forgetIISData(int);static classXPRSprob.IISStatusInfoReturn value forIISStatus().static classXPRSprob.InfeasInfoReturn value forgetInfeas()andgetScaledInfeas().classXPRSprob.MapDeltaFunctionAnR -> Rfunction that also provides the derivative.static interfaceXPRSprob.MapDeltaFunctorclassXPRSprob.MapFunctionAnR -> Rfunction.static interfaceXPRSprob.MapFunctorstatic classXPRSprob.MatrixInfostatic classXPRSprob.MatrixTripletsMatrix specified by a list of triplets.classXPRSprob.MIPEntityInfoclassXPRSprob.MultiMapDeltaFunctionAnR^n -> R^mfunction that also provides partial derivatives.static interfaceXPRSprob.MultiMapDeltaFunctorclassXPRSprob.MultiMapFunctionAnR^n -> R^mfunction.static interfaceXPRSprob.MultiMapFunctorstatic classXPRSprob.PWLInfoReturn value forgetPwlCons(int, int).static classXPRSprob.RowInfoSparse row information.static classXPRSprob.SolutionSolution data.static classXPRSprob.SolValReturn value forgetLpSolVal(int, int),getMipSolVal(int, int).static classXPRSprob.StatusSolutionSolution information that also contains a status value.classXPRSprob.VecMapDeltaFunctionAnR^n -> Rfunction that also provides partial derivatives.static interfaceXPRSprob.VecMapDeltaFunctorclassXPRSprob.VecMapFunctionAnR^n -> Rfunction.static interfaceXPRSprob.VecMapFunctor
 -  
         Field SummaryModifier and Type Field Description static java.lang.StringcannotAddPWLsError message in case we attempt to create rows withVariables where this is not possible.static java.lang.StringcannotAddSetsError message in case we attempt to create sets where this is not possible.static charEQConstraint sense for==constraints.static charGEQConstraint sense for>=constraints.static charLEQConstraint sense for<=constraints.
 -  
         Method SummaryModifier and Type Method Description voidaddAfterObjectiveListener(XPRSafterObjectiveListener listener)Add a listener for the AfterObjective callback.voidaddAfterObjectiveListener(XPRSafterObjectiveListener listener, int priority)Add a listener for the AfterObjective callback.voidaddAfterObjectiveListener(XPRSafterObjectiveListener listener, java.lang.Object data)Add a listener for the AfterObjective callback.voidaddAfterObjectiveListener(XPRSafterObjectiveListener listener, java.lang.Object data, int priority)Add a listener for the AfterObjective callback.voidaddBarIterationListener(XPRSbarIterationListener listener)Add a listener for the BarIteration callback.voidaddBarIterationListener(XPRSbarIterationListener listener, int priority)Add a listener for the BarIteration callback.voidaddBarIterationListener(XPRSbarIterationListener listener, java.lang.Object data)Add a listener for the BarIteration callback.voidaddBarIterationListener(XPRSbarIterationListener listener, java.lang.Object data, int priority)Add a listener for the BarIteration callback.voidaddBarLogListener(XPRSbarLogListener listener)Add a listener for the BarLog callback.voidaddBarLogListener(XPRSbarLogListener listener, int priority)Add a listener for the BarLog callback.voidaddBarLogListener(XPRSbarLogListener listener, java.lang.Object data)Add a listener for the BarLog callback.voidaddBarLogListener(XPRSbarLogListener listener, java.lang.Object data, int priority)Add a listener for the BarLog callback.voidaddBeforeObjectiveListener(XPRSbeforeObjectiveListener listener)Add a listener for the BeforeObjective callback.voidaddBeforeObjectiveListener(XPRSbeforeObjectiveListener listener, int priority)Add a listener for the BeforeObjective callback.voidaddBeforeObjectiveListener(XPRSbeforeObjectiveListener listener, java.lang.Object data)Add a listener for the BeforeObjective callback.voidaddBeforeObjectiveListener(XPRSbeforeObjectiveListener listener, java.lang.Object data, int priority)Add a listener for the BeforeObjective callback.voidaddBeforeSolveListener(XPRSbeforeSolveListener listener)Add a listener for the BeforeSolve callback.voidaddBeforeSolveListener(XPRSbeforeSolveListener listener, int priority)Add a listener for the BeforeSolve callback.voidaddBeforeSolveListener(XPRSbeforeSolveListener listener, java.lang.Object data)Add a listener for the BeforeSolve callback.voidaddBeforeSolveListener(XPRSbeforeSolveListener listener, java.lang.Object data, int priority)Add a listener for the BeforeSolve callback.voidaddChangeBranchObjectListener(XPRSchangeBranchObjectListener listener)Add a listener for the ChangeBranchObject callback.voidaddChangeBranchObjectListener(XPRSchangeBranchObjectListener listener, int priority)Add a listener for the ChangeBranchObject callback.voidaddChangeBranchObjectListener(XPRSchangeBranchObjectListener listener, java.lang.Object data)Add a listener for the ChangeBranchObject callback.voidaddChangeBranchObjectListener(XPRSchangeBranchObjectListener listener, java.lang.Object data, int priority)Add a listener for the ChangeBranchObject callback.voidaddCheckTimeListener(XPRScheckTimeListener listener)Add a listener for the CheckTime callback.voidaddCheckTimeListener(XPRScheckTimeListener listener, int priority)Add a listener for the CheckTime callback.voidaddCheckTimeListener(XPRScheckTimeListener listener, java.lang.Object data)Add a listener for the CheckTime callback.voidaddCheckTimeListener(XPRScheckTimeListener listener, java.lang.Object data, int priority)Add a listener for the CheckTime callback.voidaddChgBranchListener(XPRSchgBranchListener listener)Deprecated.since 37.00voidaddChgBranchListener(XPRSchgBranchListener listener, int priority)Deprecated.since 37.00voidaddChgBranchListener(XPRSchgBranchListener listener, java.lang.Object data)Deprecated.since 37.00voidaddChgBranchListener(XPRSchgBranchListener listener, java.lang.Object data, int priority)Deprecated.since 37.00voidaddChgNodeListener(XPRSchgNodeListener listener)Deprecated.since 37.00voidaddChgNodeListener(XPRSchgNodeListener listener, int priority)Deprecated.since 37.00voidaddChgNodeListener(XPRSchgNodeListener listener, java.lang.Object data)Deprecated.since 37.00voidaddChgNodeListener(XPRSchgNodeListener listener, java.lang.Object data, int priority)Deprecated.since 37.00intaddCol(double obj, double lb, double ub)Add a single column to this problem.intaddCol(double obj, double lb, double ub, char type)Add a single column to this problem.intaddCol(double obj, double lb, double ub, char type, int[] rowind, double[] rowval)Add a single column to this problem.intaddCol(double obj, double lb, double ub, char type, int[] rowind, double[] rowval, java.lang.String name)Add a single column to the model.intaddCol(double obj, double lb, double ub, char type, java.lang.String name)Add a single column to this problem.intaddCol(double obj, double lb, double ub, java.lang.String name)Add a single column to this problem.voidaddCols(int ncols, int ncoefs, double[] objcoef, int[] start, int[] rowind, double[] rowcoef, double[] lb, double[] ub)Allows columns to be added to the matrix after passing it to the Optimizer using the input routines.voidaddCols(int ncols, long ncoefs, double[] objcoef, long[] start, int[] rowind, double[] rowcoef, double[] lb, double[] ub)Allows columns to be added to the matrix after passing it to the Optimizer using the input routines.intaddColumn(double lb, double ub, ColumnType type, java.lang.String name)Add a single column to this problem.VariableBuilder.ColumnArrayBuilderaddColumns(int dim)Create an 1 dimensional array of columns.VariableBuilder.ColumnArray2BuilderaddColumns(int dim1, int dim2)Create an 2 dimensional array of columns.VariableBuilder.ColumnArray3BuilderaddColumns(int dim1, int dim2, int dim3)Create an 3 dimensional array of columns.VariableBuilder.ColumnArray4BuilderaddColumns(int dim1, int dim2, int dim3, int dim4)Create an 4 dimensional array of columns.VariableBuilder.ColumnArray5BuilderaddColumns(int dim1, int dim2, int dim3, int dim4, int dim5)Create an 5 dimensional array of columns.<K1> VariableBuilder.ColumnMapBuilder<K1>addColumns(java.util.Collection<K1> coll1)Create an 1 dimensional map of columns.<K1,K2>
 VariableBuilder.ColumnMap2Builder<K1,K2>addColumns(java.util.Collection<K1> coll1, java.util.Collection<K2> coll2)Create an 2 dimensional map of columns.<K1,K2,K3>
 VariableBuilder.ColumnMap3Builder<K1,K2,K3>addColumns(java.util.Collection<K1> coll1, java.util.Collection<K2> coll2, java.util.Collection<K3> coll3)Create an 3 dimensional map of columns.<K1,K2,K3,K4>
 VariableBuilder.ColumnMap4Builder<K1,K2,K3,K4>addColumns(java.util.Collection<K1> coll1, java.util.Collection<K2> coll2, java.util.Collection<K3> coll3, java.util.Collection<K4> coll4)Create an 4 dimensional map of columns.<K1,K2,K3,K4,K5>
 VariableBuilder.ColumnMap5Builder<K1,K2,K3,K4,K5>addColumns(java.util.Collection<K1> coll1, java.util.Collection<K2> coll2, java.util.Collection<K3> coll3, java.util.Collection<K4> coll4, java.util.Collection<K5> coll5)Create an 5 dimensional map of columns.<K1> VariableBuilder.ColumnMapBuilder<K1>addColumns(java.util.stream.Stream<K1> strm)Create an 1 dimensional map of columns.<K1> VariableBuilder.ColumnMapBuilder<K1>addColumns(K1[] arr1)Create an 1 dimensional map of columns.<K1,K2>
 VariableBuilder.ColumnMap2Builder<K1,K2>addColumns(K1[] arr1, K2[] arr2)Create an 2 dimensional map of columns.<K1,K2,K3>
 VariableBuilder.ColumnMap3Builder<K1,K2,K3>addColumns(K1[] arr1, K2[] arr2, K3[] arr3)Create an 3 dimensional map of columns.<K1,K2,K3,K4>
 VariableBuilder.ColumnMap4Builder<K1,K2,K3,K4>addColumns(K1[] arr1, K2[] arr2, K3[] arr3, K4[] arr4)Create an 4 dimensional map of columns.<K1,K2,K3,K4,K5>
 VariableBuilder.ColumnMap5Builder<K1,K2,K3,K4,K5>addColumns(K1[] arr1, K2[] arr2, K3[] arr3, K4[] arr4, K5[] arr5)Create an 5 dimensional map of columns.voidaddComputeRestartListener(XPRScomputeRestartListener listener)Add a listener for the ComputeRestart callback.voidaddComputeRestartListener(XPRScomputeRestartListener listener, int priority)Add a listener for the ComputeRestart callback.voidaddComputeRestartListener(XPRScomputeRestartListener listener, java.lang.Object data)Add a listener for the ComputeRestart callback.voidaddComputeRestartListener(XPRScomputeRestartListener listener, java.lang.Object data, int priority)Add a listener for the ComputeRestart callback.voidaddCut(int cuttype, int[] colind, double[] colval, char rowtype, double rhs)Add a single cut to the problem.voidaddCut(int cuttype, XPRSprob.RowInfo cut)Add a single cut to the problem.voidaddCutLogListener(XPRScutLogListener listener)Add a listener for the CutLog callback.voidaddCutLogListener(XPRScutLogListener listener, int priority)Add a listener for the CutLog callback.voidaddCutLogListener(XPRScutLogListener listener, java.lang.Object data)Add a listener for the CutLog callback.voidaddCutLogListener(XPRScutLogListener listener, java.lang.Object data, int priority)Add a listener for the CutLog callback.voidaddCutMgrListener(XPRScutMgrListener listener)Deprecated.since 37.00voidaddCutMgrListener(XPRScutMgrListener listener, int priority)Deprecated.since 37.00voidaddCutMgrListener(XPRScutMgrListener listener, java.lang.Object data)Deprecated.since 37.00voidaddCutMgrListener(XPRScutMgrListener listener, java.lang.Object data, int priority)Deprecated.since 37.00voidaddCuts(int ncuts, int[] cuttype, byte[] rowtype, double[] rhs, int[] start, int[] colind, double[] cutcoef)Adds cuts directly to the matrix at the current node.voidaddCuts(int ncuts, int[] cuttype, byte[] rowtype, double[] rhs, long[] start, int[] colind, double[] cutcoef)Adds cuts directly to the matrix at the current node.voidaddDestroyMTListener(XPRSdestroyMTListener listener)Add a listener for the DestroyMT callback.voidaddDestroyMTListener(XPRSdestroyMTListener listener, int priority)Add a listener for the DestroyMT callback.voidaddDestroyMTListener(XPRSdestroyMTListener listener, java.lang.Object data)Add a listener for the DestroyMT callback.voidaddDestroyMTListener(XPRSdestroyMTListener listener, java.lang.Object data, int priority)Add a listener for the DestroyMT callback.voidaddGapNotifyListener(XPRSgapNotifyListener listener)Add a listener for the GapNotify callback.voidaddGapNotifyListener(XPRSgapNotifyListener listener, int priority)Add a listener for the GapNotify callback.voidaddGapNotifyListener(XPRSgapNotifyListener listener, java.lang.Object data)Add a listener for the GapNotify callback.voidaddGapNotifyListener(XPRSgapNotifyListener listener, java.lang.Object data, int priority)Add a listener for the GapNotify callback.voidaddGenCons(int ncons, int ncols, int nvals, XPRSenumerations.GenConsType[] contype, int[] resultant, int[] colstart, int[] colind, int[] valstart, double[] val)Adds one or more general constraints to the problem.voidaddGenCons(int ncons, long ncols, long nvals, XPRSenumerations.GenConsType[] contype, int[] resultant, long[] colstart, int[] colind, long[] valstart, double[] val)Adds one or more general constraints to the problem.voidaddInfNodeListener(XPRSinfNodeListener listener)Add a listener for the InfNode callback.voidaddInfNodeListener(XPRSinfNodeListener listener, int priority)Add a listener for the InfNode callback.voidaddInfNodeListener(XPRSinfNodeListener listener, java.lang.Object data)Add a listener for the InfNode callback.voidaddInfNodeListener(XPRSinfNodeListener listener, java.lang.Object data, int priority)Add a listener for the InfNode callback.voidaddIntSolListener(XPRSintSolListener listener)Add a listener for the IntSol callback.voidaddIntSolListener(XPRSintSolListener listener, int priority)Add a listener for the IntSol callback.voidaddIntSolListener(XPRSintSolListener listener, java.lang.Object data)Add a listener for the IntSol callback.voidaddIntSolListener(XPRSintSolListener listener, java.lang.Object data, int priority)Add a listener for the IntSol callback.voidaddLpLogListener(XPRSlpLogListener listener)Add a listener for the LpLog callback.voidaddLpLogListener(XPRSlpLogListener listener, int priority)Add a listener for the LpLog callback.voidaddLpLogListener(XPRSlpLogListener listener, java.lang.Object data)Add a listener for the LpLog callback.voidaddLpLogListener(XPRSlpLogListener listener, java.lang.Object data, int priority)Add a listener for the LpLog callback.voidaddMessageListener(XPRSmessageListener listener)Add a listener for the Message callback.voidaddMessageListener(XPRSmessageListener listener, int priority)Add a listener for the Message callback.voidaddMessageListener(XPRSmessageListener listener, java.lang.Object data)Add a listener for the Message callback.voidaddMessageListener(XPRSmessageListener listener, java.lang.Object data, int priority)Add a listener for the Message callback.voidaddMipLogListener(XPRSmipLogListener listener)Add a listener for the MipLog callback.voidaddMipLogListener(XPRSmipLogListener listener, int priority)Add a listener for the MipLog callback.voidaddMipLogListener(XPRSmipLogListener listener, java.lang.Object data)Add a listener for the MipLog callback.voidaddMipLogListener(XPRSmipLogListener listener, java.lang.Object data, int priority)Add a listener for the MipLog callback.voidaddMipSol(double[] val, int[] ind)Add a new MIP solution.voidaddMipSol(double[] val, int[] ind, java.lang.String name)Add a new MIP solution.voidaddMipSol(int length, double[] solval, int[] colind, java.lang.String name)Adds a new feasible, infeasible or partial MIP solution for the problem to the Optimizer.voidaddMipThreadListener(XPRSmipThreadListener listener)Add a listener for the MipThread callback.voidaddMipThreadListener(XPRSmipThreadListener listener, int priority)Add a listener for the MipThread callback.voidaddMipThreadListener(XPRSmipThreadListener listener, java.lang.Object data)Add a listener for the MipThread callback.voidaddMipThreadListener(XPRSmipThreadListener listener, java.lang.Object data, int priority)Add a listener for the MipThread callback.voidaddMsgHandlerListener(XPRSmsgHandlerListener listener)Add a listener for the MsgHandler callback.voidaddMsgHandlerListener(XPRSmsgHandlerListener listener, int priority)Add a listener for the MsgHandler callback.voidaddMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data)Add a listener for the MsgHandler callback.voidaddMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data, int priority)Add a listener for the MsgHandler callback.voidaddMsJobEndListener(XPRSmsJobEndListener listener)Add a listener for the MsJobEnd callback.voidaddMsJobEndListener(XPRSmsJobEndListener listener, int priority)Add a listener for the MsJobEnd callback.voidaddMsJobEndListener(XPRSmsJobEndListener listener, java.lang.Object data)Add a listener for the MsJobEnd callback.voidaddMsJobEndListener(XPRSmsJobEndListener listener, java.lang.Object data, int priority)Add a listener for the MsJobEnd callback.voidaddMsJobStartListener(XPRSmsJobStartListener listener)Add a listener for the MsJobStart callback.voidaddMsJobStartListener(XPRSmsJobStartListener listener, int priority)Add a listener for the MsJobStart callback.voidaddMsJobStartListener(XPRSmsJobStartListener listener, java.lang.Object data)Add a listener for the MsJobStart callback.voidaddMsJobStartListener(XPRSmsJobStartListener listener, java.lang.Object data, int priority)Add a listener for the MsJobStart callback.voidaddMsWinnerListener(XPRSmsWinnerListener listener)Add a listener for the MsWinner callback.voidaddMsWinnerListener(XPRSmsWinnerListener listener, int priority)Add a listener for the MsWinner callback.voidaddMsWinnerListener(XPRSmsWinnerListener listener, java.lang.Object data)Add a listener for the MsWinner callback.voidaddMsWinnerListener(XPRSmsWinnerListener listener, java.lang.Object data, int priority)Add a listener for the MsWinner callback.voidaddNames(int type, java.lang.String[] names, int first, int last)Add names to model.voidaddNames(XPRSenumerations.Namespaces type, java.lang.String[] names, int first, int last)Add names to model.voidaddNewnodeListener(XPRSnewnodeListener listener)Add a listener for the Newnode callback.voidaddNewnodeListener(XPRSnewnodeListener listener, int priority)Add a listener for the Newnode callback.voidaddNewnodeListener(XPRSnewnodeListener listener, java.lang.Object data)Add a listener for the Newnode callback.voidaddNewnodeListener(XPRSnewnodeListener listener, java.lang.Object data, int priority)Add a listener for the Newnode callback.voidaddNlpCoefEvalErrorListener(XPRSnlpCoefEvalErrorListener listener)Add a listener for the NlpCoefEvalError callback.voidaddNlpCoefEvalErrorListener(XPRSnlpCoefEvalErrorListener listener, int priority)Add a listener for the NlpCoefEvalError callback.voidaddNlpCoefEvalErrorListener(XPRSnlpCoefEvalErrorListener listener, java.lang.Object data)Add a listener for the NlpCoefEvalError callback.voidaddNlpCoefEvalErrorListener(XPRSnlpCoefEvalErrorListener listener, java.lang.Object data, int priority)Add a listener for the NlpCoefEvalError callback.voidaddNodeCutoffListener(XPRSnodeCutoffListener listener)Add a listener for the NodeCutoff callback.voidaddNodeCutoffListener(XPRSnodeCutoffListener listener, int priority)Add a listener for the NodeCutoff callback.voidaddNodeCutoffListener(XPRSnodeCutoffListener listener, java.lang.Object data)Add a listener for the NodeCutoff callback.voidaddNodeCutoffListener(XPRSnodeCutoffListener listener, java.lang.Object data, int priority)Add a listener for the NodeCutoff callback.voidaddNodeLPSolvedListener(XPRSnodeLPSolvedListener listener)Add a listener for the NodeLPSolved callback.voidaddNodeLPSolvedListener(XPRSnodeLPSolvedListener listener, int priority)Add a listener for the NodeLPSolved callback.voidaddNodeLPSolvedListener(XPRSnodeLPSolvedListener listener, java.lang.Object data)Add a listener for the NodeLPSolved callback.voidaddNodeLPSolvedListener(XPRSnodeLPSolvedListener listener, java.lang.Object data, int priority)Add a listener for the NodeLPSolved callback.voidaddObj(int ncols, int[] colind, double[] objcoef, int priority, double weight)Appends an objective function with the given coefficients to a multi-objective problem.voidaddOptNodeListener(XPRSoptNodeListener listener)Add a listener for the OptNode callback.voidaddOptNodeListener(XPRSoptNodeListener listener, int priority)Add a listener for the OptNode callback.voidaddOptNodeListener(XPRSoptNodeListener listener, java.lang.Object data)Add a listener for the OptNode callback.voidaddOptNodeListener(XPRSoptNodeListener listener, java.lang.Object data, int priority)Add a listener for the OptNode callback.voidaddPreIntsolListener(XPRSpreIntsolListener listener)Add a listener for the PreIntsol callback.voidaddPreIntsolListener(XPRSpreIntsolListener listener, int priority)Add a listener for the PreIntsol callback.voidaddPreIntsolListener(XPRSpreIntsolListener listener, java.lang.Object data)Add a listener for the PreIntsol callback.voidaddPreIntsolListener(XPRSpreIntsolListener listener, java.lang.Object data, int priority)Add a listener for the PreIntsol callback.voidaddPreNodeListener(XPRSpreNodeListener listener)Add a listener for the PreNode callback.voidaddPreNodeListener(XPRSpreNodeListener listener, int priority)Add a listener for the PreNode callback.voidaddPreNodeListener(XPRSpreNodeListener listener, java.lang.Object data)Add a listener for the PreNode callback.voidaddPreNodeListener(XPRSpreNodeListener listener, java.lang.Object data, int priority)Add a listener for the PreNode callback.voidaddPresolveListener(XPRSpresolveListener listener)Add a listener for the Presolve callback.voidaddPresolveListener(XPRSpresolveListener listener, int priority)Add a listener for the Presolve callback.voidaddPresolveListener(XPRSpresolveListener listener, java.lang.Object data)Add a listener for the Presolve callback.voidaddPresolveListener(XPRSpresolveListener listener, java.lang.Object data, int priority)Add a listener for the Presolve callback.voidaddPwlCons(int npwls, int npoints, int[] colind, int[] resultant, int[] start, double[] xval, double[] yval)Adds one or more piecewise linear constraints to the problem.voidaddPwlCons(int npwls, long npoints, int[] colind, int[] resultant, long[] start, double[] xval, double[] yval)Adds one or more piecewise linear constraints to the problem.voidaddQMatrix(int row, int ncoefs, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef)Adds a new quadratic matrix into a row defined by triplets.voidaddQMatrix(int row, long ncoefs, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef)Adds a new quadratic matrix into a row defined by triplets.intaddRow(int[] colind, double[] colval, char rowtype, double rhs)Add a single row to the problem.intaddRow(int[] colind, double[] colval, char rowtype, double rhs, double rng, java.lang.String name)Add a single row to the problem.intaddRow(int[] colind, double[] colval, char rowtype, double rhs, java.lang.String name)Add a single row to the problem.intaddRow(XPRSprob.RowInfo row)Add a single row to the problem.intaddRow(XPRSprob.RowInfo row, java.lang.String name)Add a single row to the problem.voidaddRows(int nrows, int ncoefs, byte[] rowtype, double[] rhs, double[] rng, int[] start, int[] colind, double[] rowcoef)Allows rows to be added to the matrix after passing it to the Optimizer using the input routines.voidaddRows(int nrows, int ncoefs, byte[] rowtype, double[] rhs, int[] start, int[] colind, double[] rowcoef)Convenience wrapper foraddRows(int, int, byte[], double[], double[], int[], int[], double[]).voidaddRows(int nrows, long ncoefs, byte[] rowtype, double[] rhs, double[] rng, long[] start, int[] colind, double[] rowcoef)Allows rows to be added to the matrix after passing it to the Optimizer using the input routines.voidaddRows(int nrows, long ncoefs, byte[] rowtype, double[] rhs, long[] start, int[] colind, double[] rowcoef)Convenience wrapper foraddRows(int, long, byte[], double[], double[], long[], int[], double[]).intaddSet(SetType type, int[] elements, double[] weights, java.lang.String name)Add a single set constraint to this problem.voidaddSetNames(java.lang.String[] names, int first, int last)Add names to sets.int[]addSets(int count, int[] start, SetType[] type, int[] setind, double[] setref, java.lang.String[] names)Create multiple set constraints.voidaddSets(int nsets, int nelems, byte[] settype, int[] start, int[] colind, double[] refval)Allows sets to be added to the problem after passing it to the Optimizer using the input routines.voidaddSets(int nsets, long nelems, byte[] settype, long[] start, int[] colind, double[] refval)Allows sets to be added to the problem after passing it to the Optimizer using the input routines.int[]addSets(SetType[] type, int[][] elements, double[][] weights, java.lang.String[] name)Add multiple set constraints to the problem.voidaddSlpCascadeEndListener(XPRSslpCascadeEndListener listener)Add a listener for the SlpCascadeEnd callback.voidaddSlpCascadeEndListener(XPRSslpCascadeEndListener listener, int priority)Add a listener for the SlpCascadeEnd callback.voidaddSlpCascadeEndListener(XPRSslpCascadeEndListener listener, java.lang.Object data)Add a listener for the SlpCascadeEnd callback.voidaddSlpCascadeEndListener(XPRSslpCascadeEndListener listener, java.lang.Object data, int priority)Add a listener for the SlpCascadeEnd callback.voidaddSlpCascadeStartListener(XPRSslpCascadeStartListener listener)Add a listener for the SlpCascadeStart callback.voidaddSlpCascadeStartListener(XPRSslpCascadeStartListener listener, int priority)Add a listener for the SlpCascadeStart callback.voidaddSlpCascadeStartListener(XPRSslpCascadeStartListener listener, java.lang.Object data)Add a listener for the SlpCascadeStart callback.voidaddSlpCascadeStartListener(XPRSslpCascadeStartListener listener, java.lang.Object data, int priority)Add a listener for the SlpCascadeStart callback.voidaddSlpCascadeVarFailListener(XPRSslpCascadeVarFailListener listener)Add a listener for the SlpCascadeVarFail callback.voidaddSlpCascadeVarFailListener(XPRSslpCascadeVarFailListener listener, int priority)Add a listener for the SlpCascadeVarFail callback.voidaddSlpCascadeVarFailListener(XPRSslpCascadeVarFailListener listener, java.lang.Object data)Add a listener for the SlpCascadeVarFail callback.voidaddSlpCascadeVarFailListener(XPRSslpCascadeVarFailListener listener, java.lang.Object data, int priority)Add a listener for the SlpCascadeVarFail callback.voidaddSlpCascadeVarListener(XPRSslpCascadeVarListener listener)Add a listener for the SlpCascadeVar callback.voidaddSlpCascadeVarListener(XPRSslpCascadeVarListener listener, int priority)Add a listener for the SlpCascadeVar callback.voidaddSlpCascadeVarListener(XPRSslpCascadeVarListener listener, java.lang.Object data)Add a listener for the SlpCascadeVar callback.voidaddSlpCascadeVarListener(XPRSslpCascadeVarListener listener, java.lang.Object data, int priority)Add a listener for the SlpCascadeVar callback.voidaddSlpConstructListener(XPRSslpConstructListener listener)Add a listener for the SlpConstruct callback.voidaddSlpConstructListener(XPRSslpConstructListener listener, int priority)Add a listener for the SlpConstruct callback.voidaddSlpConstructListener(XPRSslpConstructListener listener, java.lang.Object data)Add a listener for the SlpConstruct callback.voidaddSlpConstructListener(XPRSslpConstructListener listener, java.lang.Object data, int priority)Add a listener for the SlpConstruct callback.voidaddSlpDrColListener(XPRSslpDrColListener listener)Add a listener for the SlpDrCol callback.voidaddSlpDrColListener(XPRSslpDrColListener listener, int priority)Add a listener for the SlpDrCol callback.voidaddSlpDrColListener(XPRSslpDrColListener listener, java.lang.Object data)Add a listener for the SlpDrCol callback.voidaddSlpDrColListener(XPRSslpDrColListener listener, java.lang.Object data, int priority)Add a listener for the SlpDrCol callback.voidaddSlpIntSolListener(XPRSslpIntSolListener listener)Add a listener for the SlpIntSol callback.voidaddSlpIntSolListener(XPRSslpIntSolListener listener, int priority)Add a listener for the SlpIntSol callback.voidaddSlpIntSolListener(XPRSslpIntSolListener listener, java.lang.Object data)Add a listener for the SlpIntSol callback.voidaddSlpIntSolListener(XPRSslpIntSolListener listener, java.lang.Object data, int priority)Add a listener for the SlpIntSol callback.voidaddSlpIterEndListener(XPRSslpIterEndListener listener)Add a listener for the SlpIterEnd callback.voidaddSlpIterEndListener(XPRSslpIterEndListener listener, int priority)Add a listener for the SlpIterEnd callback.voidaddSlpIterEndListener(XPRSslpIterEndListener listener, java.lang.Object data)Add a listener for the SlpIterEnd callback.voidaddSlpIterEndListener(XPRSslpIterEndListener listener, java.lang.Object data, int priority)Add a listener for the SlpIterEnd callback.voidaddSlpIterStartListener(XPRSslpIterStartListener listener)Add a listener for the SlpIterStart callback.voidaddSlpIterStartListener(XPRSslpIterStartListener listener, int priority)Add a listener for the SlpIterStart callback.voidaddSlpIterStartListener(XPRSslpIterStartListener listener, java.lang.Object data)Add a listener for the SlpIterStart callback.voidaddSlpIterStartListener(XPRSslpIterStartListener listener, java.lang.Object data, int priority)Add a listener for the SlpIterStart callback.voidaddSlpIterVarListener(XPRSslpIterVarListener listener)Add a listener for the SlpIterVar callback.voidaddSlpIterVarListener(XPRSslpIterVarListener listener, int priority)Add a listener for the SlpIterVar callback.voidaddSlpIterVarListener(XPRSslpIterVarListener listener, java.lang.Object data)Add a listener for the SlpIterVar callback.voidaddSlpIterVarListener(XPRSslpIterVarListener listener, java.lang.Object data, int priority)Add a listener for the SlpIterVar callback.voidaddSlpPreUpdateLinearizationListener(XPRSslpPreUpdateLinearizationListener listener)Add a listener for the SlpPreUpdateLinearization callback.voidaddSlpPreUpdateLinearizationListener(XPRSslpPreUpdateLinearizationListener listener, int priority)Add a listener for the SlpPreUpdateLinearization callback.voidaddSlpPreUpdateLinearizationListener(XPRSslpPreUpdateLinearizationListener listener, java.lang.Object data)Add a listener for the SlpPreUpdateLinearization callback.voidaddSlpPreUpdateLinearizationListener(XPRSslpPreUpdateLinearizationListener listener, java.lang.Object data, int priority)Add a listener for the SlpPreUpdateLinearization callback.voidaddUserSolNotifyListener(XPRSuserSolNotifyListener listener)Add a listener for the UserSolNotify callback.voidaddUserSolNotifyListener(XPRSuserSolNotifyListener listener, int priority)Add a listener for the UserSolNotify callback.voidaddUserSolNotifyListener(XPRSuserSolNotifyListener listener, java.lang.Object data)Add a listener for the UserSolNotify callback.voidaddUserSolNotifyListener(XPRSuserSolNotifyListener listener, java.lang.Object data, int priority)Add a listener for the UserSolNotify callback.voidalter(java.lang.String filename)Alters or changes matrix elements, right hand sides and constraint senses in the current problem.XPRSprob.Attributesattributes()Access the attributes of this instance.voidbasisCondition(DoubleHolder p_cond, DoubleHolder p_scaledcond)Deprecated.doublebasisStability(int type, int norm, boolean ifscaled)Compute basis stability.doublebasisStability(int type, int norm, int scaled)Convenience wrapper forbasisStability(int,int,int,com.dashoptimization.DoubleHolder)that returns the output argument.voidbasisStability(int type, int norm, int scaled, DoubleHolder p_value)Calculates various measures for the stability of the current basis, including the basis condition number.intbinVar()Deprecated.since 43.00, use addColumn insteadintbinVar(java.lang.String name)Deprecated.since 43.00, use addBinaryCol insteadint[]binVarArray(int count, java.util.function.Function<java.lang.Integer,java.lang.String> name)Deprecated.since 43.00, use addColumns instead<T> int[]binVarArray(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns instead<T> java.util.Map<T,java.lang.Integer>binVarMap(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns instead<T> java.util.Map<T,java.lang.Integer>binVarMap(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.String> name, java.util.Map<T,java.lang.Integer> map)Deprecated.since 43.00, use addColumns insteadvoidbndsa(int ncols, int[] colind, double[] lblower, double[] lbupper, double[] ublower, double[] ubupper)Returns upper and lower sensitivity ranges for specified variables' lower and upper bounds.voidbtran(double[] vec)Post-multiplies a (row) vector provided by the user by the inverse of the current basis.int[][]buildColumns(VariableBuilder.Array2Builder builder)Add variables as specified by the builder.int[][]buildColumns(VariableBuilder.Array2Builder builder, java.util.function.Consumer<int[][]> transformResult)TODO: Hide this from the user.<I> IbuildColumns(VariableBuilder.Array2Builder builder, java.util.function.Supplier<I> makeResult, Action4<I,java.lang.Integer,java.lang.Integer,java.lang.Integer> addResult)Add columns as specified by the builder.int[][][]buildColumns(VariableBuilder.Array3Builder builder)Add variables as specified by the builder.int[][][]buildColumns(VariableBuilder.Array3Builder builder, java.util.function.Consumer<int[][][]> transformResult)TODO: Hide this from the user.<I> IbuildColumns(VariableBuilder.Array3Builder builder, java.util.function.Supplier<I> makeResult, Action5<I,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer> addResult)Add columns as specified by the builder.int[][][][]buildColumns(VariableBuilder.Array4Builder builder)Add variables as specified by the builder.int[][][][]buildColumns(VariableBuilder.Array4Builder builder, java.util.function.Consumer<int[][][][]> transformResult)TODO: Hide this from the user.<I> IbuildColumns(VariableBuilder.Array4Builder builder, java.util.function.Supplier<I> makeResult, Action6<I,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer> addResult)Add columns as specified by the builder.int[][][][][]buildColumns(VariableBuilder.Array5Builder builder)Add variables as specified by the builder.int[][][][][]buildColumns(VariableBuilder.Array5Builder builder, java.util.function.Consumer<int[][][][][]> transformResult)TODO: Hide this from the user.<I> IbuildColumns(VariableBuilder.Array5Builder builder, java.util.function.Supplier<I> makeResult, Action7<I,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer> addResult)Add columns as specified by the builder.int[]buildColumns(VariableBuilder.ArrayBuilder builder)Add variables as specified by the builder.int[]buildColumns(VariableBuilder.ArrayBuilder builder, java.util.function.Consumer<int[]> transformResult)TODO: Hide this from the user.<I> IbuildColumns(VariableBuilder.ArrayBuilder builder, java.util.function.Supplier<I> makeResult, Action3<I,java.lang.Integer,java.lang.Integer> addResult)Add columns as specified by the builder.<K1,K2>
 HashMap2<K1,K2,java.lang.Integer>buildColumns(VariableBuilder.Map2Builder<K1,K2> builder)Create a column map from a builder.<K1,K2>
 voidbuildColumns(VariableBuilder.Map2Builder<K1,K2> builder, Action3<K1,K2,java.lang.Integer> addKey, java.lang.Runnable makeResult)Create a column map from a builder.<I,K1,K2>
 IbuildColumns(VariableBuilder.Map2Builder<K1,K2> builder, java.util.function.Supplier<I> makeResult, Action4<I,K1,K2,java.lang.Integer> addResult)Create a column map from a builder.<K1,K2,K3>
 HashMap3<K1,K2,K3,java.lang.Integer>buildColumns(VariableBuilder.Map3Builder<K1,K2,K3> builder)Create a column map from a builder.<K1,K2,K3>
 voidbuildColumns(VariableBuilder.Map3Builder<K1,K2,K3> builder, Action4<K1,K2,K3,java.lang.Integer> addKey, java.lang.Runnable makeResult)Create a column map from a builder.<I,K1,K2,K3>
 IbuildColumns(VariableBuilder.Map3Builder<K1,K2,K3> builder, java.util.function.Supplier<I> makeResult, Action5<I,K1,K2,K3,java.lang.Integer> addResult)Create a column map from a builder.<K1,K2,K3,K4>
 HashMap4<K1,K2,K3,K4,java.lang.Integer>buildColumns(VariableBuilder.Map4Builder<K1,K2,K3,K4> builder)Create a column map from a builder.<K1,K2,K3,K4>
 voidbuildColumns(VariableBuilder.Map4Builder<K1,K2,K3,K4> builder, Action5<K1,K2,K3,K4,java.lang.Integer> addKey, java.lang.Runnable makeResult)Create a column map from a builder.<I,K1,K2,K3,K4>
 IbuildColumns(VariableBuilder.Map4Builder<K1,K2,K3,K4> builder, java.util.function.Supplier<I> makeResult, Action6<I,K1,K2,K3,K4,java.lang.Integer> addResult)Create a column map from a builder.<K1,K2,K3,K4,K5>
 HashMap5<K1,K2,K3,K4,K5,java.lang.Integer>buildColumns(VariableBuilder.Map5Builder<K1,K2,K3,K4,K5> builder)Create a column map from a builder.<K1,K2,K3,K4,K5>
 voidbuildColumns(VariableBuilder.Map5Builder<K1,K2,K3,K4,K5> builder, Action6<K1,K2,K3,K4,K5,java.lang.Integer> addKey, java.lang.Runnable makeResult)Create a column map from a builder.<I,K1,K2,K3,K4,K5>
 IbuildColumns(VariableBuilder.Map5Builder<K1,K2,K3,K4,K5> builder, java.util.function.Supplier<I> makeResult, Action7<I,K1,K2,K3,K4,K5,java.lang.Integer> addResult)Create a column map from a builder.<K1> java.util.HashMap<K1,java.lang.Integer>buildColumns(VariableBuilder.MapBuilder<K1> builder)Create a column map from a builder.<K1> voidbuildColumns(VariableBuilder.MapBuilder<K1> builder, java.util.function.BiConsumer<K1,java.lang.Integer> addKey, java.lang.Runnable makeResult)Create a column map from a builder.<I,K1>
 IbuildColumns(VariableBuilder.MapBuilder<K1> builder, java.util.function.Supplier<I> makeResult, Action3<I,K1,java.lang.Integer> addResult)Create a column map from a builder.doublecalcObjective(double[] solution)Convenience wrapper forcalcObjective(double[],com.dashoptimization.DoubleHolder)that returns the output argument.voidcalcObjective(double[] solution, DoubleHolder p_objval)Calculates the objective value of a given solution.doublecalcObjN(int objidx, double[] solution)Convenience wrapper forcalcObjN(int,double[],com.dashoptimization.DoubleHolder)that returns the output argument.voidcalcObjN(int objidx, double[] solution, DoubleHolder p_objval)Calculates the objective value of the given objective function in a multi-objective problem.voidcalcReducedCosts(double[] duals, double[] solution, double[] djs)Calculates the reduced cost values for a given (row) dual solution.voidcalcSlacks(double[] solution, double[] slacks)Calculates the row slack values for a given solution.doublecalcSolInfo(double[] solution, double[] duals, int property)Convenience wrapper forcalcSolInfo(double[],double[],int,com.dashoptimization.DoubleHolder)that returns the output argument.voidcalcSolInfo(double[] solution, double[] duals, int property, DoubleHolder p_value)Calculates the required property of a solution, like maximum infeasibility of a given primal and dual solution.voidchgBounds(int j, double lb, double ub)Change bounds of a single variable.voidchgBounds(int nbounds, int[] colind, byte[] bndtype, double[] bndval)Used to change the bounds on columns in the matrix.voidchgCoef(int row, int col, double coef)Used to change a single coefficient in the matrix.voidchgColType(int x, byte value)Convenience wrapper forchgColType(int, int[], byte[]).voidchgColType(int ncols, int[] colind, byte[] coltype)Used to change the type of a specified set of columns in the matrix.voidchgGlbLimit(int x, double value)Convenience wrapper forchgGlbLimit(int, int[], double[]).voidchgGlbLimit(int ncols, int[] colind, double[] limit)Used to change semi-continuous or semi-integer lower bounds, or upper limits on partial integers.voidchgLB(int j, double lb)Change the lower bound of a single variable.voidchgMCoef(int[] _mrow, int[] _mcol, double[] _dval, int ncoeffs)Deprecated.voidchgMCoef(int ncoefs, int[] rowind, int[] colind, double[] rowcoef)Used to change multiple coefficients in the matrix.voidchgMCoef(long ncoefs, int[] rowind, int[] colind, double[] rowcoef)Used to change multiple coefficients in the matrix.voidchgMQObj(int[] _mcol1, int[] _mcol2, double[] _dval, int ncols)Deprecated.voidchgMQObj(int ncoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef)Used to change multiple quadratic coefficients in the objective function.voidchgMQObj(long ncoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef)Used to change multiple quadratic coefficients in the objective function.voidchgObj(int x, double value)Convenience wrapper forchgObj(int, int[], double[]).voidchgObj(int ncols, int[] colind, double[] objcoef)Used to change the objective function coefficients.voidchgObjN(int objidx, int ncols, int[] colind, double[] objcoef)Modifies one or more coefficients of an objective function in a multi-objective problem.voidchgObjSense(int objsense)Deprecated.use chgObjSense(com.dashoptimization.XPRSenumerations.ObjSense) insteadvoidchgObjSense(XPRSenumerations.ObjSense objsense)Changes the problem's objective function sense to minimize or maximize.voidchgQObj(int objqcol1, int objqcol2, double objqcoef)Used to change a single quadratic coefficient in the objective function corresponding to the variable pair(objqcol1,objqcol2)of the Hessian matrix.voidchgQRowCoeff(int row, int rowqcol1, int rowqcol2, double rowqcoef)Changes a single quadratic coefficient in a row.voidchgRHS(int x, double value)Convenience wrapper forchgRHS(int, int[], double[]).voidchgRHS(int nrows, int[] rowind, double[] rhs)Used to change right—hand side values of the problem.voidchgRHSrange(int x, double value)Convenience wrapper forchgRHSrange(int, int[], double[]).voidchgRHSrange(int nrows, int[] rowind, double[] rng)Used to change the range for a row of the problem matrix.voidchgRowType(int x, byte value)Convenience wrapper forchgRowType(int, int[], byte[]).voidchgRowType(int nrows, int[] rowind, byte[] rowtype)Used to change the type of a row in the matrix.voidchgUB(int j, double ub)Change the upper bound of a single variable.voidclearIIS()Resets the search for Irreducible Infeasible Sets (IIS).voidclearObjective()Clear the objective function.voidclearRowFlags(int[] flags, int first, int last)Clears extra information attached to a range of rows.voidclose()Destroy the problem, deallocating all memory used.XPRSprob.Controlscontrols()Access the controls of this instance.intcontVar()Deprecated.since 43.00, use addContinuousCol insteadintcontVar(double lb, double ub)Deprecated.since 43.00, use addContinuousCol insteadintcontVar(double lb, double ub, java.lang.String name)Deprecated.since 43.00, use addContinuousCol insteadintcontVar(java.lang.String name)Deprecated.since 43.00, use addContinuousCol insteadint[]contVarArray(int count, double[] lb, double[] ub, java.lang.String[] name)Deprecated.since 43.00, use addContinuousColArray insteadint[]contVarArray(int count, double lb, double ub, java.util.function.Function<java.lang.Integer,java.lang.String> name)Deprecated.since 43.00, use addContinuousColArray insteadint[]contVarArray(int count, java.util.function.Function<java.lang.Integer,java.lang.Double> lb, java.util.function.Function<java.lang.Integer,java.lang.Double> ub, java.util.function.Function<java.lang.Integer,java.lang.String> name)Deprecated.since 43.00, use addContinuousColArray instead<T> int[]contVarArray(java.util.Collection<T> objs, double lb, double ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addContinuousColArray instead<T> int[]contVarArray(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addContinuousColArray instead<T> java.util.Map<T,java.lang.Integer>contVarMap(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addContinuousColMap instead<T> java.util.Map<T,java.lang.Integer>contVarMap(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name, java.util.Map<T,java.lang.Integer> map)Deprecated.since 43.00, use addContinuousColMap insteadvoidcopyCallBacks(XPRSprob src)Copies callback functions defined for one problem to another.voidcopyControls(XPRSprob src)Copies controls defined for one problem to another.voidcopyProb(XPRSprob src)Copy another problem over this oneXPRSbranchobjectcreateBranchObject(boolean isOriginal)Creates a new XPRSbranchobjectXPRSbranchobjectcreateBranchObjectFromGlobal(int icol)Creates a new XPRSbranchobjectintcrossoverLpSol()Convenience wrapper forcrossoverLpSol(com.dashoptimization.IntHolder)that returns the output argument.voidcrossoverLpSol(IntHolder p_status)Provides a basic optimal solution for a given solution of an LP problem.voiddelCols(int ncols, int[] colind)Delete columns from a matrix.voiddelCPCuts()Convenience wrapper fordelCPCuts(int, int, int, XPRScut[]).voiddelCPCuts(int cuttype, int interp)Convenience wrapper fordelCPCuts(int, int, int, XPRScut[]).voiddelCPCuts(int itype, int interp, int ncuts, long[] mcutind)Deprecated.voiddelCPCuts(int cuttype, int interp, int ncuts, XPRScut[] cutind)During the branch and bound search, cuts are stored in the cut pool to be applied at descendant nodes.voiddelCPCuts(int ncuts, XPRScut[] cutind)Convenience wrapper fordelCPCuts(int, int, int, XPRScut[]).voiddelCuts(int basis)Convenience wrapper fordelCuts(int, int, int, double, int, XPRScut[]).voiddelCuts(int basis, int cuttype, int interp)Convenience wrapper fordelCuts(int, int, int, double, int, XPRScut[]).voiddelCuts(int basis, int cuttype, int interp, double delta)Convenience wrapper fordelCuts(int, int, int, double, int, XPRScut[]).voiddelCuts(int ibasis, int itype, int interp, double delta, int ncuts, long[] mcutind)Deprecated.voiddelCuts(int basis, int cuttype, int interp, double delta, int ncuts, XPRScut[] cutind)Deletes cuts from the matrix at the current node.voiddelCuts(int basis, int ncuts, XPRScut[] cutind)Convenience wrapper fordelCuts(int, int, int, double, int, XPRScut[]).voiddelGenCons(int ncons, int[] conind)Delete general constraints from a problem.voiddelIndicator(int row)Delete a single indicator constraint.voiddelIndicators(int first, int last)Delete indicator constraints.voiddelObj(int objidx)Removes an objective function from a multi-objective problem.voiddelPwlCons(int npwls, int[] pwlind)Delete piecewise linear constraints from a problem.voiddelQMatrix(int row)Deletes the quadratic part of a row or of the objective function.voiddelRows(int nrows, int[] rowind)Delete rows from a matrix.voiddelSets(int nsets, int[] setind)Delete sets from a problem.voiddestroyProb()Deprecated.useclose()instead.voiddumpControls()Displays the list of controls and their current value for those controls that have been set to a non default value.voidestimateRowDualRanges(int nrows, int[] rowind, int iterlim, double[] mindual, double[] maxdual)Performs a dual side range sensitivity analysis, i.e.intfirstIIS(int mode)Convenience wrapper forfirstIIS(int,com.dashoptimization.IntHolder)that returns the output argument.voidfirstIIS(int mode, IntHolder p_status)Initiates a search for an Irreducible Infeasible Set (IIS) in an infeasible problem.voidfixGlobals(int options)Deprecated.Deprecated since 40.01, usefixMIPEntities(int)instead.voidfixMIPEntities(int options)Fixes all the MIP entities to the values of the last found MIP solution.voidftran(double[] vec)Pre-multiplies a (column) vector provided by the user by the inverse of the current matrix.XPRSprob.AttributeInfogetAttribInfo(java.lang.String name)Get info about an attribute.voidgetAttribInfo(java.lang.String name, IntHolder p_id, XPRSenumerationHolders.ParameterType p_type)Accesses the id number and the type information of an attribute given its name.voidgetBarNumStability(int[] colstab, int[] rowstab)voidgetBasis(int[] rowstat, int[] colstat)Returns the current basis into the user's data arrays.XPRSprob.BasisValuegetBasisVal(int row, int col)Get basis status for a column or row.voidgetBasisVal(int row, int col, IntHolder p_rowstat, IntHolder p_colstat)Returns the current basis status for a specific column or row.doublegetCoef(int row, int col)Convenience wrapper forgetCoef(int,int,com.dashoptimization.DoubleHolder)that returns the output argument.voidgetCoef(int row, int col, DoubleHolder p_coef)Returns a single coefficient in the constraint matrix.intgetColBasisVal(int col)Get basis status for a column.intgetCols(int[] start, int[] rowind, double[] rowcoef, int maxcoefs, int first, int last)Convenience wrapper forgetCols(int[], int[], double[], int, com.dashoptimization.IntHolder, int, int).voidgetCols(int[] start, int[] rowind, double[] rowcoef, int maxcoefs, IntHolder p_ncoefs, int first, int last)Returns the nonzeros in the constraint matrix for the columns in a given range.XPRSprob.MatrixInfogetCols(int first, int last)Get range of columns.longgetCols(long[] start, int[] rowind, double[] rowcoef, long maxcoefs, int first, int last)Convenience wrapper forgetCols(long[], int[], double[], long, com.dashoptimization.LongHolder, int, int).voidgetCols(long[] start, int[] rowind, double[] rowcoef, long maxcoefs, LongHolder p_ncoefs, int first, int last)Returns the nonzeros in the constraint matrix for the columns in a given range.voidgetColType(byte[] coltype, int first, int last)Returns the column types for the columns in a given range.bytegetColType(int x)Convenience wrapper forgetColType(byte[], int, int).byte[]getColType(int first, int last)Convenience wrapper forgetColType(byte[], int, int).java.lang.StringgetColumnName(int index)Get a column name.java.lang.String[]getColumnNames(int first, int last)Get names of columns.XPRSprob.ControlInfogetControlInfo(java.lang.String name)Get info about a control.voidgetControlInfo(java.lang.String name, IntHolder p_id, XPRSenumerationHolders.ParameterType p_type)Accesses the id number and the type information of a control given its name.intgetCPCutList(int cuttype, int interp, double delta, int maxcuts, XPRScut[] cutind, double[] viol)Convenience wrapper forgetCPCutList(int, int, double, com.dashoptimization.IntHolder, int, XPRScut[], double[]).voidgetCPCutList(int itype, int interp, double delta, IntHolder ncuts, int maxcuts, long[] mcutind, double[] dviol)voidgetCPCutList(int cuttype, int interp, double delta, IntHolder p_ncuts, int maxcuts, XPRScut[] cutind, double[] viol)Returns a list of cut indices from the cut pool.intgetCPCutList(int maxcuts, XPRScut[] cutind, double[] viol)Convenience wrapper forgetCPCutList(int, int, double, com.dashoptimization.IntHolder, int, XPRScut[], double[]).voidgetCPCuts(long[] mindex, int ncuts, int size, int[] mtype, byte[] qrtype, int[] mstart, int[] mcols, double[] dmatval, double[] drhs)Deprecated.voidgetCPCuts(XPRScut[] rowind, int ncuts, int maxcoefs, int[] cuttype, byte[] rowtype, int[] start, int[] colind, double[] cutcoef, double[] rhs)Returns cuts from the cut pool.voidgetCPCuts(XPRScut[] rowind, int ncuts, long maxcoefs, int[] cuttype, byte[] rowtype, long[] start, int[] colind, double[] cutcoef, double[] rhs)Returns cuts from the cut pool.XPRScut[]getCutList(int cuttype, int interp)Retrieves a list of cut pointers for the cuts active at the current node.intgetCutList(int cuttype, int interp, int maxcuts, XPRScut[] cutind)Convenience wrapper forgetCutList(int, int, com.dashoptimization.IntHolder, int, XPRScut[]).voidgetCutList(int itype, int interp, IntHolder ncuts, int maxcuts, long[] mcutind)Deprecated.voidgetCutList(int cuttype, int interp, IntHolder p_ncuts, int maxcuts, XPRScut[] cutind)Retrieves a list of cut pointers for the cuts active at the current node.intgetCutList(int maxcuts, XPRScut[] cutind)Convenience wrapper forgetCutList(int, int, com.dashoptimization.IntHolder, int, XPRScut[]).voidgetCutMap(int ncuts, XPRScut[] cutind, int[] cutmap)Used to return in which rows a list of cuts are currently loaded into the Optimizer.doublegetCutSlack(XPRScut cutind)Convenience wrapper forgetCutSlack(XPRScut,com.dashoptimization.DoubleHolder)that returns the output argument.voidgetCutSlack(XPRScut cutind, DoubleHolder p_slack)Used to calculate the slack value of a cut with respect to the current LP relaxation solution.doublegetDblAttrib(int attrib)Convenience wrapper forgetDblAttrib(int,com.dashoptimization.DoubleHolder)that returns the output argument.voidgetDblAttrib(int attrib, DoubleHolder p_value)Enables users to retrieve the values of various double problem attributes.doublegetDblControl(int control)Convenience wrapper forgetDblControl(int,com.dashoptimization.DoubleHolder)that returns the output argument.voidgetDblControl(int control, DoubleHolder p_value)Retrieves the value of a given double control parameter.intgetDirs()Convenience wrapper forgetDirs(com.dashoptimization.IntHolder, int[], int[], byte[], double[], double[]).intgetDirs(int[] indices, int[] prios, byte[] branchdirs, double[] uppseudo, double[] downpseudo)Convenience wrapper forgetDirs(com.dashoptimization.IntHolder, int[], int[], byte[], double[], double[]).voidgetDirs(IntHolder p_ndir, int[] indices, int[] prios, byte[] branchdirs, double[] uppseudo, double[] downpseudo)Used to return the directives that have been loaded into a matrix.XPRSprob.MIPEntityInfogetDiscreteCols()Get information about MIP entities.doublegetDual(int index)Convenience wrapper forgetDuals(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value./ Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...doublegetDual(IntHolder status, int index)Convenience wrapper forgetDuals(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value.booleangetDualRay(double[] ray)Get dual ray.voidgetDualRay(double[] ray, IntHolder p_hasray)Retrieves a dual ray (dual unbounded direction) for the current problem, if the problem is found to be infeasible.double[]getDuals()Convenience wrapper forgetDuals(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements.double[]getDuals(int first, int last)Convenience wrapper forgetDuals(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array.double[]getDuals(IntHolder status)Convenience wrapper forgetDuals(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements.voidgetDuals(IntHolder status, double[] duals, int first, int last)Used to obtain the dual values associated with the incumbent solution during or after optimization withoptimize,mipOptimize,lpOptimizeornlpOptimize.double[]getDuals(IntHolder status, int first, int last)Convenience wrapper forgetDuals(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array.XPRSprob.GeneralConstraintInfogetGenCons(int first, int last)Query a range of general constraints.voidgetGenCons(XPRSenumerations.GenConsType[] contype, int[] resultant, int[] colstart, int[] colind, int maxcols, IntHolder p_ncols, int[] valstart, double[] val, int maxvals, IntHolder p_nvals, int first, int last)Returns the general constraintsy = f(x1, ..., xn, c1, ..., cm)in a given range.voidgetGenCons(XPRSenumerations.GenConsType[] contype, int[] resultant, long[] colstart, int[] colind, long maxcols, LongHolder p_ncols, long[] valstart, double[] val, long maxvals, LongHolder p_nvals, int first, int last)Returns the general constraintsy = f(x1, ..., xn, c1, ..., cm)in a given range.java.lang.StringgetGenConsName(int index)Get a general constraint name.java.lang.String[]getGenConsNames(int first, int last)Get names of general constraints.XPRSprob.GlobalInfogetGlobal()Deprecated.Deprecated since 40.01, usegetMIPEntities()instead.voidgetGlobal(IntHolder p_nentities, IntHolder p_nsets, byte[] coltype, int[] colind, double[] limit, byte[] settype, int[] start, int[] setcols, double[] refval)Deprecated.Deprecated since 40.01, usegetMIPEntities(IntHolder, IntHolder, byte[], int[], double[], byte[], int[], int[], double[])instead.XPRSprob.GlobalInfogetGlobalEntities()Deprecated.Deprecated since 40.01, usegetDiscreteCols()instead.XPRSprob.GlobalInfogetGlobalSets()Deprecated.Deprecated since 40.01, usegetSets()instead.XPRSprob.IISDatagetIISData(int number)Get information about an IIS.voidgetIISData(int iis, IntHolder p_nrows, IntHolder p_ncols, int[] rowind, int[] colind, byte[] contype, byte[] bndtype, double[] duals, double[] djs, byte[] isolationrows, byte[] isolationcols)Returns information for an Irreducible Infeasible Set: size, variables and constraints (row and column vectors), and conflicting sides of the variables.intgetIndex(int type, java.lang.String name)Convenience wrapper forgetIndex(int,String,com.dashoptimization.IntHolder)that returns the output argument.voidgetIndex(int type, java.lang.String name, IntHolder p_index)Returns the index for a specified row or column name.IndicatorInfogetIndicator(int row)Get indicator information for a single row.voidgetIndicators(int[] colind, int[] complement, int first, int last)Returns the indicator constraint condition (indicator variable and complement flag) associated to the rows in a given range.IndicatorInfo[]getIndicators(int first, int last)Get indicator information for a range of rows.XPRSprob.InfeasInfogetInfeas()Get infeasibilities.voidgetInfeas(IntHolder p_nprimalcols, IntHolder p_nprimalrows, IntHolder p_ndualrows, IntHolder p_ndualcols, int[] x, int[] slack, int[] duals, int[] djs)Returns a list of infeasible primal and dual variables.intgetIntAttrib(int attrib)Convenience wrapper forgetIntAttrib(int,com.dashoptimization.IntHolder)that returns the output argument.voidgetIntAttrib(int attrib, IntHolder p_value)Enables users to recover the values of various integer problem attributes.intgetIntControl(int control)Convenience wrapper forgetIntControl(int,com.dashoptimization.IntHolder)that returns the output argument.voidgetIntControl(int control, IntHolder p_value)Enables users to recover the values of various integer control parametersXPRSprob.StatusSolutiongetLastBarSol()Get a solution.intgetLastBarSol(double[] x, double[] slack, double[] duals, double[] djs)Get the last barrier solution.voidgetLastBarSol(double[] x, double[] slack, double[] duals, double[] djs, IntHolder p_status)Used to obtain the last barrier solution values following optimization that used the barrier solver.double[]getLastBarSolDjs()Get the djs values of a solution.double[]getLastBarSolDuals()Get the duals values of a solution.double[]getLastBarSolSlack()Get the slack values of a solution.double[]getLastBarSolX()Get the x values of a solution.java.lang.StringgetLastError()Convenience wrapper forgetLastError(com.dashoptimization.StringHolder).voidgetLastError(StringHolder errmsg)Returns the error message corresponding to the last error encountered by a library function.voidgetLB(double[] lb, int first, int last)Returns the lower bounds for the columns in a given range.doublegetLB(int x)Convenience wrapper forgetLB(double[], int, int).double[]getLB(int first, int last)Convenience wrapper forgetLB(double[], int, int).longgetLongAttrib(int attrib)Convenience wrapper forgetLongAttrib(int,com.dashoptimization.LongHolder)that returns the output argument.voidgetLongAttrib(int attrib, LongHolder p_value)Enables users to recover the values of various integer problem attributes.longgetLongControl(int control)Convenience wrapper forgetLongControl(int,com.dashoptimization.LongHolder)that returns the output argument.voidgetLongControl(int control, LongHolder p_value)Enables users to recover the values of various integer control parametersXPRSprob.SolutiongetLpSol()Get a solution.voidgetLpSol(double[] x)Convenience wrapper forgetLpSol(double[], double[], double[], double[]).voidgetLpSol(double[] x, double[] slack, double[] duals, double[] djs)Used to obtain the LP solution values following optimization.double[]getLpSolDjs()Get the djs values of a solution.double[]getLpSolDuals()Get the duals values of a solution.double[]getLpSolSlack()Get the slack values of a solution.XPRSprob.SolValgetLpSolVal(int col, int row)Get LP solution value.voidgetLpSolVal(int col, int row, DoubleHolder p_x, DoubleHolder p_slack, DoubleHolder p_dual, DoubleHolder p_dj)Used to obtain a single LP solution value following optimization.double[]getLpSolX()Get the x values of a solution.intgetMessageStatus(int msgcode)Convenience wrapper forgetMessageStatus(int,com.dashoptimization.IntHolder)that returns the output argument.voidgetMessageStatus(int msgcode, IntHolder p_status)Retrieves the current suppression status of a message.XPRSprob.MIPEntityInfogetMIPEntities()Get information about MIP entities and SOS.intgetMIPEntities(byte[] coltype, int[] colind, double[] limit)voidgetMIPEntities(IntHolder p_nentities, byte[] coltype, int[] colind, double[] limit)voidgetMIPEntities(IntHolder p_nentities, IntHolder p_nsets, byte[] coltype, int[] colind, double[] limit, byte[] settype, int[] start, int[] setcols, double[] refval)Retrieves integr and entity information about a problem.voidgetMIPEntities(IntHolder p_nentities, IntHolder p_nsets, byte[] coltype, int[] colind, double[] limit, byte[] settype, long[] start, int[] setcols, double[] refval)Retrieves integr and entity information about a problem.XPRSprob.SolutiongetMipSol()Get a solution.voidgetMipSol(double[] x)Convenience wrapper forgetMipSol(double[], double[]).voidgetMipSol(double[] x, double[] slack)Used to obtain the solution values of the last MIP solution that was found.double[]getMipSolSlack()Get the slack values of a solution.XPRSprob.SolValgetMipSolVal(int col, int row)Get MIP solution value.voidgetMipSolVal(int col, int row, DoubleHolder p_x, DoubleHolder p_slack)Used to obtain a single solution value of the last MIP solution that was found.double[]getMipSolX()Get the x values of a solution.intgetMQObj(int[] start, int[] colind, double[] objqcoef, int maxcoefs, int first, int last)Convenience wrapper forgetMQObj(int[], int[], double[], int, com.dashoptimization.IntHolder, int, int).voidgetMQObj(int[] start, int[] colind, double[] objqcoef, int maxcoefs, IntHolder p_ncoefs, int first, int last)Returns the nonzeros in the quadratic objective coefficients matrix for the columns in a given range.XPRSprob.MatrixInfogetMQObj(int first, int last)Get quadratic objective matrix for range of columns.longgetMQObj(long[] start, int[] colind, double[] objqcoef, long maxcoefs, int first, int last)Convenience wrapper forgetMQObj(long[], int[], double[], long, com.dashoptimization.LongHolder, int, int).voidgetMQObj(long[] start, int[] colind, double[] objqcoef, long maxcoefs, LongHolder p_ncoefs, int first, int last)Returns the nonzeros in the quadratic objective coefficients matrix for the columns in a given range.java.lang.StringgetName(int type, int elt)Get the name of a single element.java.lang.StringgetName(XPRSenumerations.Namespaces type, int elt)Get the name of a single element.XPRSnamelistgetNameListObject(int type)java.lang.String[]getNames(int type, int first, int last)Get names.voidgetNames(int type, java.lang.String[] names, int first, int last)Get names.java.lang.String[]getNames(XPRSenumerations.Namespaces type, int first, int last)Get names.voidgetNames(XPRSenumerations.Namespaces type, java.lang.String[] names, int first, int last)Get names.voidgetNlpsol(double[] x, double[] slack, double[] duals, double[] djs)Obtain the current SLP solution valuesvoidgetObj(double[] objcoef, int first, int last)Returns the objective function coefficients for the columns in a given range.doublegetObj(int x)Convenience wrapper forgetObj(double[], int, int).double[]getObj(int first, int last)Convenience wrapper forgetObj(double[], int, int).doublegetObjDblAttrib(int solveidx, int attrib)Convenience wrapper forgetObjDblAttrib(int,int,com.dashoptimization.DoubleHolder)that returns the output argument.voidgetObjDblAttrib(int solveidx, int attrib, DoubleHolder p_value)Retrieves the value of a given double attribute associated with a multi-objective solve.doublegetObjDblControl(int objidx, XPRSenumerations.ObjControl control)Convenience wrapper forgetObjDblControl(int,XPRSenumerations.ObjControl,com.dashoptimization.DoubleHolder)that returns the output argument.voidgetObjDblControl(int objidx, XPRSenumerations.ObjControl control, DoubleHolder p_value)Retrieves the value of a given double control parameter associated with an objective function.intgetObjIntAttrib(int solveidx, int attrib)Convenience wrapper forgetObjIntAttrib(int,int,com.dashoptimization.IntHolder)that returns the output argument.voidgetObjIntAttrib(int solveidx, int attrib, IntHolder p_value)Retrieves the value of a given integer attribute associated with a multi-objective solve.voidgetObjIntAttrib(int solveidx, int attrib, LongHolder p_value)Retrieves the value of a given integer attribute associated with a multi-objective solve.intgetObjIntControl(int objidx, XPRSenumerations.ObjControl control)Convenience wrapper forgetObjIntControl(int,XPRSenumerations.ObjControl,com.dashoptimization.IntHolder)that returns the output argument.voidgetObjIntControl(int objidx, XPRSenumerations.ObjControl control, IntHolder p_value)Retrieves the value of a given integer control parameter associated with an objective.longgetObjLongAttrib(int solveidx, int attrib)Convenience wrapper forgetObjIntAttrib(int,int,com.dashoptimization.LongHolder)that returns the output argument.voidgetObjN(int objidx, double[] objcoef, int first, int last)For a given objective function, returns the objective coefficients for the columns in a given range.voidgetPivotOrder(int[] pivotorder)Returns the pivot order of the basic variables.voidgetPivots(int enter, int[] outlist, double[] x, DoubleHolder p_objval, IntHolder p_npivots, int maxpivots)Returns a list of potential leaving variables if a specified variable enters the basis.voidgetPresolveBasis(int[] rowstat, int[] colstat)Returns the current basis from memory into the user's data areas.voidgetPresolveMap(int[] rowmap, int[] colmap)Returns the mapping of the row and column numbers from the presolve problem back to the original problem.XPRSprob.SolutiongetPresolveSol()Get a solution.voidgetPresolveSol(double[] x)Convenience wrapper forgetPresolveSol(double[], double[], double[], double[]).voidgetPresolveSol(double[] x, double[] slack, double[] duals, double[] djs)Returns the solution for the presolved problem from memory.double[]getPresolveSolDjs()Get the djs values of a solution.double[]getPresolveSolDuals()Get the duals values of a solution.double[]getPresolveSolSlack()Get the slack values of a solution.double[]getPresolveSolX()Get the x values of a solution.booleangetPrimalRay(double[] ray)Get primal ray.voidgetPrimalRay(double[] ray, IntHolder p_hasray)Retrieves a primal ray (primal unbounded direction) for the current problem, if the problem is found to be unbounded.java.lang.StringgetProbName()Convenience wrapper forgetProbName(com.dashoptimization.StringHolder).voidgetProbName(StringHolder name)Returns the current problem name.voidgetPwlCons(int[] colind, int[] resultant, int[] start, double[] xval, double[] yval, int maxpoints, IntHolder p_npoints, int first, int last)Returns the piecewise linear constraintsy = f(x)in a given range.voidgetPwlCons(int[] colind, int[] resultant, long[] start, double[] xval, double[] yval, long maxpoints, LongHolder p_npoints, int first, int last)Returns the piecewise linear constraintsy = f(x)in a given range.XPRSprob.PWLInfogetPwlCons(int first, int last)Query a range of PWL constraints.java.lang.StringgetPWLName(int index)Get a PWL constraint name.java.lang.String[]getPWLNames(int first, int last)Get names of PWL constraints.doublegetQObj(int objqcol1, int objqcol2)Convenience wrapper forgetQObj(int,int,com.dashoptimization.DoubleHolder)that returns the output argument.voidgetQObj(int objqcol1, int objqcol2, DoubleHolder p_objqcoef)Returns a single quadratic objective function coefficient corresponding to the variable pair(objqcol1, objqcol2)of the Hessian matrix.doublegetQRowCoeff(int row, int rowqcol1, int rowqcol2)Convenience wrapper forgetQRowCoeff(int,int,int,com.dashoptimization.DoubleHolder)that returns the output argument.voidgetQRowCoeff(int row, int rowqcol1, int rowqcol2, DoubleHolder p_rowqcoef)Returns a single quadratic constraint coefficient corresponding to the variable pair (rowqcol1,rowqcol2) of the Hessian of a given constraint.int[]getQRowIndices()Get quadratic rows.intgetQRowQMatrix(int row, int[] start, int[] colind, double[] rowqcoef, int maxcoefs, int first, int last)Convenience wrapper forgetQRowQMatrix(int, int[], int[], double[], int, com.dashoptimization.IntHolder, int, int).voidgetQRowQMatrix(int row, int[] start, int[] colind, double[] rowqcoef, int maxcoefs, IntHolder p_ncoefs, int first, int last)Returns the nonzeros in a quadratic constraint coefficients matrix for the columns in a given range.XPRSprob.MatrixTripletsgetQRowQMatrixTriplets(int row)Get quadratic row.intgetQRowQMatrixTriplets(int row, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef)Convenience wrapper forgetQRowQMatrixTriplets(int, com.dashoptimization.IntHolder, int[], int[], double[]).voidgetQRowQMatrixTriplets(int row, IntHolder p_ncoefs, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef)Returns the nonzeros in a quadratic constraint coefficients matrix as triplets (index pairs with coefficients).intgetQRows()Convenience wrapper forgetQRows(com.dashoptimization.IntHolder, int[]).intgetQRows(int[] rowind)Convenience wrapper forgetQRows(com.dashoptimization.IntHolder, int[]).voidgetQRows(IntHolder p_nrows, int[] rowind)Returns the list indices of the rows that have quadratic coefficients.doublegetRedCost(int index)Convenience wrapper forgetRedCosts(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value./ Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...doublegetRedCost(IntHolder status, int index)Convenience wrapper forgetRedCosts(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value.double[]getRedCosts()Convenience wrapper forgetRedCosts(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements.double[]getRedCosts(int first, int last)Convenience wrapper forgetRedCosts(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array.double[]getRedCosts(IntHolder status)Convenience wrapper forgetRedCosts(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements.voidgetRedCosts(IntHolder status, double[] djs, int first, int last)Used to obtain the reduced costs associated with the incumbent solution during or after optimization withoptimize,mipOptimize,lpOptimizeornlpOptimize.double[]getRedCosts(IntHolder status, int first, int last)Convenience wrapper forgetRedCosts(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array.voidgetRHS(double[] rhs, int first, int last)Returns the right hand side elements for the rows in a given range.doublegetRHS(int x)Convenience wrapper forgetRHS(double[], int, int).double[]getRHS(int first, int last)Convenience wrapper forgetRHS(double[], int, int).voidgetRHSrange(double[] rng, int first, int last)Returns the right hand side range values for the rows in a given range.doublegetRHSrange(int x)Convenience wrapper forgetRHSrange(double[], int, int).double[]getRHSrange(int first, int last)Convenience wrapper forgetRHSrange(double[], int, int).intgetRowBasisVal(int row)Get basis status for a row.intgetRowFlags(int x)Convenience wrapper forgetRowFlags(int[], int, int).voidgetRowFlags(int[] flags, int first, int last)Retrieve if a range of rows have been set up as special rows.int[]getRowFlags(int first, int last)Convenience wrapper forgetRowFlags(int[], int, int).java.lang.StringgetRowName(int index)Get a row name.java.lang.String[]getRowNames(int first, int last)Get names of rows.intgetRows(int[] start, int[] colind, double[] colcoef, int maxcoefs, int first, int last)Convenience wrapper forgetRows(int[], int[], double[], int, com.dashoptimization.IntHolder, int, int).voidgetRows(int[] start, int[] colind, double[] colcoef, int maxcoefs, IntHolder p_ncoefs, int first, int last)Returns the nonzeros in the constraint matrix for the rows in a given range.XPRSprob.MatrixInfogetRows(int first, int last)Get range of rows.longgetRows(long[] start, int[] colind, double[] colcoef, long maxcoefs, int first, int last)Convenience wrapper forgetRows(long[], int[], double[], long, com.dashoptimization.LongHolder, int, int).voidgetRows(long[] start, int[] colind, double[] colcoef, long maxcoefs, LongHolder p_ncoefs, int first, int last)Returns the nonzeros in the constraint matrix for the rows in a given range.voidgetRowType(byte[] rowtype, int first, int last)Returns the row types for the rows in a given range.bytegetRowType(int x)Convenience wrapper forgetRowType(byte[], int, int).byte[]getRowType(int first, int last)Convenience wrapper forgetRowType(byte[], int, int).voidgetScale(int[] rowscale, int[] colscale)Returns the the current scaling of the matrix.XPRSprob.InfeasInfogetScaledInfeas()Get scaled infeasibilities.voidgetScaledInfeas(IntHolder p_nprimalcols, IntHolder p_nprimalrows, IntHolder p_ndualrows, IntHolder p_ndualcols, int[] x, int[] slack, int[] duals, int[] djs)Returns a list of scaled infeasible primal and dual variables for the original problem.java.lang.StringgetSetName(int index)Get a set (SOS) name.java.lang.String[]getSetNames(int first, int last)Get names of sets (SOS).XPRSprob.MIPEntityInfogetSets()Get information about SOS.doublegetSlack(int index)Convenience wrapper forgetSlacks(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value./ Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...doublegetSlack(IntHolder status, int index)Convenience wrapper forgetSlacks(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value.double[]getSlacks()Convenience wrapper forgetSlacks(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements.double[]getSlacks(int first, int last)Convenience wrapper forgetSlacks(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array.double[]getSlacks(IntHolder status)Convenience wrapper forgetSlacks(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements.voidgetSlacks(IntHolder status, double[] slacks, int first, int last)Used to obtain the slack values associated with the incumbent solution during or after optimization withoptimize,mipOptimize,lpOptimizeornlpOptimize.double[]getSlacks(IntHolder status, int first, int last)Convenience wrapper forgetSlacks(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array.XPRSprob.SolutiongetSol()Get a solution.voidgetSol(double[] x)Convenience wrapper forgetSol(double[], double[], double[], double[]).voidgetSol(double[] x, double[] slack, double[] duals, double[] djs)Deprecated.since 41.00double[]getSolDjs()Get the djs values of a solution.double[]getSolDuals()Get the duals values of a solution.double[]getSolSlack()Get the slack values of a solution.double[]getSolution()Convenience wrapper forgetSolution(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements.doublegetSolution(int index)Convenience wrapper forgetSolution(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value./ Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...double[]getSolution(int first, int last)Convenience wrapper forgetSolution(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array.double[]getSolution(IntHolder status)Convenience wrapper forgetSolution(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements.voidgetSolution(IntHolder status, double[] x, int first, int last)Used to obtain the incumbent solution during or after optimization withoptimize,mipOptimize,lpOptimizeornlpOptimize.doublegetSolution(IntHolder status, int index)Convenience wrapper forgetSolution(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value.double[]getSolution(IntHolder status, int first, int last)Convenience wrapper forgetSolution(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array.double[]getSolX()Get the x values of a solution.java.lang.StringgetStrAttrib(int _index)voidgetStrAttrib(int _index, StringHolder _cvalue)java.lang.StringgetStrControl(int _index)voidgetStrControl(int _index, StringHolder _svalue)voidgetStringControl(int control, StringHolder value, int maxbytes, IntHolder p_nbytes)Returns the value of a given string control parameters.voidgetStrStringAttrib(int attrib, StringHolder value, int maxbytes, IntHolder p_nbytes)Enables users to recover the values of various string problem attributes.voidgetUB(double[] ub, int first, int last)Returns the upper bounds for the columns in a given range.doublegetUB(int x)Convenience wrapper forgetUB(double[], int, int).double[]getUB(int first, int last)Convenience wrapper forgetUB(double[], int, int).intgetUnbVec()Convenience wrapper forgetUnbVec(com.dashoptimization.IntHolder)that returns the output argument.voidgetUnbVec(IntHolder p_seq)Returns the index vector which causes the primal simplex or dual simplex algorithm to determine that a matrix is primal or dual unbounded respectively.voidiISAll()Deprecated.use IISAll insteadvoidIISAll()Performs an automated search for independent Irreducible Infeasible Sets (IIS) in an infeasible problem.voidiISIsolations(int number)Deprecated.use IISIsolations insteadvoidIISIsolations(int iis)Performs the isolation identification procedure for an Irreducible Infeasible Set (IIS).voidiISStatus(IntHolder iiscount, int[] rowsizes, int[] colsizes, double[] suminfeas, int[] numinfeas)Deprecated.use IISStatus insteadXPRSprob.IISStatusInfoIISStatus()Get the IIS status.voidIISStatus(IntHolder p_niis, int[] nrows, int[] ncols, double[] suminfeas, int[] numinfeas)Returns statistics on the Irreducible Infeasible Sets (IIS) found so far byfirstIIS(IIS),nextIIS(IIS-n) oriISAll(IIS-a).voidinterrupt()Convenience wrapper forinterrupt(XPRSenumerations.StopType).voidinterrupt(int type)Deprecated.voidinterrupt(XPRSenumerations.StopType reason)Interrupts the Optimizer algorithms.intintVar()Deprecated.since 43.00, use addColumn insteadintintVar(double lb, double ub)Deprecated.since 43.00, use addColumn insteadintintVar(double lb, double ub, java.lang.String name)Deprecated.since 43.00, use addColumn insteadintintVar(java.lang.String name)Deprecated.since 43.00, use addColumn insteadint[]intVarArray(int count, double[] lb, double[] ub, java.lang.String[] name)Deprecated.since 43.00, use addColumns insteadint[]intVarArray(int count, double lb, double ub, java.util.function.Function<java.lang.Integer,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadint[]intVarArray(int count, java.util.function.Function<java.lang.Integer,java.lang.Double> lb, java.util.function.Function<java.lang.Integer,java.lang.Double> ub, java.util.function.Function<java.lang.Integer,java.lang.String> name)Deprecated.since 43.00, use addColumns instead<T> int[]intVarArray(java.util.Collection<T> objs, double lb, double ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns instead<T> int[]intVarArray(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns instead<T> java.util.Map<T,java.lang.Integer>intVarMap(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns instead<T> java.util.Map<T,java.lang.Integer>intVarMap(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name, java.util.Map<T,java.lang.Integer> map)Deprecated.since 43.00, use addColumns insteadvoidloadBasis(int[] rowstat, int[] colstat)Loads a basis from the user's areas.voidloadBranchDirs(int x, int value)Convenience wrapper forloadBranchDirs(int, int[], int[]).voidloadBranchDirs(int ncols, int[] colind, int[] dir)Loads directives into the current problem to specify which MIP entities the Optimizer should continue to branch on when a node solution is integer feasible.voidloadCuts(int cuttype, int interp)Convenience wrapper forloadCuts(int, int, int, XPRScut[]).voidloadCuts(int itype, int interp, int ncuts, long[] mcutind)Deprecated.voidloadCuts(int cuttype, int interp, int ncuts, XPRScut[] cutind)Loads cuts from the cut pool into the matrix.voidloadCuts(int ncuts, XPRScut[] cutind)Convenience wrapper forloadCuts(int, int, int, XPRScut[]).voidloadDelayedRows(int nrows, int[] rowind)Specifies that a set of rows in the matrix will be treated as delayed rows during a tree search.voidloadDirs(int ndirs, int[] colind, int[] priority, byte[] dir, double[] uppseudo, double[] downpseudo)Loads directives into the matrix.voidloadGlobal(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, int[] setstart, int[] setind, double[] refval)Deprecated.voidloadGlobal(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, long[] setstart, int[] setind, double[] refval)Deprecated.voidloadLp()Load this instance with an empty LP.voidloadLp(java.lang.String probname)Load this instance with an empty LP.voidloadLp(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub)Enables the user to pass a matrix directly to the Optimizer, rather than reading the matrix from a file.voidloadLp(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub)Enables the user to pass a matrix directly to the Optimizer, rather than reading the matrix from a file.intloadLPSol(double[] x, double[] slack, double[] duals, double[] djs)Convenience wrapper forloadLPSol(double[],double[],double[],double[],com.dashoptimization.IntHolder)that returns the output argument.voidloadLPSol(double[] x, double[] slack, double[] duals, double[] djs, IntHolder p_status)Loads an LP solution for the problem into the Optimizer.voidloadMIP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, int[] setstart, int[] setind, double[] refval)Used to load a MIP problem into the Optimizer data structures.voidloadMIP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, long[] setstart, int[] setind, double[] refval)Used to load a MIP problem into the Optimizer data structures.intloadMipSol(double[] x)Convenience wrapper forloadMipSol(double[],com.dashoptimization.IntHolder)that returns the output argument.voidloadMipSol(double[] x, IntHolder p_status)Loads a starting MIP solution for the problem into the Optimizer.voidloadMIQCQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nqrows, int[] qrowind, int[] nrowqcoefs, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, int[] setstart, int[] setind, double[] refval)Used to load a mixed integer quadratic problem with quadratic constraints into the Optimizer data structure.voidloadMIQCQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, long nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nqrows, int[] qrowind, long[] nrowqcoefs, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, long[] setstart, int[] setind, double[] refval)Used to load a mixed integer quadratic problem with quadratic constraints into the Optimizer data structure.voidloadMIQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, int[] setstart, int[] setind, double[] refval)Used to load a MIQP problem, hence a MIP with quadratic objective coefficients, into the Optimizer data structures.voidloadMIQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, long nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, long[] setstart, int[] setind, double[] refval)Used to load a MIQP problem, hence a MIP with quadratic objective coefficients, into the Optimizer data structures.voidloadModelCuts(int nrows, int[] rowind)Specifies that a set of rows in the matrix will be treated as model cuts.voidloadPresolveBasis(int[] rowstat, int[] colstat)Loads a presolved basis from the user's areas.voidloadPresolveDirs(int ndirs, int[] colind, int[] priority, byte[] dir, double[] uppseudo, double[] downpseudo)Loads directives into the presolved matrix.voidloadQCQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nqrows, int[] qrowind, int[] nrowqcoef, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef)Used to load a quadratic problem with quadratic side constraints into the Optimizer data structure.voidloadQCQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, long nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nqrows, int[] qrowind, long[] nrowqcoef, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef)Used to load a quadratic problem with quadratic side constraints into the Optimizer data structure.voidloadQCQPGlobal(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nqrows, int[] qrowind, int[] nrowqcoefs, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, int[] setstart, int[] setind, double[] refval)Deprecated.voidloadQCQPGlobal(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, long nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nqrows, int[] qrowind, long[] nrowqcoefs, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, long[] setstart, int[] setind, double[] refval)Deprecated.voidloadQGlobal(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, int[] setstart, int[] setind, double[] refval)voidloadQGlobal(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, long nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, long[] setstart, int[] setind, double[] refval)voidloadQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef)Used to load a quadratic problem into the Optimizer data structure.voidloadQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, long nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef)Used to load a quadratic problem into the Optimizer data structure.voidloadSecureVecs(int nrows, int ncols, int[] rowind, int[] colind)Allows the user to mark rows and columns in order to prevent the presolve removing these rows and columns from the matrix.voidlpOptimize()Convenience wrapper forlpOptimize(String).voidlpOptimize(java.lang.String flags)This function begins a search for the optimal continuous (LP) solution.voidmaxim()Convenience wrapper formaxim(String).voidmaxim(java.lang.String flags)Deprecated.you should uselpOptimize(java.lang.String)ormipOptimize(java.lang.String)instead of minim/maxim/globalvoidminim()Convenience wrapper forminim(String).voidminim(java.lang.String flags)Deprecated.you should uselpOptimize(java.lang.String)ormipOptimize(java.lang.String)instead of minim/maxim/globalvoidmipOptimize()Convenience wrapper formipOptimize(String).voidmipOptimize(java.lang.String flags)This function begins a tree search for the optimal MIP solution.voidmsAddCustomPreset(java.lang.String description, int preset, int maxjobs, int ninitial, int[] colind, double[] initial, int nintcontrols, int[] intcontrolid, int[] intcontrolval, int ndblcontrols, int[] dblcontrolid, double[] dblcontrolval, java.lang.Object data)A combined version of XSLPmsaddjob and XSLPmsaddpreset.voidmsAddJob(java.lang.String description, int ninitial, int[] colind, double[] initial, int nintcontrols, int[] intcontrolid, int[] intcontrolval, int ndblcontrols, int[] dblcontrolid, double[] dblcontrolval, java.lang.Object data)Adds a multistart job to the multistart poolvoidmsAddPreset(java.lang.String description, int preset, int maxjobs, java.lang.Object data)Loads a preset of jobs into the multistart job pool.voidmsClear()Removes all scheduled jobs from the multistart job poolintnextIIS()Convenience wrapper fornextIIS(com.dashoptimization.IntHolder)that returns the output argument.voidnextIIS(IntHolder p_status)Continues the search for further Irreducible Infeasible Sets (IIS), or callsfirstIIS(IIS) if no IIS has been identified yet.voidnlpAddFormulas(int ncoefs, int[] rowind, int[] formulastart, int parsed, int[] type, double[] value)Add non-linear formulas to the SLP problem.XPRSprob.MultiMapDeltaFunctionnlpAddUserFunction(java.lang.String funcname, int nin, int nout, int options, XPRSprob.MultiMapDeltaFunctor function)XPRSprob.MultiMapFunctionnlpAddUserFunction(java.lang.String funcname, int nin, int nout, int options, XPRSprob.MultiMapFunctor function)XPRSprob.VecMapDeltaFunctionnlpAddUserFunction(java.lang.String funcname, int nin, int options, XPRSprob.VecMapDeltaFunctor function)XPRSprob.VecMapFunctionnlpAddUserFunction(java.lang.String funcname, int nin, int options, XPRSprob.VecMapFunctor function)XPRSprob.MapDeltaFunctionnlpAddUserFunction(java.lang.String funcname, int options, XPRSprob.MapDeltaFunctor function)XPRSprob.MapFunctionnlpAddUserFunction(java.lang.String funcname, int options, XPRSprob.MapFunctor function)voidnlpCalcSlacks(double[] solution, double[] slack)Calculate the slack values for the provided solution in the non-linear problemvoidnlpChgFormula(int row, int parsed, int[] type, double[] value)Add or replace a single matrix formula using a parsed or unparsed formulavoidnlpChgFormulaStr(int row, java.lang.String formula)Add or replace a single matrix formula using a character string for the formula.voidnlpChgFormulaString(int row, java.lang.String formula)Deprecated.voidnlpCurrentIV()Transfer the current solution to initial valuesvoidnlpDelFormulas(int nformulas, int[] rowind)Delete nonlinear formulas from the current problemvoidnlpDelUserFunction(int type)Delete a user function from the current problemdoublenlpEvaluateFormula(int parsed, int[] type, double[] values)Convenience wrapper fornlpEvaluateFormula(int,int[],double[],com.dashoptimization.DoubleHolder)that returns the output argument.voidnlpEvaluateFormula(int parsed, int[] type, double[] values, DoubleHolder p_value)Evaluate a formula using the current values of the variablesvoidnlpGetFormula(int row, int parsed, int maxtypes, IntHolder p_ntypes, int[] type, double[] value)Retrieve a single matrix formula as a formula split into tokens.voidnlpGetFormulaRows(IntHolder p_nformulas, int[] rowind)Retrieve the list of positions of the nonlinear formulas in the problemvoidnlpGetFormulaStr(int row, StringHolder formula, int maxbytes, IntHolder p_nbytes)Retrieve a single matrix formula in a character string.voidnlpGetFormulaString(int row, StringHolder formula, int maxbytes)Deprecated.voidnlpImportLibFunc(java.lang.String libname, java.lang.String funcname, LongHolder p_function, IntHolder p_status)Imports a function from a library file to be called as a user functionvoidnlpLoadFormulas(int nnlpcoefs, int[] rowind, int[] formulastart, int parsed, int[] type, double[] value)Load non-linear formulas into the SLP problemvoidnlpOptimize(java.lang.String flags)Maximize or minimize an SLP problemvoidnlpPostsolveProb()Restores the problem to its pre-solve statevoidnlpPrintEvalInfo()Print a summary of any evaluation errors that may have occurred during solving a problemvoidnlpSetFunctionError()Set the function error flag for the problemvoidnlpSetInitVal(int x, double value)Convenience wrapper fornlpSetInitVal(int, int[], double[]).voidnlpSetInitVal(int nvars, int[] colind, double[] initial)Set the initial value of a variablevoidnlpValidate()Validate the feasibility of constraints in a converged solutionvoidnlpValidateKKT(int mode, int respectbasis, int updatemult, double violtarget)Validates the first order optimality conditions also known as the Karush-Kuhn-Tucker (KKT) conditions versus the currect solutionvoidnlpValidateRow(int row)Prints an extensive analysis on a given constraint of the SLP problemvoidnlpValidateVector(double[] solution, DoubleHolder p_suminf, DoubleHolder p_sumscaledinf, DoubleHolder p_objval)Validate the feasibility of constraints for a given solutionvoidobjSA(int ncols, int[] colind, double[] lower, double[] upper)Returns upper and lower sensitivity ranges for specified objective function coefficients.intoptimize()Convenience wrapper foroptimize(String, IntHolder, IntHolder).intoptimize(java.lang.String flags)Convenience wrapper foroptimize(String, IntHolder, IntHolder).voidoptimize(java.lang.String flags, IntHolder solvestatus, IntHolder solstatus)This function begins a search for the optimal solution of the problem.voidpivot(int enter, int leave)Performs a simplex pivot by bringing variableenterinto the basis and removingleave.voidpostSolve()Postsolve the current matrix when it is in a presolved state.voidpostSolveSol(double[] prex, double[] origx)Postsolves a primal solution formulated in the presolved space into the corresponding solution formulated in the original space.voidpresolveRow(char rowtype, int norigcoefs, int[] origcolind, double[] origrowcoef, double origrhs, int maxcoefs, IntHolder p_ncoefs, int[] colind, double[] rowcoef, DoubleHolder p_rhs, IntHolder p_status)Presolves a row formulated in terms of the original variables such that it can be added to a presolved matrix.XPRSprob.RowInfopresolveRow(int[] ind, double[] val, char type, double rhs)Presolve a row.XPRSprob.RowInfopresolveRow(XPRSprob.RowInfo row)Presolve a row.voidreadBasis()Convenience wrapper forreadBasis(String, String).voidreadBasis(java.lang.String filename)Convenience wrapper forreadBasis(String, String).voidreadBasis(java.lang.String filename, java.lang.String flags)Instructs the Optimizer to read in a previously saved basis from a file.voidreadBinSol()Convenience wrapper forreadBinSol(String, String).voidreadBinSol(java.lang.String filename)Convenience wrapper forreadBinSol(String, String).voidreadBinSol(java.lang.String filename, java.lang.String flags)Reads a solution from a binary solution file.voidreadDirs()Convenience wrapper forreadDirs(String).voidreadDirs(java.lang.String filename)Reads a directives file to help direct the tree search.voidreadProb(java.lang.String filename)Convenience wrapper forreadProb(String, String).voidreadProb(java.lang.String filename, java.lang.String flags)Reads an (X)MPS or LP format matrix from file.voidreadSlxSol()Convenience wrapper forreadSlxSol(String, String).voidreadSlxSol(java.lang.String filename)Convenience wrapper forreadSlxSol(String, String).voidreadSlxSol(java.lang.String filename, java.lang.String flags)Reads an ASCII solution file [.slx] created by thewriteSlxSolfunction.intrefineMipSol(int options, java.lang.String flags, double[] solution, double[] refined)Refine a MIP solution.voidrefineMipSol(int options, java.lang.String flags, double[] solution, double[] refined, IntHolder p_status)Deprecated.voidremoveAfterObjectiveListener()Deprecated.voidremoveAfterObjectiveListener(XPRSafterObjectiveListener listener)Removes the given AfterObjective listener from the object.voidremoveAfterObjectiveListener(XPRSafterObjectiveListener listener, java.lang.Object data)Removes the given AfterObjective listener with the given data value from the object.voidremoveAfterObjectiveListeners()Remove all listeners for the AfterObjective callbackvoidremoveBarIterationListener()Deprecated.voidremoveBarIterationListener(XPRSbarIterationListener listener)Removes the given BarIteration listener from the object.voidremoveBarIterationListener(XPRSbarIterationListener listener, java.lang.Object data)Removes the given BarIteration listener with the given data value from the object.voidremoveBarIterationListeners()Remove all listeners for the BarIteration callbackvoidremoveBarLogListener()Deprecated.voidremoveBarLogListener(XPRSbarLogListener listener)Removes the given BarLog listener from the object.voidremoveBarLogListener(XPRSbarLogListener listener, java.lang.Object data)Removes the given BarLog listener with the given data value from the object.voidremoveBarLogListeners()Remove all listeners for the BarLog callbackvoidremoveBeforeObjectiveListener()Deprecated.voidremoveBeforeObjectiveListener(XPRSbeforeObjectiveListener listener)Removes the given BeforeObjective listener from the object.voidremoveBeforeObjectiveListener(XPRSbeforeObjectiveListener listener, java.lang.Object data)Removes the given BeforeObjective listener with the given data value from the object.voidremoveBeforeObjectiveListeners()Remove all listeners for the BeforeObjective callbackvoidremoveBeforeSolveListener()Deprecated.voidremoveBeforeSolveListener(XPRSbeforeSolveListener listener)Removes the given BeforeSolve listener from the object.voidremoveBeforeSolveListener(XPRSbeforeSolveListener listener, java.lang.Object data)Removes the given BeforeSolve listener with the given data value from the object.voidremoveBeforeSolveListeners()Remove all listeners for the BeforeSolve callbackvoidremoveChangeBranchObjectListener()Deprecated.voidremoveChangeBranchObjectListener(XPRSchangeBranchObjectListener listener)Removes the given ChangeBranchObject listener from the object.voidremoveChangeBranchObjectListener(XPRSchangeBranchObjectListener listener, java.lang.Object data)Removes the given ChangeBranchObject listener with the given data value from the object.voidremoveChangeBranchObjectListeners()Remove all listeners for the ChangeBranchObject callbackvoidremoveCheckTimeListener()Deprecated.voidremoveCheckTimeListener(XPRScheckTimeListener listener)Removes the given CheckTime listener from the object.voidremoveCheckTimeListener(XPRScheckTimeListener listener, java.lang.Object data)Removes the given CheckTime listener with the given data value from the object.voidremoveCheckTimeListeners()Remove all listeners for the CheckTime callbackvoidremoveChgBranchListener()Deprecated.voidremoveChgBranchListener(XPRSchgBranchListener listener)Deprecated.since 37.00voidremoveChgBranchListener(XPRSchgBranchListener listener, java.lang.Object data)Deprecated.since 37.00voidremoveChgBranchListeners()Deprecated.since 37.00voidremoveChgNodeListener()Deprecated.voidremoveChgNodeListener(XPRSchgNodeListener listener)Deprecated.since 37.00voidremoveChgNodeListener(XPRSchgNodeListener listener, java.lang.Object data)Deprecated.since 37.00voidremoveChgNodeListeners()Deprecated.since 37.00voidremoveComputeRestartListener()Deprecated.voidremoveComputeRestartListener(XPRScomputeRestartListener listener)Removes the given ComputeRestart listener from the object.voidremoveComputeRestartListener(XPRScomputeRestartListener listener, java.lang.Object data)Removes the given ComputeRestart listener with the given data value from the object.voidremoveComputeRestartListeners()Remove all listeners for the ComputeRestart callbackvoidremoveCutLogListener()Deprecated.voidremoveCutLogListener(XPRScutLogListener listener)Removes the given CutLog listener from the object.voidremoveCutLogListener(XPRScutLogListener listener, java.lang.Object data)Removes the given CutLog listener with the given data value from the object.voidremoveCutLogListeners()Remove all listeners for the CutLog callbackvoidremoveCutMgrListener()Deprecated.voidremoveCutMgrListener(XPRScutMgrListener listener)Deprecated.since 37.00voidremoveCutMgrListener(XPRScutMgrListener listener, java.lang.Object data)Deprecated.since 37.00voidremoveCutMgrListeners()Deprecated.since 37.00voidremoveDestroyMTListener()Deprecated.voidremoveDestroyMTListener(XPRSdestroyMTListener listener)Removes the given DestroyMT listener from the object.voidremoveDestroyMTListener(XPRSdestroyMTListener listener, java.lang.Object data)Removes the given DestroyMT listener with the given data value from the object.voidremoveDestroyMTListeners()Remove all listeners for the DestroyMT callbackvoidremoveGapNotifyListener()Deprecated.voidremoveGapNotifyListener(XPRSgapNotifyListener listener)Removes the given GapNotify listener from the object.voidremoveGapNotifyListener(XPRSgapNotifyListener listener, java.lang.Object data)Removes the given GapNotify listener with the given data value from the object.voidremoveGapNotifyListeners()Remove all listeners for the GapNotify callbackvoidremoveInfNodeListener()Deprecated.voidremoveInfNodeListener(XPRSinfNodeListener listener)Removes the given InfNode listener from the object.voidremoveInfNodeListener(XPRSinfNodeListener listener, java.lang.Object data)Removes the given InfNode listener with the given data value from the object.voidremoveInfNodeListeners()Remove all listeners for the InfNode callbackvoidremoveIntSolListener()Deprecated.voidremoveIntSolListener(XPRSintSolListener listener)Removes the given IntSol listener from the object.voidremoveIntSolListener(XPRSintSolListener listener, java.lang.Object data)Removes the given IntSol listener with the given data value from the object.voidremoveIntSolListeners()Remove all listeners for the IntSol callbackvoidremoveLpLogListener()Deprecated.voidremoveLpLogListener(XPRSlpLogListener listener)Removes the given LpLog listener from the object.voidremoveLpLogListener(XPRSlpLogListener listener, java.lang.Object data)Removes the given LpLog listener with the given data value from the object.voidremoveLpLogListeners()Remove all listeners for the LpLog callbackvoidremoveMessageListener()Deprecated.voidremoveMessageListener(XPRSmessageListener listener)Removes the given Message listener from the object.voidremoveMessageListener(XPRSmessageListener listener, java.lang.Object data)Removes the given Message listener with the given data value from the object.voidremoveMessageListeners()Remove all listeners for the Message callbackvoidremoveMipLogListener()Deprecated.voidremoveMipLogListener(XPRSmipLogListener listener)Removes the given MipLog listener from the object.voidremoveMipLogListener(XPRSmipLogListener listener, java.lang.Object data)Removes the given MipLog listener with the given data value from the object.voidremoveMipLogListeners()Remove all listeners for the MipLog callbackvoidremoveMipThreadListener()Deprecated.voidremoveMipThreadListener(XPRSmipThreadListener listener)Removes the given MipThread listener from the object.voidremoveMipThreadListener(XPRSmipThreadListener listener, java.lang.Object data)Removes the given MipThread listener with the given data value from the object.voidremoveMipThreadListeners()Remove all listeners for the MipThread callbackvoidremoveMsgHandlerListener()Deprecated.voidremoveMsgHandlerListener(XPRSmsgHandlerListener listener)Removes the given MsgHandler listener from the object.voidremoveMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data)Removes the given MsgHandler listener with the given data value from the object.voidremoveMsgHandlerListeners()Remove all listeners for the MsgHandler callbackvoidremoveMsJobEndListener()Deprecated.voidremoveMsJobEndListener(XPRSmsJobEndListener listener)Removes the given MsJobEnd listener from the object.voidremoveMsJobEndListener(XPRSmsJobEndListener listener, java.lang.Object data)Removes the given MsJobEnd listener with the given data value from the object.voidremoveMsJobEndListeners()Remove all listeners for the MsJobEnd callbackvoidremoveMsJobStartListener()Deprecated.voidremoveMsJobStartListener(XPRSmsJobStartListener listener)Removes the given MsJobStart listener from the object.voidremoveMsJobStartListener(XPRSmsJobStartListener listener, java.lang.Object data)Removes the given MsJobStart listener with the given data value from the object.voidremoveMsJobStartListeners()Remove all listeners for the MsJobStart callbackvoidremoveMsWinnerListener()Deprecated.voidremoveMsWinnerListener(XPRSmsWinnerListener listener)Removes the given MsWinner listener from the object.voidremoveMsWinnerListener(XPRSmsWinnerListener listener, java.lang.Object data)Removes the given MsWinner listener with the given data value from the object.voidremoveMsWinnerListeners()Remove all listeners for the MsWinner callbackvoidremoveNewnodeListener()Deprecated.voidremoveNewnodeListener(XPRSnewnodeListener listener)Removes the given Newnode listener from the object.voidremoveNewnodeListener(XPRSnewnodeListener listener, java.lang.Object data)Removes the given Newnode listener with the given data value from the object.voidremoveNewnodeListeners()Remove all listeners for the Newnode callbackvoidremoveNlpCoefEvalErrorListener()Deprecated.voidremoveNlpCoefEvalErrorListener(XPRSnlpCoefEvalErrorListener listener)Removes the given NlpCoefEvalError listener from the object.voidremoveNlpCoefEvalErrorListener(XPRSnlpCoefEvalErrorListener listener, java.lang.Object data)Removes the given NlpCoefEvalError listener with the given data value from the object.voidremoveNlpCoefEvalErrorListeners()Remove all listeners for the NlpCoefEvalError callbackvoidremoveNodeCutoffListener()Deprecated.voidremoveNodeCutoffListener(XPRSnodeCutoffListener listener)Removes the given NodeCutoff listener from the object.voidremoveNodeCutoffListener(XPRSnodeCutoffListener listener, java.lang.Object data)Removes the given NodeCutoff listener with the given data value from the object.voidremoveNodeCutoffListeners()Remove all listeners for the NodeCutoff callbackvoidremoveNodeLPSolvedListener()Deprecated.voidremoveNodeLPSolvedListener(XPRSnodeLPSolvedListener listener)Removes the given NodeLPSolved listener from the object.voidremoveNodeLPSolvedListener(XPRSnodeLPSolvedListener listener, java.lang.Object data)Removes the given NodeLPSolved listener with the given data value from the object.voidremoveNodeLPSolvedListeners()Remove all listeners for the NodeLPSolved callbackvoidremoveOptNodeListener()Deprecated.voidremoveOptNodeListener(XPRSoptNodeListener listener)Removes the given OptNode listener from the object.voidremoveOptNodeListener(XPRSoptNodeListener listener, java.lang.Object data)Removes the given OptNode listener with the given data value from the object.voidremoveOptNodeListeners()Remove all listeners for the OptNode callbackvoidremovePreIntsolListener()Deprecated.voidremovePreIntsolListener(XPRSpreIntsolListener listener)Removes the given PreIntsol listener from the object.voidremovePreIntsolListener(XPRSpreIntsolListener listener, java.lang.Object data)Removes the given PreIntsol listener with the given data value from the object.voidremovePreIntsolListeners()Remove all listeners for the PreIntsol callbackvoidremovePreNodeListener()Deprecated.voidremovePreNodeListener(XPRSpreNodeListener listener)Removes the given PreNode listener from the object.voidremovePreNodeListener(XPRSpreNodeListener listener, java.lang.Object data)Removes the given PreNode listener with the given data value from the object.voidremovePreNodeListeners()Remove all listeners for the PreNode callbackvoidremovePresolveListener()Deprecated.voidremovePresolveListener(XPRSpresolveListener listener)Removes the given Presolve listener from the object.voidremovePresolveListener(XPRSpresolveListener listener, java.lang.Object data)Removes the given Presolve listener with the given data value from the object.voidremovePresolveListeners()Remove all listeners for the Presolve callbackvoidremoveSlpCascadeEndListener()Deprecated.voidremoveSlpCascadeEndListener(XPRSslpCascadeEndListener listener)Removes the given SlpCascadeEnd listener from the object.voidremoveSlpCascadeEndListener(XPRSslpCascadeEndListener listener, java.lang.Object data)Removes the given SlpCascadeEnd listener with the given data value from the object.voidremoveSlpCascadeEndListeners()Remove all listeners for the SlpCascadeEnd callbackvoidremoveSlpCascadeStartListener()Deprecated.voidremoveSlpCascadeStartListener(XPRSslpCascadeStartListener listener)Removes the given SlpCascadeStart listener from the object.voidremoveSlpCascadeStartListener(XPRSslpCascadeStartListener listener, java.lang.Object data)Removes the given SlpCascadeStart listener with the given data value from the object.voidremoveSlpCascadeStartListeners()Remove all listeners for the SlpCascadeStart callbackvoidremoveSlpCascadeVarFailListener()Deprecated.voidremoveSlpCascadeVarFailListener(XPRSslpCascadeVarFailListener listener)Removes the given SlpCascadeVarFail listener from the object.voidremoveSlpCascadeVarFailListener(XPRSslpCascadeVarFailListener listener, java.lang.Object data)Removes the given SlpCascadeVarFail listener with the given data value from the object.voidremoveSlpCascadeVarFailListeners()Remove all listeners for the SlpCascadeVarFail callbackvoidremoveSlpCascadeVarListener()Deprecated.voidremoveSlpCascadeVarListener(XPRSslpCascadeVarListener listener)Removes the given SlpCascadeVar listener from the object.voidremoveSlpCascadeVarListener(XPRSslpCascadeVarListener listener, java.lang.Object data)Removes the given SlpCascadeVar listener with the given data value from the object.voidremoveSlpCascadeVarListeners()Remove all listeners for the SlpCascadeVar callbackvoidremoveSlpConstructListener()Deprecated.voidremoveSlpConstructListener(XPRSslpConstructListener listener)Removes the given SlpConstruct listener from the object.voidremoveSlpConstructListener(XPRSslpConstructListener listener, java.lang.Object data)Removes the given SlpConstruct listener with the given data value from the object.voidremoveSlpConstructListeners()Remove all listeners for the SlpConstruct callbackvoidremoveSlpDrColListener()Deprecated.voidremoveSlpDrColListener(XPRSslpDrColListener listener)Removes the given SlpDrCol listener from the object.voidremoveSlpDrColListener(XPRSslpDrColListener listener, java.lang.Object data)Removes the given SlpDrCol listener with the given data value from the object.voidremoveSlpDrColListeners()Remove all listeners for the SlpDrCol callbackvoidremoveSlpIntSolListener()Deprecated.voidremoveSlpIntSolListener(XPRSslpIntSolListener listener)Removes the given SlpIntSol listener from the object.voidremoveSlpIntSolListener(XPRSslpIntSolListener listener, java.lang.Object data)Removes the given SlpIntSol listener with the given data value from the object.voidremoveSlpIntSolListeners()Remove all listeners for the SlpIntSol callbackvoidremoveSlpIterEndListener()Deprecated.voidremoveSlpIterEndListener(XPRSslpIterEndListener listener)Removes the given SlpIterEnd listener from the object.voidremoveSlpIterEndListener(XPRSslpIterEndListener listener, java.lang.Object data)Removes the given SlpIterEnd listener with the given data value from the object.voidremoveSlpIterEndListeners()Remove all listeners for the SlpIterEnd callbackvoidremoveSlpIterStartListener()Deprecated.voidremoveSlpIterStartListener(XPRSslpIterStartListener listener)Removes the given SlpIterStart listener from the object.voidremoveSlpIterStartListener(XPRSslpIterStartListener listener, java.lang.Object data)Removes the given SlpIterStart listener with the given data value from the object.voidremoveSlpIterStartListeners()Remove all listeners for the SlpIterStart callbackvoidremoveSlpIterVarListener()Deprecated.voidremoveSlpIterVarListener(XPRSslpIterVarListener listener)Removes the given SlpIterVar listener from the object.voidremoveSlpIterVarListener(XPRSslpIterVarListener listener, java.lang.Object data)Removes the given SlpIterVar listener with the given data value from the object.voidremoveSlpIterVarListeners()Remove all listeners for the SlpIterVar callbackvoidremoveSlpPreUpdateLinearizationListener()Deprecated.voidremoveSlpPreUpdateLinearizationListener(XPRSslpPreUpdateLinearizationListener listener)Removes the given SlpPreUpdateLinearization listener from the object.voidremoveSlpPreUpdateLinearizationListener(XPRSslpPreUpdateLinearizationListener listener, java.lang.Object data)Removes the given SlpPreUpdateLinearization listener with the given data value from the object.voidremoveSlpPreUpdateLinearizationListeners()Remove all listeners for the SlpPreUpdateLinearization callbackvoidremoveUserSolNotifyListener()Deprecated.voidremoveUserSolNotifyListener(XPRSuserSolNotifyListener listener)Removes the given UserSolNotify listener from the object.voidremoveUserSolNotifyListener(XPRSuserSolNotifyListener listener, java.lang.Object data)Removes the given UserSolNotify listener with the given data value from the object.voidremoveUserSolNotifyListeners()Remove all listeners for the UserSolNotify callbackintrepairInfeas(char penalty, char phase2, char flags, double lepref, double gepref, double lbpref, double ubpref, double delta)Convenience wrapper forrepairInfeas(com.dashoptimization.IntHolder,char,char,char,double,double,double,double,double)that returns the output argument.voidrepairInfeas(IntHolder p_status, char penalty, char phase2, char flags, double lepref, double gepref, double lbpref, double ubpref, double delta)Provides a simplified interface forrepairWeightedInfeas.intrepairWeightedInfeas(double[] lepref, double[] gepref, double[] lbpref, double[] ubpref, char phase2, double delta, java.lang.String flags)Convenience wrapper forrepairWeightedInfeas(com.dashoptimization.IntHolder,double[],double[],double[],double[],char,double,String)that returns the output argument.voidrepairWeightedInfeas(IntHolder p_status, double[] lepref, double[] gepref, double[] lbpref, double[] ubpref, char phase2, double delta, java.lang.String flags)By relaxing a set of selected constraints and bounds of an infeasible problem, it attempts to identify a 'solution' that violates the selected set of constraints and bounds minimally, while satisfying all other constraints and bounds.intrepairWeightedInfeasBounds(double[] lepref, double[] gepref, double[] lbpref, double[] ubpref, double[] lerelax, double[] gerelax, double[] lbrelax, double[] ubrelax, char phase2, double delta, java.lang.String flags)Convenience wrapper forrepairWeightedInfeasBounds(com.dashoptimization.IntHolder,double[],double[],double[],double[],double[],double[],double[],double[],char,double,String)that returns the output argument.voidrepairWeightedInfeasBounds(IntHolder p_status, double[] lepref, double[] gepref, double[] lbpref, double[] ubpref, double[] lerelax, double[] gerelax, double[] lbrelax, double[] ubrelax, char phase2, double delta, java.lang.String flags)An extended version ofrepairWeightedInfeasthat allows for bounding the level of relaxation allowed.voidrestore()Convenience wrapper forrestore(String, String).voidrestore(java.lang.String probname)Convenience wrapper forrestore(String, String).voidrestore(java.lang.String probname, java.lang.String flags)Restores the Optimizer's data structures from a file created bysave(SAVE).voidrhsSA(int nrows, int[] rowind, double[] lower, double[] upper)Returns upper and lower sensitivity ranges for specified right hand side (RHS) function coefficients.voidsave()Saves the current data structures, i.e.voidsaveAs(java.lang.String sSaveFileName)Saves the current data structures, i.e.voidscale(int[] rowscale, int[] colscale)Re-scales the current matrix.voidsetDblControl(int control, double value)Sets the value of a given double control parameter.voidsetDefaultControl(int control)Sets a single control to its default value.voidsetDefaults()Sets all controls to their default values.voidsetIndicator(int rowind, int colind, int complement)Add a single indicator constraint.voidsetIndicators(int nrows, int[] rowind, int[] colind, int[] complement)Specifies that a set of rows in the matrix will be treated as indicator constraints during a tree search.voidsetIntControl(int control, int value)Sets the value of a given integer control parameter.voidsetLogFile(java.lang.String filename)This directs all Optimizer output to a log file.voidsetLongControl(int control, long value)Sets the value of a given integer control parameter.voidsetMessageStatus(int msgcode, int status)Manages suppression of messages.voidsetObjDblControl(int objidx, XPRSenumerations.ObjControl control, double value)Sets the value of a given double control parameter associated with an objective.voidsetObjective(int[] ind, double[] val)Set objective to a linear function.voidsetObjective(int[] ind, double[] val, XPRSenumerations.ObjSense sense)Set objective to a linear function.voidsetObjIntControl(int objidx, XPRSenumerations.ObjControl control, int value)Sets the value of a given integer control parameter associated with an objective.voidsetProbname(java.lang.String probname)Sets the current default problem name.voidsetStrControl(int control, java.lang.String value)Used to set the value of a given string control parameter.voidslpAddCoefs(int ncoefs, int[] rowind, int[] colind, double[] factor, int[] formulastart, int parsed, int[] type, double[] value)Add non-linear coefficients to the SLP problem.voidslpCascadeOrder()Establish a re-calculation sequence for SLP variables with determining rows.voidslpCascadeSol()Re-calculate consistent values for SLP variables based on the current values of the remaining variables.voidslpChgCascadeNLimit(int col, int limit)Set a variable specific cascade iteration limitvoidslpChgCCoef(int row, int col, DoubleHolder factor, java.lang.String formula)Deprecated.voidslpChgCoef(int row, int col, DoubleHolder factor, int parsed, int[] type, double[] value)Add or change a single matrix coefficient using a parsed or unparsed formula.voidslpChgCoefStr(int row, int col, DoubleHolder factor, java.lang.String formula)Add or change a single matrix coefficient using a character string for the formula.voidslpChgDeltaType(int nvars, int[] varind, int[] deltatypes, double[] values)Changes the type of the delta assigned to a nonlinear variableintslpChgRowStatus(int row)Convenience wrapper forslpChgRowStatus(int,com.dashoptimization.IntHolder)that returns the output argument.voidslpChgRowStatus(int row, IntHolder status)Change the status setting of a constraintvoidslpChgRowWt(int row, DoubleHolder weight)Set or change the initial penalty error weight for a rowvoidslpConstruct()Create the full augmented SLP matrix and data structures, ready for optimizationvoidslpDelCoefs(int x, int value)Convenience wrapper forslpDelCoefs(int, int[], int[]).voidslpDelCoefs(int ncoefs, int[] rowind, int[] colind)Delete coefficients from the current problem.doubleslpEvaluateCoef(int row, int col)Convenience wrapper forslpEvaluateCoef(int,int,com.dashoptimization.DoubleHolder)that returns the output argument.voidslpEvaluateCoef(int row, int col, DoubleHolder p_value)Evaluate a coefficient using the current values of the variablesvoidslpFixPenalties(IntHolder p_status)Fixe the values of the error vectorsvoidslpGetCCoef(int row, int col, DoubleHolder p_factor, StringHolder formula, int maxbytes)Deprecated.voidslpGetCoefFormula(int row, int col, DoubleHolder p_factor, int parsed, int maxtypes, IntHolder p_ntypes, int[] type, double[] value)Retrieve a single matrix coefficient as a formula split into tokens.voidslpGetCoefs(IntHolder p_ncoefs, int[] rowind, int[] colind)Retrieve the list of positions of the nonlinear coefficients in the problem.voidslpGetCoefStr(int row, int col, DoubleHolder p_factor, StringHolder formula, int maxbytes, IntHolder p_nbytes)Retrieve a single matrix coefficient as a formula in a character string.voidslpGetRowStatus(int row, IntHolder p_status)Retrieve the status setting of a constraintdoubleslpGetRowWT(int row)Convenience wrapper forslpGetRowWT(int,com.dashoptimization.DoubleHolder)that returns the output argument.voidslpGetRowWT(int row, DoubleHolder p_weight)Get the initial penalty error weight for a rowvoidslpLoadCoefs(int ncoefs, int[] rowind, int[] colind, double[] factor, int[] formulastart, int parsed, int[] type, double[] coef)Load non-linear coefficients into the SLP problem.voidslpReInitialize()Reset the SLP problem to match a just augmented systemvoidslpSetDetRow(int x, int value)Convenience wrapper forslpSetDetRow(int, int[], int[]).voidslpSetDetRow(int nvars, int[] colind, int[] rowind)Set the determining row of a variablevoidslpUnConstruct()Removes the augmentation and returns the problem to its pre-linearization statevoidslpUpdateLinearization()Updates the current linearizationvoidsparseBTran(double[] val, int[] ind, IntHolder p_ncoefs)voidsparseFTran(double[] val, int[] ind, IntHolder p_ncoefs)voidstoreCuts(int ncuts, int nodupl, int[] mtype, byte[] qrtype, double[] drhs, int[] mstart, long[] mindex, int[] mcols, double[] dmatval)Deprecated.voidstoreCuts(int ncuts, int nodups, int[] cuttype, byte[] rowtype, double[] rhs, int[] start, XPRScut[] cutind, int[] colind, double[] cutcoef)Stores cuts into the cut pool, but does not apply them to the current node.voidstoreCuts(int ncuts, int nodups, int[] cuttype, byte[] rowtype, double[] rhs, long[] start, XPRScut[] cutind, int[] colind, double[] cutcoef)Stores cuts into the cut pool, but does not apply them to the current node.voidstrongBranch(int nbounds, int[] colind, byte[] bndtype, double[] bndval, int iterlim, double[] objval, int[] status)Performs strong branching iterations on all specified bound changes.voidstrongBranchCB(int nbounds, int[] colind, byte[] bndtype, double[] bndval, int iterlim, double[] objval, int[] status, XPRSstrongBranchSolveListener callback, java.lang.Object data)Performs strong branching iterations on all specified bound changes.voidtune(java.lang.String flags)This function begins a tuner session for the current problem.voidtuneProbSetFile(java.lang.String setfile, int ifmip, int sense)This function begins a tuner session for a set of problems.voidtunerReadMethod(java.lang.String methodfile)This function loads a user defined tuner method from the given file.voidtunerWriteMethod(java.lang.String methodfile)This function writes the current tuner method to a given file or prints it to the console.voidunloadProb()Unloads and frees all memory associated with the current problem.int[]varArray(char type, int count, double[] lb, double[] ub, java.lang.String[] name)Deprecated.since 43.00, use addColumns insteadint[]varArray(char type, int count, double lb, double ub, java.util.function.Function<java.lang.Integer,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadint[]varArray(char type, int count, java.util.function.Function<java.lang.Integer,java.lang.Double> lb, java.util.function.Function<java.lang.Integer,java.lang.Double> ub, java.util.function.Function<java.lang.Integer,java.lang.String> name)Deprecated.since 43.00, use addColumns instead<T> int[]varArray(char type, java.util.Collection<T> objs, double lb, double ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns instead<T> int[]varArray(char type, java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns instead<T> java.util.Map<T,java.lang.Integer>varMap(char type, java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns instead<T> java.util.Map<T,java.lang.Integer>varMap(char type, java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name, java.util.Map<T,java.lang.Integer> map)Deprecated.since 43.00, use addColumns insteadvoidwriteBasis()Convenience wrapper forwriteBasis(String, String).voidwriteBasis(java.lang.String filename)Convenience wrapper forwriteBasis(String, String).voidwriteBasis(java.lang.String filename, java.lang.String flags)Writes the current basis to a file for later input into the Optimizer.voidwriteBinSol()Convenience wrapper forwriteBinSol(String, String).voidwriteBinSol(java.lang.String filename)Convenience wrapper forwriteBinSol(String, String).voidwriteBinSol(java.lang.String filename, java.lang.String flags)Writes the current MIP or LP solution to a binary solution file for later input into the Optimizer.voidwriteDirs()Convenience wrapper forwriteDirs(String).voidwriteDirs(java.lang.String filename)Writes the tree search directives from the current problem to a directives file.voidwriteIIS(int iis, java.lang.String filename, int filetype)Convenience wrapper forwriteIIS(int, String, int, String).voidwriteIIS(int iis, java.lang.String filename, int filetype, java.lang.String flags)Writes an LP/MPS/CSV file containing a given Irreducible Infeasible Set (IIS).voidwriteProb()Convenience wrapper forwriteProb(String, String).voidwriteProb(java.lang.String filename)Convenience wrapper forwriteProb(String, String).voidwriteProb(java.lang.String filename, java.lang.String flags)Writes the current problem to an MPS or LP file.voidwritePrtSol()Convenience wrapper forwritePrtSol(String, String).voidwritePrtSol(java.lang.String filename)Convenience wrapper forwritePrtSol(String, String).voidwritePrtSol(java.lang.String filename, java.lang.String flags)Writes the current solution to a fixed format ASCII file, problem_name.prt.voidwriteSlxSol()Convenience wrapper forwriteSlxSol(String, String).voidwriteSlxSol(java.lang.String filename)Convenience wrapper forwriteSlxSol(String, String).voidwriteSlxSol(java.lang.String filename, java.lang.String flags)Creates an ASCII solution file (.slx) using a similar format to MPS files.voidwriteSol()Convenience wrapper forwriteSol(String, String).voidwriteSol(java.lang.String filename)Convenience wrapper forwriteSol(String, String).voidwriteSol(java.lang.String filename, java.lang.String flags)Writes the current solution to a CSV format ASCII file, problem_name.asc(and.hdr).-  
           Methods inherited from class com.dashoptimization.XPRSobjectaddMsgHandlerListener, addMsgHandlerListener, destroy, isDestroyed
 
-  
           
 
-  
         
-  
    
   -  
         Field Detail-  cannotAddSetspublic static final java.lang.String cannotAddSets Error message in case we attempt to create sets where this is not possible.- Since:
- 43.00
- See Also:
- Constant Field Values
 
 -  cannotAddPWLspublic static final java.lang.String cannotAddPWLs Error message in case we attempt to create rows withVariables where this is not possible.- Since:
- 43.00
- See Also:
- Constant Field Values
 
 -  LEQpublic static final char LEQ Constraint sense for<=constraints.- Since:
- 43.00
- See Also:
- Constant Field Values
 
 -  GEQpublic static final char GEQ Constraint sense for>=constraints.- Since:
- 43.00
- See Also:
- Constant Field Values
 
 -  EQpublic static final char EQ Constraint sense for==constraints.- Since:
- 43.00
- See Also:
- Constant Field Values
 
 
-  
 -  
         Constructor Detail-  XPRSprobpublic XPRSprob() throws XPRSprobExceptionCreates a new, empty problem. Note that instances of this class should be explicitly cleaned up by callingclose()so that native resources can be released and licenses can be released. A good practice is to use instances of this class with try-with-resources.- Throws:
- 
          XPRSprobException- if the problem cannot be created.
 
 -  XPRSprobpublic XPRSprob(java.lang.String path) throws XPRSprobException, XPRSexceptionCreates a new, empty problem. The functions callsXPRS.init(path)so you don't have to do that explicitly. Problems constructed this way will also take care of callingXPRS.free()to match the call toXPRS.init()made from this constructor. Note that instances of this class should be explicitly cleaned up by callingclose()so that native resources can be released and licenses can be released. A good practice is to use instances of this class with try-with-resources.- Parameters:
- 
          path- The path to the license location forXPRS.init. This can be codenull.
- Throws:
- 
          XPRSexception- if the license cannot be initialized.
- 
          XPRSprobException- if the problem cannot be created.
- Since:
- 8.12
 
 
-  
 -  
         Method Detail-  closepublic void close() Destroy the problem, deallocating all memory used. Release any resources allocated for this problem instance. Also callsXPRS.free()to match the call toXPRS.init("")performed by the constructor.- Specified by:
- 
          closein interfacejava.lang.AutoCloseable
- Specified by:
- 
          closein classXPRSobject
- Since:
- 38
 
 -  delCPCuts@Deprecated public void delCPCuts(int itype, int interp, int ncuts, long[] mcutind) throws XPRSprobExceptionDeprecated.- Throws:
- 
          XPRSprobException
 
 -  delCuts@Deprecated public void delCuts(int ibasis, int itype, int interp, double delta, int ncuts, long[] mcutind) throws XPRSprobExceptionDeprecated.- Throws:
- 
          XPRSprobException
 
 -  getCPCutList@Deprecated public void getCPCutList(int itype, int interp, double delta, IntHolder ncuts, int maxcuts, long[] mcutind, double[] dviol) throws XPRSprobExceptionDeprecated.- Throws:
- 
          XPRSprobException
 
 -  getCPCuts@Deprecated public void getCPCuts(long[] mindex, int ncuts, int size, int[] mtype, byte[] qrtype, int[] mstart, int[] mcols, double[] dmatval, double[] drhs) throws XPRSprobExceptionDeprecated.- Throws:
- 
          XPRSprobException
 
 -  getCutList@Deprecated public void getCutList(int itype, int interp, IntHolder ncuts, int maxcuts, long[] mcutind) throws XPRSprobExceptionDeprecated.- Throws:
- 
          XPRSprobException
 
 -  loadCuts@Deprecated public void loadCuts(int itype, int interp, int ncuts, long[] mcutind) throws XPRSprobExceptionDeprecated.- Throws:
- 
          XPRSprobException
 
 -  storeCuts@Deprecated public void storeCuts(int ncuts, int nodupl, int[] mtype, byte[] qrtype, double[] drhs, int[] mstart, long[] mindex, int[] mcols, double[] dmatval) throws XPRSprobExceptionDeprecated.- Throws:
- 
          XPRSprobException
 
 -  interrupt@Deprecated public void interrupt(int type) Deprecated.
 -  iISStatus@Deprecated public void iISStatus(IntHolder iiscount, int[] rowsizes, int[] colsizes, double[] suminfeas, int[] numinfeas) throws XPRSprobException Deprecated.use IISStatus instead- Throws:
- 
          XPRSprobException
 
 -  iISAll@Deprecated public void iISAll() throws XPRSprobExceptionDeprecated.use IISAll instead- Throws:
- 
          XPRSprobException
 
 -  iISIsolations@Deprecated public void iISIsolations(int number) throws XPRSprobExceptionDeprecated.use IISIsolations instead- Throws:
- 
          XPRSprobException
 
 -  getNamespublic void getNames(int type, java.lang.String[] names, int first, int last) throws XPRSprobExceptionGet names. Retrieves names for a certain type of objects.- Parameters:
- 
          type- The type of object for which names should be retrieved: 1 for row names, 2 for column names, 3 for SOS names, 4 for PWL names, 5 for general constraint names.
- 
          names- Buffer in which the names are stored. Must have length at least1 + list - first.
- 
          first- Index of first name to be retrieved.
- 
          last- Index of last name to be retrieved.
- Throws:
- 
          XPRSprobException
 
 -  getNameListObjectpublic XPRSnamelist getNameListObject(int type) throws XPRSprobException - Throws:
- 
          XPRSprobException
 
 -  getStrControlpublic void getStrControl(int _index, StringHolder _svalue) throws XPRSprobException- Throws:
- 
          XPRSprobException
 
 -  getStrAttribpublic void getStrAttrib(int _index, StringHolder _cvalue) throws XPRSprobException- Throws:
- 
          XPRSprobException
 
 -  getStrControlpublic java.lang.String getStrControl(int _index) throws XPRSprobException- Throws:
- 
          XPRSprobException
 
 -  getStrAttribpublic java.lang.String getStrAttrib(int _index) throws XPRSprobException- Throws:
- 
          XPRSprobException
 
 -  addNamespublic void addNames(int type, java.lang.String[] names, int first, int last) throws XPRSprobExceptionAdd names to model. Note that if this method fails, then it is unspecified how many of the names were changed.Used in these examples: - LoadLP
- Trimloss
 - Parameters:
- 
          type- Type of objects to which to add names, See for exampleXPRSconstants.NAMES_ROW.
- 
          names- The names to set (must not benulland must have length at least1 + last - first.
- 
          first- Index of first object to set the name for.
- 
          last- Index of last object to set the name for.
- Throws:
- 
          XPRSprobException
 
 -  addNamespublic void addNames(XPRSenumerations.Namespaces type, java.lang.String[] names, int first, int last) throws XPRSprobException Add names to model. Note that if this method fails, then it is unspecified how many of the names were changed.Used in these examples: - LoadLP
- Trimloss
 - Parameters:
- 
          type- Type of objects to which to add names, See for exampleXPRSconstants.NAMES_ROW.
- 
          names- The names to set (must not benulland must have length at least1 + last - first.
- 
          first- Index of first object to set the name for.
- 
          last- Index of last object to set the name for.
- Throws:
- 
          XPRSprobException
- Since:
- 43.00
 
 -  addSetNamespublic void addSetNames(java.lang.String[] names, int first, int last) throws XPRSprobExceptionAdd names to sets. Note that if this method fails, then it is unspecified how many of the names were changed.- Parameters:
- 
          names- The names to set (must not benulland must have length at least1 + last - first.
- 
          first- Index of first set to set the name for.
- 
          last- Index of last set to set the name for.
- Throws:
- 
          XPRSprobException
- Since:
- 43.00
 
 -  chgMCoef@Deprecated public void chgMCoef(int[] _mrow, int[] _mcol, double[] _dval, int ncoeffs) throws XPRSprobExceptionDeprecated.Version of chgMCoef function with parameters in a different order, to maintain compatibility with pre-2008A API- Throws:
- 
          XPRSprobException
 
 -  chgMQObj@Deprecated public void chgMQObj(int[] _mcol1, int[] _mcol2, double[] _dval, int ncols) throws XPRSprobExceptionDeprecated.Version of chgMQObj function with parameters in a different order, to maintain compatibility with pre-2008A API.- Throws:
- 
          XPRSprobException
 
 -  chgObjSense@Deprecated public void chgObjSense(int objsense) throws XPRSprobExceptionDeprecated.use chgObjSense(com.dashoptimization.XPRSenumerations.ObjSense) insteadRetained to maintain compatibility with Xpress 7.0.- Throws:
- 
          XPRSprobException
 
 -  createBranchObjectpublic XPRSbranchobject createBranchObject(boolean isOriginal) throws XPRSprobException Creates a new XPRSbranchobjectUsed in these examples: - MostViolated
 - Throws:
- 
          XPRSprobException
 
 -  createBranchObjectFromGlobalpublic XPRSbranchobject createBranchObjectFromGlobal(int icol) throws XPRSprobException Creates a new XPRSbranchobject- Throws:
- 
          XPRSprobException
 
 -  getPwlConspublic XPRSprob.PWLInfo getPwlCons(int first, int last) throws XPRSprobException Query a range of PWL constraints.- Parameters:
- 
          first- SeegetPwlCons(int[], int[], int[], double[], double[], int, IntHolder, int, int).
- 
          last- SeegetPwlCons(int[], int[], int[], double[], double[], int, IntHolder, int, int).
- Returns:
- the number of points in the queried PWLs.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  getInfeaspublic XPRSprob.InfeasInfo getInfeas() throws XPRSprobException Get infeasibilities.- Returns:
- Information about infeasibilites.
- Throws:
- 
          XPRSprobException
 
 -  getScaledInfeaspublic XPRSprob.InfeasInfo getScaledInfeas() throws XPRSprobException Get scaled infeasibilities.- Returns:
- Information about scaled infeasibilites.
- Throws:
- 
          XPRSprobException
 
 -  getLastBarSolpublic int getLastBarSol(double[] x, double[] slack, double[] duals, double[] djs) throws XPRSprobExceptionGet the last barrier solution.- Parameters:
- 
          x- Array to store the primal column values (may benull).
- 
          slack- Array to store the primal slack values (may benull).
- 
          duals- Array to store dual row values (may benull).
- 
          djs- Array to store reduced costs (may benull).
- Returns:
- the status of the last barrier solution.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  basisStabilitypublic double basisStability(int type, int norm, boolean ifscaled) throws XPRSprobExceptionCompute basis stability.- Returns:
- basis stability value.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  getControlInfopublic XPRSprob.ControlInfo getControlInfo(java.lang.String name) throws XPRSprobException Get info about a control.- Parameters:
- 
          name- Name of control to query.
- Returns:
- descriptor for the queried control.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  getAttribInfopublic XPRSprob.AttributeInfo getAttribInfo(java.lang.String name) throws XPRSprobException Get info about an attribute.- Parameters:
- 
          name- Name of attribute to query.
- Returns:
- descriptor for the queried attribute.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  getPrimalRaypublic boolean getPrimalRay(double[] ray) throws XPRSprobExceptionGet primal ray.- Parameters:
- 
          ray- where to store the ray's coefficients.
- Returns:
- 
          trueif a ray is available,falseotherwise.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  getDualRaypublic boolean getDualRay(double[] ray) throws XPRSprobExceptionGet dual ray.- Parameters:
- 
          ray- where to store the ray's coefficients.
- Returns:
- 
          trueif a ray is available,falseotherwise.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  getBasisValpublic XPRSprob.BasisValue getBasisVal(int row, int col) throws XPRSprobException Get basis status for a column or row.- Parameters:
- 
          row- Row index to get the row basis status for.
- 
          col- Column index to get the column basis status for.
- Returns:
- queried basis status.
- Throws:
- 
          XPRSprobException- in case of error.
- See Also:
- 
          getRowBasisVal(int),getColBasisVal(int)
 
 -  getRowBasisValpublic int getRowBasisVal(int row) throws XPRSprobExceptionGet basis status for a row.- Parameters:
- 
          row- Row index.
- Returns:
- 
          basis status for 
          row.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  getColBasisValpublic int getColBasisVal(int col) throws XPRSprobExceptionGet basis status for a column.- Parameters:
- 
          col- Column index.
- Returns:
- 
          basis status for 
          col.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  getCutListpublic XPRScut[] getCutList(int cuttype, int interp) throws XPRSprobException Retrieves a list of cut pointers for the cuts active at the current node.- Parameters:
- 
          cuttype- User defined type of the cuts to be returned.
- 
          interp- Way in which the cut type is interpreted
- Returns:
- the queried cuts.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  getQRowQMatrixTripletspublic XPRSprob.MatrixTriplets getQRowQMatrixTriplets(int row) throws XPRSprobException Get quadratic row.- Parameters:
- 
          row- Row index.
- Returns:
- 
          the quadratic matrix for 
          row.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  getQRowIndicespublic int[] getQRowIndices() throws XPRSprobExceptionGet quadratic rows.- Returns:
- indices of rows with quadratic terms.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  refineMipSolpublic int refineMipSol(int options, java.lang.String flags, double[] solution, double[] refined) throws XPRSprobExceptionRefine a MIP solution.- Parameters:
- 
          options- Refinement options.
- 
          flags- Flags passed to any optimization calls during refinement.
- 
          solution- The solution to refine.
- 
          refined- Where to store the refined solution (if found).
- Returns:
- the refinement status.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  getLpSolValpublic XPRSprob.SolVal getLpSolVal(int col, int row) throws XPRSprobException Get LP solution value.- Parameters:
- 
          col- Column to query.
- 
          row- Row to query.
- Returns:
- solution value for the queried row/column.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  getMipSolValpublic XPRSprob.SolVal getMipSolVal(int col, int row) throws XPRSprobException Get MIP solution value.- Parameters:
- 
          col- Column to query.
- 
          row- Row to query.
- Returns:
- solution value for the queried row/column.
- Throws:
- 
          XPRSprobException- in case of error.
 
 -  loadLppublic void loadLp() throws XPRSprobExceptionLoad this instance with an empty LP. The problem name will be set to the empty string. This is a shortcut forloadLp("").Used in these examples: - LoadLP
 - Throws:
- 
          XPRSprobException- if empty model cannot be loaded.
- See Also:
- 
          loadLp(String),loadLp(String, int, int, byte[], double[], double[], double[], int[], int[], int[], double[], double[], double[])
 
 -  loadLppublic void loadLp(java.lang.String probname) throws XPRSprobExceptionLoad this instance with an empty LP. This is a shortcut forloadLp(probname, 0, 0, null, null, null, null, null, null, null, null, null, null).Used in these examples: - LoadLP
 - Parameters:
- 
          probname- The new problem name.
- Throws:
- 
          XPRSprobException- if empty model cannot be loaded.
- See Also:
- 
          loadLp(),loadLp(String, int, int, byte[], double[], double[], double[], int[], int[], int[], double[], double[], double[])
 
 -  fixGlobals@Deprecated public void fixGlobals(int options) throws XPRSprobExceptionDeprecated.Deprecated since 40.01, usefixMIPEntities(int)instead.- Throws:
- 
          XPRSprobException
 
 -  getGlobal@Deprecated public XPRSprob.GlobalInfo getGlobal() throws XPRSprobException Deprecated.Deprecated since 40.01, usegetMIPEntities()instead.- Throws:
- 
          XPRSprobException
 
 -  getGlobalEntities@Deprecated public XPRSprob.GlobalInfo getGlobalEntities() throws XPRSprobException Deprecated.Deprecated since 40.01, usegetDiscreteCols()instead.- Throws:
- 
          XPRSprobException
 
 -  getGlobalSets@Deprecated public XPRSprob.GlobalInfo getGlobalSets() throws XPRSprobException Deprecated.Deprecated since 40.01, usegetSets()instead.- Throws:
- 
          XPRSprobException
 
 -  getGlobal@Deprecated public void getGlobal(IntHolder p_nentities, IntHolder p_nsets, byte[] coltype, int[] colind, double[] limit, byte[] settype, int[] start, int[] setcols, double[] refval) throws XPRSprobException Deprecated.Deprecated since 40.01, usegetMIPEntities(IntHolder, IntHolder, byte[], int[], double[], byte[], int[], int[], double[])instead.- Throws:
- 
          XPRSprobException
 
 -  loadQGlobal@Deprecated public void loadQGlobal(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, int[] setstart, int[] setind, double[] refval) throws XPRSprobExceptionDeprecated.- Throws:
- 
          XPRSprobException
 
 -  loadQGlobal@Deprecated public void loadQGlobal(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, long nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, long[] setstart, int[] setind, double[] refval) throws XPRSprobExceptionDeprecated.- Throws:
- 
          XPRSprobException
 
 -  loadGlobal@Deprecated public void loadGlobal(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, int[] setstart, int[] setind, double[] refval) throws XPRSprobExceptionDeprecated.- Throws:
- 
          XPRSprobException
 
 -  loadGlobal@Deprecated public void loadGlobal(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, long[] setstart, int[] setind, double[] refval) throws XPRSprobExceptionDeprecated.- Throws:
- 
          XPRSprobException
 
 -  loadQCQPGlobal@Deprecated public void loadQCQPGlobal(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nqrows, int[] qrowind, int[] nrowqcoefs, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, int[] setstart, int[] setind, double[] refval) throws XPRSprobExceptionDeprecated.- Throws:
- 
          XPRSprobException
 
 -  loadQCQPGlobal@Deprecated public void loadQCQPGlobal(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, long nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nqrows, int[] qrowind, long[] nrowqcoefs, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, long[] setstart, int[] setind, double[] refval) throws XPRSprobExceptionDeprecated.- Throws:
- 
          XPRSprobException
 
 -  addSetspublic int[] addSets(int count, int[] start, SetType[] type, int[] setind, double[] setref, java.lang.String[] names)Create multiple set constraints.- Parameters:
- 
          count- Number of sets to add.
- 
          start- Array of length at leastcountthat indicates where insetindandsetrefthe data for each set starts.
- 
          type- Array of length at leastcountthat specifies the set types.
- 
          setind- The columns in each set.
- 
          setref- Reference values for columns in each set. This can benullin which case values 1, 2, 3, ... will be used for each set.
- 
          names- Set names. Can benull.
- Returns:
- Indices of the newly created sets.
- Since:
- 43.00
 
 -  addSetpublic int addSet(SetType type, int[] elements, double[] weights, java.lang.String name) Add a single set constraint to this problem.- Parameters:
- 
          type- Set type.
- 
          elements- The elements in the set.
- 
          weights- Weights for elements. If this isnullthen weights 1, 2, 3, ... will be used.
- 
          name- Name of set. Can benull.
- Returns:
- The new set constraint.
- Since:
- 43.00
 
 -  addSetspublic int[] addSets(SetType[] type, int[][] elements, double[][] weights, java.lang.String[] name) Add multiple set constraints to the problem.- Parameters:
- 
          type- Constraint types.
- 
          elements- Elements in each constraint.
- 
          weights- Weights for each constraint. If this isnullthen weights 1, 2, 3, ... will be used.
- 
          name- Constraint names. Can benull.
- Returns:
- The new set constraints.
- Since:
- 43.00
 
 -  addColpublic int addCol(double obj, double lb, double ub, char type, int[] rowind, double[] rowval, java.lang.String name) throws XPRSexception, java.lang.IllegalArgumentExceptionAdd a single column to the model.Used in these examples: - GoalProg
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Parameters:
- 
          obj- The objective coefficient for the new column.
- 
          lb- The lower bound for the new column.
- 
          ub- The upper bound for the new column.
- 
          type- The type for the new column.
- 
          rowind- Array of row indices for the non-zeros for the new column. This can benull. If notnullthen it must have the same length asrowvalandrowval[k]must be the non-zero coefficient of the new column in rowrowind[k].
- 
          rowval- Array of row values for the non-zeros for the new column. This can benull. If notnullthen it must have the same length asrowindandrowval[k]must be the non-zero coefficient of the new column in rowrowind[k].
- 
          name- The name of the new column. This can benull.
- Returns:
- The index of the newly created column.
- Throws:
- 
          XPRSexception
- 
          java.lang.IllegalArgumentException
- See Also:
- 
          addCols(int, int, double[], int[], int[], double[], double[], double[])
 
 -  addColpublic int addCol(double obj, double lb, double ub, char type, int[] rowind, double[] rowval) throws XPRSexception, java.lang.IllegalArgumentExceptionAdd a single column to this problem. This is a shortcut foraddCol(obj, lb, ub, type, rowind, rowval, null);.Used in these examples: - GoalProg
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Parameters:
- 
          obj- The objective coefficient for the new column.
- 
          lb- The lower bound for the new column.
- 
          ub- The upper bound for the new column.
- 
          type- The type for the new column.
- 
          rowind- Array of row indices for the non-zeros for the new column. This can benull. If notnullthen it must have the same length asrowvalandrowval[k]must be the non-zero coefficient of the new column in rowrowind[k].
- 
          rowval- Array of row values for the non-zeros for the new column. This can benull. If notnullthen it must have the same length asrowindandrowval[k]must be the non-zero coefficient of the new column in rowrowind[k].
- Returns:
- The index of the newly created column.
- Throws:
- 
          XPRSexception
- 
          java.lang.IllegalArgumentException
- See Also:
- 
          addCol(double, double, double, char, int[], double[], String)
 
 -  addColpublic int addCol(double obj, double lb, double ub) throws XPRSexceptionAdd a single column to this problem. This is a shortcut foraddCol(obj, lb, ub, 'C', null, null, null);.Used in these examples: - GoalProg
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Parameters:
- 
          obj- The objective coefficient for the new column.
- 
          lb- The lower bound for the new column.
- 
          ub- The upper bound for the new column.
- Returns:
- The index of the newly created column.
- Throws:
- 
          XPRSexception
- See Also:
- 
          addCol(double, double, double, char, int[], double[], String)
 
 -  addColpublic int addCol(double obj, double lb, double ub, char type) throws XPRSexceptionAdd a single column to this problem. This is a shortcut foraddCol(obj, lb, ub, type, null, null, null);.Used in these examples: - GoalProg
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Parameters:
- 
          obj- The objective coefficient for the new column.
- 
          lb- The lower bound for the new column.
- 
          ub- The upper bound for the new column.
- 
          type- The type for the new column.
- Returns:
- The index of the newly created column.
- Throws:
- 
          XPRSexception
- See Also:
- 
          addCol(double, double, double, char, int[], double[], String)
 
 -  addColpublic int addCol(double obj, double lb, double ub, java.lang.String name) throws XPRSexceptionAdd a single column to this problem. This is a shortcut foraddCol(obj, lb, ub, 'C', null, null, name);.Used in these examples: - GoalProg
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Parameters:
- 
          obj- The objective coefficient for the new column.
- 
          lb- The lower bound for the new column.
- 
          ub- The upper bound for the new column.
- 
          name- The name of the new column. This can benull.
- Returns:
- The index of the newly created column.
- Throws:
- 
          XPRSexception
- See Also:
- 
          addCol(double, double, double, char, int[], double[], String)
 
 -  addColpublic int addCol(double obj, double lb, double ub, char type, java.lang.String name) throws XPRSexceptionAdd a single column to this problem. This is a shortcut foraddCol(obj, lb, ub, type, null, null, name);.Used in these examples: - GoalProg
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Parameters:
- 
          obj- The objective coefficient for the new column.
- 
          lb- The lower bound for the new column.
- 
          ub- The upper bound for the new column.
- 
          type- The type for the new column.
- 
          name- The name of the new column. This can benull.
- Returns:
- The index of the newly created column.
- Throws:
- 
          XPRSexception
- See Also:
- 
          addCol(double, double, double, char, int[], double[], String)
 
 -  varArray@Deprecated public int[] varArray(char type, int count, double lb, double ub, java.util.function.Function<java.lang.Integer,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadCreate an array of variables with the same type. All the variables created by this function have the same types and bounds.Used in these examples: - Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Parameters:
- 
          type- Type of variables.
- 
          count- Number of variables to create.
- 
          lb- The lower bound for the variables.
- 
          ub- The upper bound for the variables.
- 
          name- Function that creates a name from an index. This will be invoked with arguments 0..count-1 to obtain a name for the newly created variables. Can benullin which case the variables will not have names.
- Returns:
- The indices of the newly created variables.
 
 -  varArray@Deprecated public int[] varArray(char type, int count, double[] lb, double[] ub, java.lang.String[] name)Deprecated.since 43.00, use addColumns insteadCreate an array of variables with the same type.Used in these examples: - Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Parameters:
- 
          type- Type of the variables.
- 
          count- Number of variables to create.
- 
          lb- Lower bound for the variables, must matchcount.
- 
          ub- Upper bound for the variables, must matchcount.
- 
          name- Names for the variables, must matchcount. Ifnullvariables will be unnamed.
- Returns:
- The indices of the newly created variables.
 
 -  varArray@Deprecated public int[] varArray(char type, int count, java.util.function.Function<java.lang.Integer,java.lang.Double> lb, java.util.function.Function<java.lang.Integer,java.lang.Double> ub, java.util.function.Function<java.lang.Integer,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadCreate an array of variables with the same type.Used in these examples: - Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Parameters:
- 
          type- Type of the variables.
- 
          count- Number of variables to create.
- 
          lb- Function to create a lower bound from an index. This will be invoked with 0..count-1 to create a lower bound for each variable.
- 
          ub- Function to create an upper bound from an index. This will be invoked with 0..count-1 to create an upper bound for each variable.
- 
          name- Function that creates a name from an index. This will be invoked with arguments 0..count-1 to obtain a name for the newly created variables. Can benullin which case the variables will not have names.
- Returns:
- The indices of the newly created variables.
 
 -  varArray@Deprecated public <T> int[] varArray(char type, java.util.Collection<T> objs, double lb, double ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadCreate an array of variables with the same type. All the variables created by this function have the same types and bounds. The function will create one variable for each of the objects listed inobjs.Used in these examples: - Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Type Parameters:
- 
          T- The type of objects
- Parameters:
- 
          type- Type of variables.
- 
          objs- The objects. One variable will be created for each object in this collection.
- 
          lb- Lower bound for new variables.
- 
          ub- Upper bound for new variables.
- 
          name- Function to create a name from an object. This function will be invoked for all the objects fromobjsto generate a name for the respective variable. Ifnullthen variables will be unnamed.
- Returns:
- The indices of the newly created variables.
 
 -  varArray@Deprecated public <T> int[] varArray(char type, java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadCreate an array of variables with the same type. The function will create one variable for each of the objects listed inobjs.Used in these examples: - Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Type Parameters:
- 
          T- Type of the objects
- Parameters:
- 
          type- Type of the variables.
- 
          objs- Objects for which to create variables.
- 
          lb- Function to create a lower bound for a variable. This will be invoked for each object inobjsto generate a lower bound for the respective variable.
- 
          ub- Function to create a lower bound for a variable. This will be invoked for each object inobjsto generate a lower bound for the respective variable.
- 
          name- Function to create a name for a variable. This function will be invoked for all the objects fromobjsto generate a name for the respective variable. Ifnullthen variables will be unnamed.
- Returns:
- Indices of the newly created variables.
 
 -  varMap@Deprecated public <T> java.util.Map<T,java.lang.Integer> varMap(char type, java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name, java.util.Map<T,java.lang.Integer> map)Deprecated.since 43.00, use addColumns insteadCreate a map of variables that all have the same type. The function creates a new variable for each object inobjs. For each object o it puts the pair (o, idx) intomapwhere idx is the index of the variable that was created for o.- Type Parameters:
- 
          T- The type of objects.
- Parameters:
- 
          type- Type of variables.
- 
          objs- Objects for which to create variables.
- 
          lb- Function to create lower bound for variables. This will be invoked for each object inobjsto generate a lower bound for the corresponding variable.
- 
          ub- Function to create lower bound for variables. This will be invoked for each object inobjsto generate an upper bound for the corresponding variable.
- 
          name- Function to create a variable name. This will be invoked for each object inobjsto create a name for the corresponding variable. Ifnullthen variables will be unnamed.
- 
          map- The map to which new object,index pairs are added.
- Returns:
- 
          Returns 
          map.
 
 -  varMap@Deprecated public <T> java.util.Map<T,java.lang.Integer> varMap(char type, java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadCreate a map of variables that all have the same type. The function creates a new variable for each object inobjs. It returns a hash map in which each object inobjsmaps to the index of the variable that was created for it.- Type Parameters:
- 
          T- The type of objects.
- Parameters:
- 
          type- Type of variables.
- 
          objs- Objects for which to create variables.
- 
          lb- Function to create lower bound for variables. This will be invoked for each object inobjsto generate a lower bound for the corresponding variable.
- 
          ub- Function to create lower bound for variables. This will be invoked for each object inobjsto generate an upper bound for the corresponding variable.
- 
          name- Function to create a variable name. This will be invoked for each object inobjsto create a name for the corresponding variable. Ifnullthen variables will be unnamed.
- Returns:
- Mapping of objects to variable indices.
 
 -  contVar@Deprecated public int contVar() Deprecated.since 43.00, use addContinuousCol insteadCreate a continuous variable with default bounds [0, infinity].- Returns:
- objects.Index of the newly created variable.
 
 -  contVar@Deprecated public int contVar(java.lang.String name) Deprecated.since 43.00, use addContinuousCol insteadCreate a continuous variable with default bounds [0, infinity] and a specified name.- Parameters:
- 
          name- objects.Variable name.
- Returns:
- objects.Index of the newly created variable.
 
 -  contVar@Deprecated public int contVar(double lb, double ub)Deprecated.since 43.00, use addContinuousCol insteadCreate a continuous variable with specified bounds.- Parameters:
- 
          lb- Lower bound
- 
          ub- Upper bound
- Returns:
- objects.Index of the newly created variable.
 
 -  contVar@Deprecated public int contVar(double lb, double ub, java.lang.String name)Deprecated.since 43.00, use addContinuousCol insteadCreate a continuous variable with specified bounds and name.- Parameters:
- 
          lb- Lower bound
- 
          ub- Upper bound
- 
          name- objects.Variable name.
- Returns:
- objects.Index of the newly created variable.
 
 -  contVarArray@Deprecated public int[] contVarArray(int count, double lb, double ub, java.util.function.Function<java.lang.Integer,java.lang.String> name)Deprecated.since 43.00, use addContinuousColArray insteadCreate an array of continuous variables. All the variables created by this function have the same types and bounds.- Parameters:
- 
          count- Number of variables to create.
- 
          lb- The lower bound for the variables.
- 
          ub- The upper bound for the variables.
- 
          name- Function that creates a name from an index. This will be invoked with arguments 0..count-1 to obtain a name for the newly created variables. Can benullin which case the variables will not have names.
- Returns:
- The indices of the newly created variables.
 
 -  contVarArray@Deprecated public int[] contVarArray(int count, double[] lb, double[] ub, java.lang.String[] name)Deprecated.since 43.00, use addContinuousColArray insteadCreate an array of continuous variables.- Parameters:
- 
          count- Number of variables to create.
- 
          lb- Lower bound for the variables, must matchcount.
- 
          ub- Upper bound for the variables, must matchcount.
- 
          name- Names for the variables, must matchcount. Ifnullvariables will be unnamed.
- Returns:
- The indices of the newly created variables.
 
 -  contVarArray@Deprecated public int[] contVarArray(int count, java.util.function.Function<java.lang.Integer,java.lang.Double> lb, java.util.function.Function<java.lang.Integer,java.lang.Double> ub, java.util.function.Function<java.lang.Integer,java.lang.String> name)Deprecated.since 43.00, use addContinuousColArray insteadCreate an array of continuous variables.- Parameters:
- 
          count- Number of variables to create.
- 
          lb- Function to create a lower bound from an index. This will be invoked with 0..count-1 to create a lower bound for each variable.
- 
          ub- Function to create an upper bound from an index. This will be invoked with 0..count-1 to create an upper bound for each variable.
- 
          name- Function that creates a name from an index. This will be invoked with arguments 0..count-1 to obtain a name for the newly created variables. Can benullin which case the variables will not have names.
- Returns:
- The indices of the newly created variables.
 
 -  contVarArray@Deprecated public <T> int[] contVarArray(java.util.Collection<T> objs, double lb, double ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addContinuousColArray insteadCreate an array of continuous variables. All the variables created by this function have the same types and bounds. The function will create one variable for each of the objects listed inobjs.- Type Parameters:
- 
          T- The type of objects
- Parameters:
- 
          objs- The objects. One variable will be created for each object in this collection.
- 
          lb- Lower bound for new variables.
- 
          ub- Upper bound for new variables.
- 
          name- Function to create a name from an object. This function will be invoked for all the objects fromobjsto generate a name for the respective variable. Ifnullthen variables will be unnamed.
- Returns:
- The indices of the newly created variables.
 
 -  contVarArray@Deprecated public <T> int[] contVarArray(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addContinuousColArray insteadCreate an array of continuous variables. The function will create one variable for each of the objects listed inobjs.- Type Parameters:
- 
          T- Type of the objects
- Parameters:
- 
          objs- Objects for which to create variables.
- 
          lb- Function to create a lower bound for a variable. This will be invoked for each object inobjsto generate a lower bound for the respective variable.
- 
          ub- Function to create a lower bound for a variable. This will be invoked for each object inobjsto generate a lower bound for the respective variable.
- 
          name- Function to create a name for a variable. This function will be invoked for all the objects fromobjsto generate a name for the respective variable. Ifnullthen variables will be unnamed.
- Returns:
- Indices of the newly created variables.
 
 -  contVarMap@Deprecated public <T> java.util.Map<T,java.lang.Integer> contVarMap(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name, java.util.Map<T,java.lang.Integer> map)Deprecated.since 43.00, use addContinuousColMap insteadCreate a map of continuous variables. The function creates a new variable for each object inobjs. For each object o it puts the pair (o, idx) intomapwhere idx is the index of the variable that was created for o.- Type Parameters:
- 
          T- The type of objects.
- Parameters:
- 
          objs- Objects for which to create variables.
- 
          lb- Function to create lower bound for variables. This will be invoked for each object inobjsto generate a lower bound for the corresponding variable.
- 
          ub- Function to create lower bound for variables. This will be invoked for each object inobjsto generate an upper bound for the corresponding variable.
- 
          name- Function to create a variable name. This will be invoked for each object inobjsto create a name for the corresponding variable. Ifnullthen variables will be unnamed.
- 
          map- The map to which new object,index pairs are added.
- Returns:
- 
          Returns 
          map.
 
 -  contVarMap@Deprecated public <T> java.util.Map<T,java.lang.Integer> contVarMap(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addContinuousColMap insteadCreate a map of continuous variables. The function creates a new variable for each object inobjs. It returns a hash map in which each object inobjsmaps to the index of the variable that was created for it.- Type Parameters:
- 
          T- The type of objects.
- Parameters:
- 
          objs- Objects for which to create variables.
- 
          lb- Function to create lower bound for variables. This will be invoked for each object inobjsto generate a lower bound for the corresponding variable.
- 
          ub- Function to create lower bound for variables. This will be invoked for each object inobjsto generate an upper bound for the corresponding variable.
- 
          name- Function to create a variable name. This will be invoked for each object inobjsto create a name for the corresponding variable. Ifnullthen variables will be unnamed.
- Returns:
- Mapping of objects to variable indices.
 
 -  intVar@Deprecated public int intVar() Deprecated.since 43.00, use addColumn insteadCreate a new integer variable with default bounds [0, infinity].- Returns:
- objects.Index of the newly created variable.
 
 -  intVar@Deprecated public int intVar(java.lang.String name) Deprecated.since 43.00, use addColumn insteadCreate a new integer variable with default bounds [0, infinity] and a specified name.- Parameters:
- 
          name- objects.Variable name.
- Returns:
- objects.Index of the newly created variable.
 
 -  intVar@Deprecated public int intVar(double lb, double ub)Deprecated.since 43.00, use addColumn insteadCreate a new integer variable with specified bounds.- Parameters:
- 
          lb- Lower bound for variable.
- 
          ub- Upper bound for variable.
- Returns:
- objects.Index of the newly created variable.
 
 -  intVar@Deprecated public int intVar(double lb, double ub, java.lang.String name)Deprecated.since 43.00, use addColumn insteadCreate a new integer variable with specified bounds and name.- Parameters:
- 
          lb- Lower bound for variable.
- 
          ub- Upper bound for variable.
- 
          name- objects.Variable name.
- Returns:
- objects.Index of the newly created variable.
 
 -  intVarArray@Deprecated public int[] intVarArray(int count, double lb, double ub, java.util.function.Function<java.lang.Integer,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadCreate an array of integer variables. All the variables created by this function have the same types and bounds.- Parameters:
- 
          count- Number of variables to create.
- 
          lb- The lower bound for the variables.
- 
          ub- The upper bound for the variables.
- 
          name- Function that creates a name from an index. This will be invoked with arguments 0..count-1 to obtain a name for the newly created variables. Can benullin which case the variables will not have names.
- Returns:
- The indices of the newly created variables.
 
 -  intVarArray@Deprecated public int[] intVarArray(int count, double[] lb, double[] ub, java.lang.String[] name)Deprecated.since 43.00, use addColumns insteadCreate an array of integer variables.- Parameters:
- 
          count- Number of variables to create.
- 
          lb- Lower bound for the variables, must matchcount.
- 
          ub- Upper bound for the variables, must matchcount.
- 
          name- Names for the variables, must matchcount. Ifnullvariables will be unnamed.
- Returns:
- The indices of the newly created variables.
 
 -  intVarArray@Deprecated public int[] intVarArray(int count, java.util.function.Function<java.lang.Integer,java.lang.Double> lb, java.util.function.Function<java.lang.Integer,java.lang.Double> ub, java.util.function.Function<java.lang.Integer,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadCreate an array of integer variables.- Parameters:
- 
          count- Number of variables to create.
- 
          lb- Function to create a lower bound from an index. This will be invoked with 0..count-1 to create a lower bound for each variable.
- 
          ub- Function to create an upper bound from an index. This will be invoked with 0..count-1 to create an upper bound for each variable.
- 
          name- Function that creates a name from an index. This will be invoked with arguments 0..count-1 to obtain a name for the newly created variables. Can benullin which case the variables will not have names.
- Returns:
- The indices of the newly created variables.
 
 -  intVarArray@Deprecated public <T> int[] intVarArray(java.util.Collection<T> objs, double lb, double ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadCreate an array of integer variables. All the variables created by this function have the same types and bounds. The function will create one variable for each of the objects listed inobjs.- Type Parameters:
- 
          T- The type of objects
- Parameters:
- 
          objs- The objects. One variable will be created for each object in this collection.
- 
          lb- Lower bound for new variables.
- 
          ub- Upper bound for new variables.
- 
          name- Function to create a name from an object. This function will be invoked for all the objects fromobjsto generate a name for the respective variable. Ifnullthen variables will be unnamed.
- Returns:
- The indices of the newly created variables.
 
 -  intVarArray@Deprecated public <T> int[] intVarArray(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadCreate an array of integer variables. The function will create one variable for each of the objects listed inobjs.- Type Parameters:
- 
          T- Type of the objects
- Parameters:
- 
          objs- Objects for which to create variables.
- 
          lb- Function to create a lower bound for a variable. This will be invoked for each object inobjsto generate a lower bound for the respective variable.
- 
          ub- Function to create a lower bound for a variable. This will be invoked for each object inobjsto generate a lower bound for the respective variable.
- 
          name- Function to create a name for a variable. This function will be invoked for all the objects fromobjsto generate a name for the respective variable. Ifnullthen variables will be unnamed.
- Returns:
- Indices of the newly created variables.
 
 -  intVarMap@Deprecated public <T> java.util.Map<T,java.lang.Integer> intVarMap(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name, java.util.Map<T,java.lang.Integer> map)Deprecated.since 43.00, use addColumns insteadCreate a map of integer variables. The function creates a new variable for each object inobjs. For each object o it puts the pair (o, idx) intomapwhere idx is the index of the variable that was created for o.- Type Parameters:
- 
          T- The type of objects.
- Parameters:
- 
          objs- Objects for which to create variables.
- 
          lb- Function to create lower bound for variables. This will be invoked for each object inobjsto generate a lower bound for the corresponding variable.
- 
          ub- Function to create lower bound for variables. This will be invoked for each object inobjsto generate an upper bound for the corresponding variable.
- 
          name- Function to create a variable name. This will be invoked for each object inobjsto create a name for the corresponding variable. Ifnullthen variables will be unnamed.
- 
          map- The map to which new object,index pairs are added.
- Returns:
- 
          Returns 
          map.
 
 -  intVarMap@Deprecated public <T> java.util.Map<T,java.lang.Integer> intVarMap(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.Double> lb, java.util.function.Function<T,java.lang.Double> ub, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadCreate a map of integer variables. The function creates a new variable for each object inobjs. It returns a hash map in which each object inobjsmaps to the index of the variable that was created for it.- Type Parameters:
- 
          T- The type of objects.
- Parameters:
- 
          objs- Objects for which to create variables.
- 
          lb- Function to create lower bound for variables. This will be invoked for each object inobjsto generate a lower bound for the corresponding variable.
- 
          ub- Function to create lower bound for variables. This will be invoked for each object inobjsto generate an upper bound for the corresponding variable.
- 
          name- Function to create a variable name. This will be invoked for each object inobjsto create a name for the corresponding variable. Ifnullthen variables will be unnamed.
- Returns:
- Mapping of objects to variable indices.
 
 -  binVar@Deprecated public int binVar() Deprecated.since 43.00, use addColumn insteadCreate a new binary variable.Used in these examples: - TSP
 - Returns:
- objects.Index of the newly created variable.
 
 -  binVar@Deprecated public int binVar(java.lang.String name) Deprecated.since 43.00, use addBinaryCol insteadCreate a new binary variable with the specified name.Used in these examples: - TSP
 - Parameters:
- 
          name- objects.Variable name.
- Returns:
- objects.Index of the newly created variable.
 
 -  binVarArray@Deprecated public int[] binVarArray(int count, java.util.function.Function<java.lang.Integer,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadCreate an array of binary variables.- Parameters:
- 
          count- Number of variables to create.
- 
          name- Function that creates a name from an index. This will be invoked with arguments 0..count-1 to obtain a name for the newly created variables. Can benullin which case the variables will not have names.
- Returns:
- The indices of the newly created variables.
 
 -  binVarArray@Deprecated public <T> int[] binVarArray(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadCreate an array of binary variables. The function will create one variable for each of the objects listed inobjs.- Type Parameters:
- 
          T- The type of objects
- Parameters:
- 
          objs- The objects. One variable will be created for each object in this collection.
- 
          name- Function to create a name from an object. This function will be invoked for all the objects fromobjsto generate a name for the respective variable. Ifnullthen variables will be unnamed.
- Returns:
- The indices of the newly created variables.
 
 -  binVarMap@Deprecated public <T> java.util.Map<T,java.lang.Integer> binVarMap(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.String> name, java.util.Map<T,java.lang.Integer> map)Deprecated.since 43.00, use addColumns insteadCreate a map of binary variables. The function creates a new variable for each object inobjs. For each object o it puts the pair (o, idx) intomapwhere idx is the index of the variable that was created for o.- Type Parameters:
- 
          T- The type of objects.
- Parameters:
- 
          objs- Objects for which to create variables.
- 
          name- Function to create a variable name. This will be invoked for each object inobjsto create a name for the corresponding variable. Ifnullthen variables will be unnamed.
- 
          map- The map to which new object,index pairs are added.
- Returns:
- 
          Returns 
          map.
 
 -  binVarMap@Deprecated public <T> java.util.Map<T,java.lang.Integer> binVarMap(java.util.Collection<T> objs, java.util.function.Function<T,java.lang.String> name)Deprecated.since 43.00, use addColumns insteadCreate a map of binary variables. The function creates a new variable for each object inobjs. It returns a hash map in which each object inobjsmaps to the index of the variable that was created for it.- Type Parameters:
- 
          T- The type of objects.
- Parameters:
- 
          objs- Objects for which to create variables.
- 
          name- Function to create a variable name. This will be invoked for each object inobjsto create a name for the corresponding variable. Ifnullthen variables will be unnamed.
- Returns:
- Mapping of objects to variable indices.
 
 -  getMIPEntitiespublic XPRSprob.MIPEntityInfo getMIPEntities() Get information about MIP entities and SOS.- Returns:
- The requested information.
- Since:
- 43.00
 
 -  getDiscreteColspublic XPRSprob.MIPEntityInfo getDiscreteCols() Get information about MIP entities.Used in these examples: - AddMipSol
- FixBV
- RoundInt
 - Returns:
- The requested information.
- Since:
- 43.00
 
 -  getSetspublic XPRSprob.MIPEntityInfo getSets() Get information about SOS.Used in these examples: - Repair
 - Returns:
- The requested information.
- Since:
- 43.00
 
 -  addMipSolpublic void addMipSol(double[] val, int[] ind, java.lang.String name) throws XPRSexceptionAdd a new MIP solution. This is a convenience wrapper foraddMipSol(int, double[], int[], String).Used in these examples: - AddMipSol
- TSP
 - Parameters:
- 
          val- objects.Variable values.
- 
          ind- objects.Variable indices.
- 
          name- Name of solution.
- Throws:
- 
          XPRSexception
- See Also:
- 
          addMipSol(int, double[], int[], String)
 
 -  addMipSolpublic void addMipSol(double[] val, int[] ind) throws XPRSexceptionAdd a new MIP solution. This is a convenience wrapper foraddMipSol(int, double[], int[], String).Used in these examples: - AddMipSol
- TSP
 - Parameters:
- 
          val- objects.Variable values.
- 
          ind- objects.Variable indices.
- Throws:
- 
          XPRSexception
- See Also:
- 
          addMipSol(int, double[], int[], String)
 
 -  getGenConspublic XPRSprob.GeneralConstraintInfo getGenCons(int first, int last) Query a range of general constraints.- Parameters:
- 
          first- First constraint index to query (inclusive).
- 
          last- Last constraint index to query (inclusive).
- Returns:
- The queried constraints.
 
 -  addRowpublic int addRow(int[] colind, double[] colval, char rowtype, double rhs, double rng, java.lang.String name) throws XPRSexception, java.lang.IllegalArgumentExceptionAdd a single row to the problem.Used in these examples: - GoalProg
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
- TSP
 - Parameters:
- 
          colind- Array of column indices for the non-zeros for the new row. This can benull. If notnullthen it must have the same length ascolvalandcolval[k]must be the non-zero coefficient in the new row for columncolind[k].
- 
          colval- Array of column values for the non-zeros for the new row. This can benull. If notnullthen it must have the same length ascolindandcolval[k]must be the non-zero coefficient in the new row for columncolind[k].
- 
          rowtype- The type of the new row.
- 
          rhs- The right-hand side for the new row.
- 
          rng- The range value for the new row.
- 
          name- The name of the new row. This can benull.
- Returns:
- The index of the newly created row.
- Throws:
- 
          XPRSexception
- 
          java.lang.IllegalArgumentException
- See Also:
- 
          addRows(int, int, byte[], double[], double[], int[], int[], double[])
 
 -  addRowpublic int addRow(int[] colind, double[] colval, char rowtype, double rhs, java.lang.String name) throws XPRSexception, java.lang.IllegalArgumentExceptionAdd a single row to the problem.Used in these examples: - GoalProg
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
- TSP
 - Parameters:
- 
          colind- Array of column indices for the non-zeros for the new row. This can benull. If notnullthen it must have the same length ascolvalandcolval[k]must be the non-zero coefficient in the new row for columncolind[k].
- 
          colval- Array of column values for the non-zeros for the new row. This can benull. If notnullthen it must have the same length ascolindandcolval[k]must be the non-zero coefficient in the new row for columncolind[k].
- 
          rowtype- The type of the new row.
- 
          rhs- The right-hand side for the new row.
- 
          name- The name of the new row. This can benull.
- Returns:
- The index of the newly created row.
- Throws:
- 
          XPRSexception
- 
          java.lang.IllegalArgumentException
- See Also:
- 
          addRows(int, int, byte[], double[], double[], int[], int[], double[])
 
 -  addRowpublic int addRow(int[] colind, double[] colval, char rowtype, double rhs) throws XPRSexception, java.lang.IllegalArgumentExceptionAdd a single row to the problem. This is a short cut foraddRow(colind, colval, rowtype, rhs, null, null).Used in these examples: - GoalProg
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
- TSP
 - Parameters:
- 
          colind- Array of column indices for the non-zeros for the new row. This can benull. If notnullthen it must have the same length ascolvalandcolval[k]must be the non-zero coefficient in the new row for columncolind[k].
- 
          colval- Array of column values for the non-zeros for the new row. This can benull. If notnullthen it must have the same length ascolindandcolval[k]must be the non-zero coefficient in the new row for columncolind[k].
- 
          rowtype- The type of the new row.
- 
          rhs- The right-hand side for the new row
- Returns:
- The index of the newly created row.
- Throws:
- 
          XPRSexception
- 
          java.lang.IllegalArgumentException
- See Also:
- 
          addRow(int[], double[], char, double, double, String)
 
 -  addRowpublic int addRow(XPRSprob.RowInfo row) throws XPRSexception Add a single row to the problem.Used in these examples: - GoalProg
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
- TSP
 - Parameters:
- 
          row- The row to add.
- Returns:
- The index of the newly created row.
- Throws:
- 
          XPRSexception
- See Also:
- 
          addRow(int[], double[], char, double, double, String)
 
 -  addRowpublic int addRow(XPRSprob.RowInfo row, java.lang.String name) throws XPRSexception Add a single row to the problem.Used in these examples: - GoalProg
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
- TSP
 - Parameters:
- 
          row- The row to add.
- 
          name- The name for the new row, can benull.
- Returns:
- The index of the newly created row.
- Throws:
- 
          XPRSexception
- See Also:
- 
          addRow(int[], double[], char, double, double, String)
 
 -  addCutpublic void addCut(int cuttype, int[] colind, double[] colval, char rowtype, double rhs) throws XPRSexception, java.lang.NullPointerException, java.lang.IllegalArgumentExceptionAdd a single cut to the problem.Used in these examples: - TSP
 - Parameters:
- 
          cuttype- The type of the cut. This can be any number chosen by the user to identify their cuts.
- 
          colind- Array of column indices for the non-zeros for the new cut. This can benull. If notnullthen it must have the same length ascolvalandcolval[k]must be the non-zero coefficient in the new cut for columncolind[k].
- 
          colval- Array of column values for the non-zeros for the new cut. This can benull. If notnullthen it must have the same length ascolindandcolval[k]must be the non-zero coefficient in the new cut for columncolind[k].
- 
          rowtype- The row type of the new cut (less-or-equal, equal, greater-or-equal). The type is specified as'L','E', or'G'.
- 
          rhs- The right-hand side for the new cut.
- Throws:
- 
          XPRSexception
- 
          java.lang.NullPointerException
- 
          java.lang.IllegalArgumentException
- See Also:
- 
          addCuts(int, int[], byte[], double[], int[], int[], double[])
 
 -  addCutpublic void addCut(int cuttype, XPRSprob.RowInfo cut) throws XPRSexceptionAdd a single cut to the problem.Used in these examples: - TSP
 - Parameters:
- 
          cuttype- The type of the new cut.
- 
          cut- The cut to add
- Throws:
- 
          XPRSexception
- See Also:
- 
          addCut(int, int[], double[], char, double)
 
 -  presolveRowpublic XPRSprob.RowInfo presolveRow(int[] ind, double[] val, char type, double rhs) throws XPRSexception, java.lang.NullPointerException, java.lang.IllegalArgumentException Presolve a row. The function transforms a row that is given in terms of the original model to a row that is given in terms of the presolved model.Used in these examples: - TSP
 - Parameters:
- 
          ind- Non-zero column indices.
- 
          val- Non-zero values of the row.
- 
          type- Type of the row
- 
          rhs- Right-hand side of the row.
- Returns:
- 
          nullif the row could not be presolved, the presolved row otherwise
- Throws:
- 
          XPRSexception
- 
          java.lang.NullPointerException
- 
          java.lang.IllegalArgumentException
- See Also:
- 
          presolveRow(char, int, int[], double[], double, int, IntHolder, int[], double[], DoubleHolder, IntHolder)
 
 -  presolveRowpublic XPRSprob.RowInfo presolveRow(XPRSprob.RowInfo row) throws XPRSexception Presolve a row. The function transforms a row that is given in terms of the original model to a row that is given in terms of the presolved model.Used in these examples: - TSP
 - Parameters:
- 
          row- The row to presolve.
- Returns:
- 
          nullif the row could not be presolved, the presolved row otherwise
- Throws:
- 
          XPRSexception
- See Also:
- 
          presolveRow(char, int, int[], double[], double, int, IntHolder, int[], double[], DoubleHolder, IntHolder)
 
 -  clearObjectivepublic void clearObjective() throws XPRSexceptionClear the objective function.- Throws:
- 
          XPRSexception
 
 -  setObjectivepublic void setObjective(int[] ind, double[] val) throws XPRSexceptionSet objective to a linear function. Any previously set objective will be cleared.Used in these examples: - TSP
 - Parameters:
- 
          ind- Non-zero variable indices.
- 
          val- Non-zero variable values.
- Throws:
- 
          XPRSexception
 
 -  setObjectivepublic void setObjective(int[] ind, double[] val, XPRSenumerations.ObjSense sense) throws XPRSexceptionSet objective to a linear function. Any previously set objective will be cleared.Used in these examples: - TSP
 - Parameters:
- 
          ind- Non-zero variable indices.
- 
          val- Non-zero variable values.
- 
          sense- Objective sense.
- Throws:
- 
          XPRSexception
 
 -  getIISDatapublic XPRSprob.IISData getIISData(int number) Get information about an IIS.Used in these examples: - IISExample
 - Parameters:
- 
          number- The index of the IIS to query.
- Returns:
- Information about the queried IIS.
 
 -  IISStatuspublic final XPRSprob.IISStatusInfo IISStatus() Get the IIS status.Used in these examples: - IISExample
 - Returns:
- IIS status information. If there are no IISs then the returned object will have all empty arrays.
 
 -  getNamespublic void getNames(XPRSenumerations.Namespaces type, java.lang.String[] names, int first, int last) throws XPRSexception Get names. Retrieves names for a certain type of objects.- Parameters:
- 
          type- The type of object for which names should be retrieved.
- 
          names- Where to put the requested names.
- 
          first- objects.Index of first name to be retrieved.
- 
          last- objects.Index of last name to be retrieved.
- Throws:
- 
          XPRSexception
- Since:
- 43.00
- See Also:
- 
          getNames(int, String[], int, int)
 
 -  getNamespublic java.lang.String[] getNames(int type, int first, int last) throws XPRSexceptionGet names. Retrieves names for a certain type of objects.- Parameters:
- 
          type- The type of object for which names should be retrieved.
- 
          first- objects.Index of first name to be retrieved.
- 
          last- objects.Index of last name to be retrieved.
- Returns:
- The requested names
- Throws:
- 
          XPRSexception
- See Also:
- 
          getNames(int, String[], int, int)
 
 -  getNamespublic java.lang.String[] getNames(XPRSenumerations.Namespaces type, int first, int last) throws XPRSexception Get names. Retrieves names for a certain type of objects.- Parameters:
- 
          type- The type of object for which names should be retrieved.
- 
          first- objects.Index of first name to be retrieved.
- 
          last- objects.Index of last name to be retrieved.
- Returns:
- The requested names
- Throws:
- 
          XPRSexception
- Since:
- 43.00
- See Also:
- 
          getNames(int, String[], int, int)
 
 -  getNamepublic java.lang.String getName(int type, int elt) throws XPRSexceptionGet the name of a single element.- Parameters:
- 
          type- The type of the element.
- 
          elt- The index of the element.
- Returns:
- the element's name.
- Throws:
- 
          XPRSexception
- See Also:
- 
          getNames(int, String[], int, int)
 
 -  getNamepublic java.lang.String getName(XPRSenumerations.Namespaces type, int elt) throws XPRSexception Get the name of a single element.- Parameters:
- 
          type- The type of the element.
- 
          elt- The index of the element.
- Returns:
- the element's name.
- Throws:
- 
          XPRSexception
- Since:
- 43.00
- See Also:
- 
          getNames(int, String[], int, int)
 
 -  getRowNamespublic java.lang.String[] getRowNames(int first, int last) throws XPRSexceptionGet names of rows.Used in these examples: - Tableau
 - Parameters:
- 
          first- First row index (inclusive).
- 
          last- Last row index (inclusive).
- Returns:
- The names for the specified rows.
- Throws:
- 
          XPRSexception
 
 -  getRowNamepublic java.lang.String getRowName(int index) throws XPRSexceptionGet a row name.Used in these examples: - Repair
- Tableau
 - Parameters:
- 
          index- objects.Index of the row.
- Returns:
- The requested row's name.
- Throws:
- 
          XPRSexception
 
 -  getColumnNamespublic java.lang.String[] getColumnNames(int first, int last) throws XPRSexceptionGet names of columns.Used in these examples: - Tableau
 - Parameters:
- 
          first- First column index (inclusive).
- 
          last- Last column index (inclusive).
- Returns:
- The names for the specified columns.
- Throws:
- 
          XPRSexception
 
 -  getColumnNamepublic java.lang.String getColumnName(int index) throws XPRSexceptionGet a column name.Used in these examples: - Repair
- Tableau
 - Parameters:
- 
          index- objects.Index of the column.
- Returns:
- The requested column's name.
- Throws:
- 
          XPRSexception
 
 -  getSetNamespublic java.lang.String[] getSetNames(int first, int last) throws XPRSexceptionGet names of sets (SOS).- Parameters:
- 
          first- First set index (inclusive).
- 
          last- Last set index (inclusive).
- Returns:
- The names for the specified sets.
- Throws:
- 
          XPRSexception
 
 -  getSetNamepublic java.lang.String getSetName(int index) throws XPRSexceptionGet a set (SOS) name.- Parameters:
- 
          index- objects.Index of the set.
- Returns:
- The requested sets's name.
- Throws:
- 
          XPRSexception
 
 -  getPWLNamespublic java.lang.String[] getPWLNames(int first, int last) throws XPRSexceptionGet names of PWL constraints.- Parameters:
- 
          first- First PWL index (inclusive).
- 
          last- Last PWL index (inclusive).
- Returns:
- The names for the specified PWL constraints.
- Throws:
- 
          XPRSexception
 
 -  getPWLNamepublic java.lang.String getPWLName(int index) throws XPRSexceptionGet a PWL constraint name.- Parameters:
- 
          index- objects.Index of the PWL constraint.
- Returns:
- The requested PWL constraint's name.
- Throws:
- 
          XPRSexception
 
 -  getGenConsNamespublic java.lang.String[] getGenConsNames(int first, int last) throws XPRSexceptionGet names of general constraints.- Parameters:
- 
          first- First general constraint index (inclusive).
- 
          last- Last general constraint index (inclusive).
- Returns:
- The names for the specified general constraints.
- Throws:
- 
          XPRSexception
 
 -  getGenConsNamepublic java.lang.String getGenConsName(int index) throws XPRSexceptionGet a general constraint name.- Parameters:
- 
          index- objects.Index of the general constraint.
- Returns:
- The requested general constraint's name.
- Throws:
- 
          XPRSexception
 
 -  getColspublic XPRSprob.MatrixInfo getCols(int first, int last) Get range of columns.Used in these examples: - AddMipSol
- GlobalObjectiveParametrics
- GlobalRHSParametrics
- Knapsack
- MipSolEnum
- MostViolated
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
- Repair
- RoundInt
- SaveSol
- Tableau
- Trimloss
 - Parameters:
- 
          first- First column index (inclusive).
- 
          last- Last column index (inclusive).
- Returns:
- Data for the queried columns
 
 -  getRowspublic XPRSprob.MatrixInfo getRows(int first, int last) Get range of rows.Used in these examples: - GlobalObjectiveParametrics
- GlobalRHSParametrics
- LoadLP
- Repair
- Tableau
- Trimloss
 - Parameters:
- 
          first- First row index (inclusive)
- 
          last- Last row index (inclusive)
- Returns:
- Data for the queried rows.
 
 -  getMQObjpublic XPRSprob.MatrixInfo getMQObj(int first, int last) Get quadratic objective matrix for range of columns.- Parameters:
- 
          first- First column index (inclusive).
- 
          last- Last column index (inclusive).
- Returns:
- Data for the queried columns.
 
 -  delIndicatorpublic void delIndicator(int row) Delete a single indicator constraint. This only deletes the "indicator property from the specified row. Neither the associated variable nor the row are deleted.- Parameters:
- 
          row- Row from which to delete the indicator constraint.
- Since:
- 43.00
 
 -  getIndicatorspublic IndicatorInfo[] getIndicators(int first, int last) Get indicator information for a range of rows. Returns indicator information for the rows in [first,last] that actually are indicator rows. No data is returned for rows in this range that are not indicator rows.- Parameters:
- 
          first- First (inclusive) row index.
- 
          last- Last (inclusive) row index.
- Returns:
- Indicator data for the specified range of rows.
- Since:
- 43.00
 
 -  getIndicatorpublic IndicatorInfo getIndicator(int row) Get indicator information for a single row.- Parameters:
- 
          row- The row to query.
- Returns:
- 
          Indicator information for 
          row. This will benullifrowis not an indicator row.
- Since:
- 43.00
 
 -  setIndicatorpublic void setIndicator(int rowind, int colind, int complement)Add a single indicator constraint.- Parameters:
- 
          rowind- Index of the row for the indicator.
- 
          colind- Index of the column for the indicator.
- 
          complement- If 1 thenrowindbecomes active ifcolindis 1. If -1 thenrowindbecomes active ifcolindis 0.
- Since:
- 43.00
 
 -  chgLBpublic void chgLB(int j, double lb) throws XPRSexceptionChange the lower bound of a single variable.Used in these examples: - Repair
 - Parameters:
- 
          j- The variable to change.
- 
          lb- The new lower bound.
- Throws:
- 
          XPRSexception
- See Also:
- 
          chgBounds(int, int[], byte[], double[])
 
 -  chgUBpublic void chgUB(int j, double ub) throws XPRSexceptionChange the upper bound of a single variable.Used in these examples: - Repair
 - Parameters:
- 
          j- The variable to change.
- 
          ub- The new upper bound.
- Throws:
- 
          XPRSexception
- See Also:
- 
          chgBounds(int, int[], byte[], double[])
 
 -  chgBoundspublic void chgBounds(int j, double lb, double ub) throws XPRSexceptionChange bounds of a single variable.Used in these examples: - AddMipSol
- FixBV
- RoundInt
 - Parameters:
- 
          j- objects.Variable to change.
- 
          lb- New lower bound.
- 
          ub- New upper bound.
- Throws:
- 
          XPRSexception
- See Also:
- 
          chgBounds(int, int[], byte[], double[])
 
 -  optimizepublic int optimize(java.lang.String flags) Convenience wrapper foroptimize(String, IntHolder, IntHolder). This function callsoptimizewith the specified flags and returns the solve status. The solution status is returned and must be queried explicitly afterwards using the corresponding attribute. See the documentation of the overloaded function for more details.Used in these examples: - Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Parameters:
- 
          flags- Flags to tweak the function behavior.
- Returns:
- The solve status.
 
 -  optimizepublic int optimize() Convenience wrapper foroptimize(String, IntHolder, IntHolder). This function callsoptimizewith default arguments and returns the solve status. The solution status is returned and must be queried explicitly afterwards using the corresponding attribute. See the documentation of the overloaded function for more details.Used in these examples: - Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Returns:
- The solve status
 
 -  buildColumnspublic int[] buildColumns(VariableBuilder.ArrayBuilder builder, java.util.function.Consumer<int[]> transformResult) TODO: Hide this from the user.- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic int[] buildColumns(VariableBuilder.ArrayBuilder builder) Add variables as specified by the builder.- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic <I> I buildColumns(VariableBuilder.ArrayBuilder builder, java.util.function.Supplier<I> makeResult, Action3<I,java.lang.Integer,java.lang.Integer> addResult) Add columns as specified by the builder. This is a parametrized version ofbuildColumns(VariableBuilder.ArrayBuilder).- Type Parameters:
- 
          I- Type of object to store column indices.
- Parameters:
- 
          builder- Builder that specifies the columns to create.
- 
          makeResult- Function to create an (empty) result.
- 
          addResult- Function to add a column to the result.
- Returns:
- 
          Result as given by 
          makeResult.
- Since:
- 43.00
 
 -  buildColumnspublic <K1> void buildColumns(VariableBuilder.MapBuilder<K1> builder, java.util.function.BiConsumer<K1,java.lang.Integer> addKey, java.lang.Runnable makeResult) Create a column map from a builder. This function parametrizes creation of map that maps keys to created objects.- Type Parameters:
- 
          K1- Data type for dimension 1.
- Parameters:
- 
          builder- The variable builder.
- 
          addKey- Function that is called for each variable.
- 
          makeResult- Function that is called to make the result.
- Since:
- 43.00
 
 -  buildColumnspublic <K1> java.util.HashMap<K1,java.lang.Integer> buildColumns(VariableBuilder.MapBuilder<K1> builder) Create a column map from a builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- Parameters:
- 
          builder- The builder to create columns.
- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic <I,K1> I buildColumns(VariableBuilder.MapBuilder<K1> builder, java.util.function.Supplier<I> makeResult, Action3<I,K1,java.lang.Integer> addResult) Create a column map from a builder.- Type Parameters:
- 
          I- Result type.
- 
          K1- Data type for dimension 1.
- Parameters:
- 
          builder- The builder to create columns.
- 
          makeResult- Function to create an (empty) result.
- 
          addResult- Function to add an element to the result.
- Returns:
- 
          Result as given by 
          makeResult.
- Since:
- 43.00
 
 -  addColumnspublic VariableBuilder.ColumnArrayBuilder addColumns(int dim) Create an 1 dimensional array of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoArray()function.// Create a multi-dimensional array of binary columns int [] x = prob.addColumns(dim) .withType(com.dashoptimization.objects.ColumnType.Binary) .toArray();SeeVariableBuilder.ColumnArrayBuilderfor details of how to modify the specification in the builder.- Parameters:
- 
          dim- Dimension.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  addColumnspublic <K1> VariableBuilder.ColumnMapBuilder<K1> addColumns(java.util.Collection<K1> coll1) Create an 1 dimensional map of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoMap()function.// Create a multi-dimensional array of binary columns java.util.HashMap<K1 ,Integer> x = prob.addColumns(coll1 ) .withType(com.dashoptimization.objects.ColumnType.Binary) .toMap();SeeVariableBuilder.ColumnMapBuilderfor details of how to modify the specification in the builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- Parameters:
- 
          coll1- Data for dimension 1.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  addColumnspublic <K1> VariableBuilder.ColumnMapBuilder<K1> addColumns(K1[] arr1) Create an 1 dimensional map of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoMap()function.// Create a multi-dimensional array of binary columns java.util.HashMap<K1 ,Integer> x = prob.addColumns(coll1 ) .withType(com.dashoptimization.objects.ColumnType.Binary) .toMap();SeeVariableBuilder.ColumnMapBuilderfor details of how to modify the specification in the builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- Parameters:
- 
          arr1- Data for the builder.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  addColumnspublic <K1> VariableBuilder.ColumnMapBuilder<K1> addColumns(java.util.stream.Stream<K1> strm) Create an 1 dimensional map of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoMap()function.// Create a multi-dimensional array of binary columns java.util.HashMap<K1 ,Integer> x = prob.addColumns(coll1 ) .withType(com.dashoptimization.objects.ColumnType.Binary) .toMap();SeeVariableBuilder.ColumnMapBuilderfor details of how to modify the specification in the builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  addColumnpublic int addColumn(double lb, double ub, ColumnType type, java.lang.String name)Add a single column to this problem.- Parameters:
- 
          lb- Lower bound for new column.
- 
          ub- Upper bound for new column.
- 
          type- Type for new column.
- 
          name- Name for new column, can benull.
- Since:
- 43.00
 
 -  buildColumnspublic int[][] buildColumns(VariableBuilder.Array2Builder builder, java.util.function.Consumer<int[][]> transformResult) TODO: Hide this from the user.- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic int[][] buildColumns(VariableBuilder.Array2Builder builder) Add variables as specified by the builder.- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic <I> I buildColumns(VariableBuilder.Array2Builder builder, java.util.function.Supplier<I> makeResult, Action4<I,java.lang.Integer,java.lang.Integer,java.lang.Integer> addResult) Add columns as specified by the builder. This is a parametrized version ofbuildColumns(VariableBuilder.Array2Builder).- Type Parameters:
- 
          I- Type of object to store column indices.
- Parameters:
- 
          builder- Builder that specifies the columns to create.
- 
          makeResult- Function to create an (empty) result.
- 
          addResult- Function to add a column to the result.
- Returns:
- 
          Result as given by 
          makeResult.
- Since:
- 43.00
 
 -  buildColumnspublic <K1,K2> void buildColumns(VariableBuilder.Map2Builder<K1,K2> builder, Action3<K1,K2,java.lang.Integer> addKey, java.lang.Runnable makeResult) Create a column map from a builder. This function parametrizes creation of map that maps keys to created objects.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- Parameters:
- 
          builder- The variable builder.
- 
          addKey- Function that is called for each variable.
- 
          makeResult- Function that is called to make the result.
- Since:
- 43.00
 
 -  buildColumnspublic <K1,K2> HashMap2<K1,K2,java.lang.Integer> buildColumns(VariableBuilder.Map2Builder<K1,K2> builder) Create a column map from a builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- Parameters:
- 
          builder- The builder to create columns.
- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic <I,K1,K2> I buildColumns(VariableBuilder.Map2Builder<K1,K2> builder, java.util.function.Supplier<I> makeResult, Action4<I,K1,K2,java.lang.Integer> addResult) Create a column map from a builder.- Type Parameters:
- 
          I- Result type.
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- Parameters:
- 
          builder- The builder to create columns.
- 
          makeResult- Function to create an (empty) result.
- 
          addResult- Function to add an element to the result.
- Returns:
- 
          Result as given by 
          makeResult.
- Since:
- 43.00
 
 -  addColumnspublic VariableBuilder.ColumnArray2Builder addColumns(int dim1, int dim2) Create an 2 dimensional array of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoArray()function.// Create a multi-dimensional array of binary columns int [] [] x = prob.addColumns(dim1 ,dim2) .withType(com.dashoptimization.objects.ColumnType.Binary) .toArray();SeeVariableBuilder.ColumnArray2Builderfor details of how to modify the specification in the builder.- Parameters:
- 
          dim1- Dimension 1.
- 
          dim2- Dimension 2.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  addColumnspublic <K1,K2> VariableBuilder.ColumnMap2Builder<K1,K2> addColumns(java.util.Collection<K1> coll1, java.util.Collection<K2> coll2) Create an 2 dimensional map of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoMap()function.// Create a multi-dimensional array of binary columns com.dashoptimization.maps.HashMap2<K1 ,K2,Integer> x = prob.addColumns(coll1 ,coll2) .withType(com.dashoptimization.objects.ColumnType.Binary) .toMap();SeeVariableBuilder.ColumnMap2Builderfor details of how to modify the specification in the builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- Parameters:
- 
          coll1- Data for dimension 1.
- 
          coll2- Data for dimension 2.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  addColumnspublic <K1,K2> VariableBuilder.ColumnMap2Builder<K1,K2> addColumns(K1[] arr1, K2[] arr2) Create an 2 dimensional map of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoMap()function.// Create a multi-dimensional array of binary columns com.dashoptimization.maps.HashMap2<K1 ,K2,Integer> x = prob.addColumns(coll1 ,coll2) .withType(com.dashoptimization.objects.ColumnType.Binary) .toMap();SeeVariableBuilder.ColumnMap2Builderfor details of how to modify the specification in the builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- Parameters:
- 
          arr1- Data for the builder.
- 
          arr2- Data for the builder.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  buildColumnspublic int[][][] buildColumns(VariableBuilder.Array3Builder builder, java.util.function.Consumer<int[][][]> transformResult) TODO: Hide this from the user.- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic int[][][] buildColumns(VariableBuilder.Array3Builder builder) Add variables as specified by the builder.- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic <I> I buildColumns(VariableBuilder.Array3Builder builder, java.util.function.Supplier<I> makeResult, Action5<I,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer> addResult) Add columns as specified by the builder. This is a parametrized version ofbuildColumns(VariableBuilder.Array3Builder).- Type Parameters:
- 
          I- Type of object to store column indices.
- Parameters:
- 
          builder- Builder that specifies the columns to create.
- 
          makeResult- Function to create an (empty) result.
- 
          addResult- Function to add a column to the result.
- Returns:
- 
          Result as given by 
          makeResult.
- Since:
- 43.00
 
 -  buildColumnspublic <K1,K2,K3> void buildColumns(VariableBuilder.Map3Builder<K1,K2,K3> builder, Action4<K1,K2,K3,java.lang.Integer> addKey, java.lang.Runnable makeResult) Create a column map from a builder. This function parametrizes creation of map that maps keys to created objects.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- Parameters:
- 
          builder- The variable builder.
- 
          addKey- Function that is called for each variable.
- 
          makeResult- Function that is called to make the result.
- Since:
- 43.00
 
 -  buildColumnspublic <K1,K2,K3> HashMap3<K1,K2,K3,java.lang.Integer> buildColumns(VariableBuilder.Map3Builder<K1,K2,K3> builder) Create a column map from a builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- Parameters:
- 
          builder- The builder to create columns.
- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic <I,K1,K2,K3> I buildColumns(VariableBuilder.Map3Builder<K1,K2,K3> builder, java.util.function.Supplier<I> makeResult, Action5<I,K1,K2,K3,java.lang.Integer> addResult) Create a column map from a builder.- Type Parameters:
- 
          I- Result type.
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- Parameters:
- 
          builder- The builder to create columns.
- 
          makeResult- Function to create an (empty) result.
- 
          addResult- Function to add an element to the result.
- Returns:
- 
          Result as given by 
          makeResult.
- Since:
- 43.00
 
 -  addColumnspublic VariableBuilder.ColumnArray3Builder addColumns(int dim1, int dim2, int dim3) Create an 3 dimensional array of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoArray()function.// Create a multi-dimensional array of binary columns int [] [] [] x = prob.addColumns(dim1 ,dim2 ,dim3) .withType(com.dashoptimization.objects.ColumnType.Binary) .toArray();SeeVariableBuilder.ColumnArray3Builderfor details of how to modify the specification in the builder.- Parameters:
- 
          dim1- Dimension 1.
- 
          dim2- Dimension 2.
- 
          dim3- Dimension 3.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  addColumnspublic <K1,K2,K3> VariableBuilder.ColumnMap3Builder<K1,K2,K3> addColumns(java.util.Collection<K1> coll1, java.util.Collection<K2> coll2, java.util.Collection<K3> coll3) Create an 3 dimensional map of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoMap()function.// Create a multi-dimensional array of binary columns com.dashoptimization.maps.HashMap3<K1 ,K2 ,K3,Integer> x = prob.addColumns(coll1 ,coll2 ,coll3) .withType(com.dashoptimization.objects.ColumnType.Binary) .toMap();SeeVariableBuilder.ColumnMap3Builderfor details of how to modify the specification in the builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- Parameters:
- 
          coll1- Data for dimension 1.
- 
          coll2- Data for dimension 2.
- 
          coll3- Data for dimension 3.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  addColumnspublic <K1,K2,K3> VariableBuilder.ColumnMap3Builder<K1,K2,K3> addColumns(K1[] arr1, K2[] arr2, K3[] arr3) Create an 3 dimensional map of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoMap()function.// Create a multi-dimensional array of binary columns com.dashoptimization.maps.HashMap3<K1 ,K2 ,K3,Integer> x = prob.addColumns(coll1 ,coll2 ,coll3) .withType(com.dashoptimization.objects.ColumnType.Binary) .toMap();SeeVariableBuilder.ColumnMap3Builderfor details of how to modify the specification in the builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- Parameters:
- 
          arr1- Data for the builder.
- 
          arr2- Data for the builder.
- 
          arr3- Data for the builder.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  buildColumnspublic int[][][][] buildColumns(VariableBuilder.Array4Builder builder, java.util.function.Consumer<int[][][][]> transformResult) TODO: Hide this from the user.- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic int[][][][] buildColumns(VariableBuilder.Array4Builder builder) Add variables as specified by the builder.- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic <I> I buildColumns(VariableBuilder.Array4Builder builder, java.util.function.Supplier<I> makeResult, Action6<I,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer> addResult) Add columns as specified by the builder. This is a parametrized version ofbuildColumns(VariableBuilder.Array4Builder).- Type Parameters:
- 
          I- Type of object to store column indices.
- Parameters:
- 
          builder- Builder that specifies the columns to create.
- 
          makeResult- Function to create an (empty) result.
- 
          addResult- Function to add a column to the result.
- Returns:
- 
          Result as given by 
          makeResult.
- Since:
- 43.00
 
 -  buildColumnspublic <K1,K2,K3,K4> void buildColumns(VariableBuilder.Map4Builder<K1,K2,K3,K4> builder, Action5<K1,K2,K3,K4,java.lang.Integer> addKey, java.lang.Runnable makeResult) Create a column map from a builder. This function parametrizes creation of map that maps keys to created objects.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- 
          K4- Data type for dimension 4.
- Parameters:
- 
          builder- The variable builder.
- 
          addKey- Function that is called for each variable.
- 
          makeResult- Function that is called to make the result.
- Since:
- 43.00
 
 -  buildColumnspublic <K1,K2,K3,K4> HashMap4<K1,K2,K3,K4,java.lang.Integer> buildColumns(VariableBuilder.Map4Builder<K1,K2,K3,K4> builder) Create a column map from a builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- 
          K4- Data type for dimension 4.
- Parameters:
- 
          builder- The builder to create columns.
- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic <I,K1,K2,K3,K4> I buildColumns(VariableBuilder.Map4Builder<K1,K2,K3,K4> builder, java.util.function.Supplier<I> makeResult, Action6<I,K1,K2,K3,K4,java.lang.Integer> addResult) Create a column map from a builder.- Type Parameters:
- 
          I- Result type.
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- 
          K4- Data type for dimension 4.
- Parameters:
- 
          builder- The builder to create columns.
- 
          makeResult- Function to create an (empty) result.
- 
          addResult- Function to add an element to the result.
- Returns:
- 
          Result as given by 
          makeResult.
- Since:
- 43.00
 
 -  addColumnspublic VariableBuilder.ColumnArray4Builder addColumns(int dim1, int dim2, int dim3, int dim4) Create an 4 dimensional array of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoArray()function.// Create a multi-dimensional array of binary columns int [] [] [] [] x = prob.addColumns(dim1 ,dim2 ,dim3 ,dim4) .withType(com.dashoptimization.objects.ColumnType.Binary) .toArray();SeeVariableBuilder.ColumnArray4Builderfor details of how to modify the specification in the builder.- Parameters:
- 
          dim1- Dimension 1.
- 
          dim2- Dimension 2.
- 
          dim3- Dimension 3.
- 
          dim4- Dimension 4.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  addColumnspublic <K1,K2,K3,K4> VariableBuilder.ColumnMap4Builder<K1,K2,K3,K4> addColumns(java.util.Collection<K1> coll1, java.util.Collection<K2> coll2, java.util.Collection<K3> coll3, java.util.Collection<K4> coll4) Create an 4 dimensional map of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoMap()function.// Create a multi-dimensional array of binary columns com.dashoptimization.maps.HashMap4<K1 ,K2 ,K3 ,K4,Integer> x = prob.addColumns(coll1 ,coll2 ,coll3 ,coll4) .withType(com.dashoptimization.objects.ColumnType.Binary) .toMap();SeeVariableBuilder.ColumnMap4Builderfor details of how to modify the specification in the builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- 
          K4- Data type for dimension 4.
- Parameters:
- 
          coll1- Data for dimension 1.
- 
          coll2- Data for dimension 2.
- 
          coll3- Data for dimension 3.
- 
          coll4- Data for dimension 4.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  addColumnspublic <K1,K2,K3,K4> VariableBuilder.ColumnMap4Builder<K1,K2,K3,K4> addColumns(K1[] arr1, K2[] arr2, K3[] arr3, K4[] arr4) Create an 4 dimensional map of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoMap()function.// Create a multi-dimensional array of binary columns com.dashoptimization.maps.HashMap4<K1 ,K2 ,K3 ,K4,Integer> x = prob.addColumns(coll1 ,coll2 ,coll3 ,coll4) .withType(com.dashoptimization.objects.ColumnType.Binary) .toMap();SeeVariableBuilder.ColumnMap4Builderfor details of how to modify the specification in the builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- 
          K4- Data type for dimension 4.
- Parameters:
- 
          arr1- Data for the builder.
- 
          arr2- Data for the builder.
- 
          arr3- Data for the builder.
- 
          arr4- Data for the builder.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  buildColumnspublic int[][][][][] buildColumns(VariableBuilder.Array5Builder builder, java.util.function.Consumer<int[][][][][]> transformResult) TODO: Hide this from the user.- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic int[][][][][] buildColumns(VariableBuilder.Array5Builder builder) Add variables as specified by the builder.- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic <I> I buildColumns(VariableBuilder.Array5Builder builder, java.util.function.Supplier<I> makeResult, Action7<I,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer,java.lang.Integer> addResult) Add columns as specified by the builder. This is a parametrized version ofbuildColumns(VariableBuilder.Array5Builder).- Type Parameters:
- 
          I- Type of object to store column indices.
- Parameters:
- 
          builder- Builder that specifies the columns to create.
- 
          makeResult- Function to create an (empty) result.
- 
          addResult- Function to add a column to the result.
- Returns:
- 
          Result as given by 
          makeResult.
- Since:
- 43.00
 
 -  buildColumnspublic <K1,K2,K3,K4,K5> void buildColumns(VariableBuilder.Map5Builder<K1,K2,K3,K4,K5> builder, Action6<K1,K2,K3,K4,K5,java.lang.Integer> addKey, java.lang.Runnable makeResult) Create a column map from a builder. This function parametrizes creation of map that maps keys to created objects.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- 
          K4- Data type for dimension 4.
- 
          K5- Data type for dimension 5.
- Parameters:
- 
          builder- The variable builder.
- 
          addKey- Function that is called for each variable.
- 
          makeResult- Function that is called to make the result.
- Since:
- 43.00
 
 -  buildColumnspublic <K1,K2,K3,K4,K5> HashMap5<K1,K2,K3,K4,K5,java.lang.Integer> buildColumns(VariableBuilder.Map5Builder<K1,K2,K3,K4,K5> builder) Create a column map from a builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- 
          K4- Data type for dimension 4.
- 
          K5- Data type for dimension 5.
- Parameters:
- 
          builder- The builder to create columns.
- Returns:
- Indices of created columns.
- Since:
- 43.00
 
 -  buildColumnspublic <I,K1,K2,K3,K4,K5> I buildColumns(VariableBuilder.Map5Builder<K1,K2,K3,K4,K5> builder, java.util.function.Supplier<I> makeResult, Action7<I,K1,K2,K3,K4,K5,java.lang.Integer> addResult) Create a column map from a builder.- Type Parameters:
- 
          I- Result type.
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- 
          K4- Data type for dimension 4.
- 
          K5- Data type for dimension 5.
- Parameters:
- 
          builder- The builder to create columns.
- 
          makeResult- Function to create an (empty) result.
- 
          addResult- Function to add an element to the result.
- Returns:
- 
          Result as given by 
          makeResult.
- Since:
- 43.00
 
 -  addColumnspublic VariableBuilder.ColumnArray5Builder addColumns(int dim1, int dim2, int dim3, int dim4, int dim5) Create an 5 dimensional array of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoArray()function.// Create a multi-dimensional array of binary columns int [] [] [] [] [] x = prob.addColumns(dim1 ,dim2 ,dim3 ,dim4 ,dim5) .withType(com.dashoptimization.objects.ColumnType.Binary) .toArray();SeeVariableBuilder.ColumnArray5Builderfor details of how to modify the specification in the builder.- Parameters:
- 
          dim1- Dimension 1.
- 
          dim2- Dimension 2.
- 
          dim3- Dimension 3.
- 
          dim4- Dimension 4.
- 
          dim5- Dimension 5.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  addColumnspublic <K1,K2,K3,K4,K5> VariableBuilder.ColumnMap5Builder<K1,K2,K3,K4,K5> addColumns(java.util.Collection<K1> coll1, java.util.Collection<K2> coll2, java.util.Collection<K3> coll3, java.util.Collection<K4> coll4, java.util.Collection<K5> coll5) Create an 5 dimensional map of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoMap()function.// Create a multi-dimensional array of binary columns com.dashoptimization.maps.HashMap5<K1 ,K2 ,K3 ,K4 ,K5,Integer> x = prob.addColumns(coll1 ,coll2 ,coll3 ,coll4 ,coll5) .withType(com.dashoptimization.objects.ColumnType.Binary) .toMap();SeeVariableBuilder.ColumnMap5Builderfor details of how to modify the specification in the builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- 
          K4- Data type for dimension 4.
- 
          K5- Data type for dimension 5.
- Parameters:
- 
          coll1- Data for dimension 1.
- 
          coll2- Data for dimension 2.
- 
          coll3- Data for dimension 3.
- 
          coll4- Data for dimension 4.
- 
          coll5- Data for dimension 5.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  addColumnspublic <K1,K2,K3,K4,K5> VariableBuilder.ColumnMap5Builder<K1,K2,K3,K4,K5> addColumns(K1[] arr1, K2[] arr2, K3[] arr3, K4[] arr4, K5[] arr5) Create an 5 dimensional map of columns. This function returns a builder that generates columns according to a specification. The specification can be modified. In order to actually create the columns and get their indices, you have to call the returned builder'stoMap()function.// Create a multi-dimensional array of binary columns com.dashoptimization.maps.HashMap5<K1 ,K2 ,K3 ,K4 ,K5,Integer> x = prob.addColumns(coll1 ,coll2 ,coll3 ,coll4 ,coll5) .withType(com.dashoptimization.objects.ColumnType.Binary) .toMap();SeeVariableBuilder.ColumnMap5Builderfor details of how to modify the specification in the builder.- Type Parameters:
- 
          K1- Data type for dimension 1.
- 
          K2- Data type for dimension 2.
- 
          K3- Data type for dimension 3.
- 
          K4- Data type for dimension 4.
- 
          K5- Data type for dimension 5.
- Parameters:
- 
          arr1- Data for the builder.
- 
          arr2- Data for the builder.
- 
          arr3- Data for the builder.
- 
          arr4- Data for the builder.
- 
          arr5- Data for the builder.
- Returns:
- A builder that will create the columns.
- Since:
- 43.00
 
 -  copyProbpublic void copyProb(XPRSprob src) throws XPRSprobException Copy another problem over this one- Throws:
- 
          XPRSprobException
 
 -  setProbnamepublic void setProbname(java.lang.String probname) throws XPRSprobExceptionSets the current default problem name. This command is rarely used.This function is used in the following examples: - AddMipSol
 - Parameters:
- 
          probname- A string of up toMAXPROBNAMELENGTHcharacters containing the problem name.
- Throws:
- 
          XPRSprobException
 
 -  setLogFilepublic void setLogFile(java.lang.String filename) throws XPRSprobExceptionThis directs all Optimizer output to a log file.This function is used in the following examples: - FixBV
- GlobalObjectiveParametrics
- GlobalRHSParametrics
- Knapsack
- LoadLP
- MostViolated
- RoundInt
- Tableau
- Trimloss
 - Parameters:
- 
          filename- A string of up toMAXPROBNAMELENGTHcharacters containing the file name to which all logging output should be written. If set tonull, redirection of the output will stop and all screen output will be turned back on (except for library users where screen output is always turned off).
- Throws:
- 
          XPRSprobException
 
 -  setDefaultControlpublic void setDefaultControl(int control) throws XPRSprobExceptionSets a single control to its default value.- Parameters:
- 
          control- Integer, double or string control parameter whose default value is to be set.
- Throws:
- 
          XPRSprobException
 
 -  setDefaultspublic void setDefaults() throws XPRSprobExceptionSets all controls to their default values. Must be called before the problem is read or loaded byreadProb,loadMIP,loadLP,loadMIQP,loadQP.This function is used in the following examples: - AddMipSol
 - Throws:
- 
          XPRSprobException
 
 -  readProbpublic void readProb(java.lang.String filename, java.lang.String flags) throws XPRSprobExceptionReads an (X)MPS or LP format matrix from file.This function is used in the following examples: - AddMipSol
- Callback
- FixBV
- GlobalObjectiveParametrics
- GlobalRHSParametrics
- IISExample
- Knapsack
- MipSolEnum
- MipSolPool
- MostViolated
- Repair
- RoundInt
- SaveSol
- Tableau
- Trimloss
 - Parameters:
- 
          filename- The path and file name from which the problem is to be read. Limited toMAXPROBNAMELENGTHcharacters. If omitted (console users only), the default problem_name is used with various extensions - see below.
- 
          flags- Flags to be passed:- l: only- filename.lpis searched for;
- v: use the provided filename verbatim, without appending the- .mps,- .mator- .lpextension;
- z: read a compressed input file.
 
- Throws:
- 
          XPRSprobException
 
 -  readProbpublic void readProb(java.lang.String filename) throws XPRSprobExceptionConvenience wrapper forreadProb(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          readProb(String, String)
 
 -  loadLppublic void loadLp(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub) throws XPRSprobExceptionEnables the user to pass a matrix directly to the Optimizer, rather than reading the matrix from a file.This function is used in the following examples: - LoadLP
 - Parameters:
- 
          probname- A string of up toMAXPROBNAMELENGTHcharacters containing a names for the problem.
- 
          ncols- Number of structural columns in the matrix.
- 
          nrows- Number of rows in the matrix (not including the objective). Objective coefficients must be supplied in theobjcoefarray, and the objective function should not be included in any of the other arrays.
- 
          rowtype- Character array of lengthnrowscontaining the row types:- L: indicates a <= constraint;
- E: indicates an = constraint;
- G: indicates a >= constraint;
- R: indicates a range constraint;
- N: indicates a nonbinding constraint.
 
- 
          rhs- Double array of lengthnrowscontaining the right hand side coefficients of the rows. The right hand side value for a range row gives the upper bound on the row.
- 
          rng- Double array of lengthnrowscontaining the range values for range rows. Values for all other rows will be ignored. May benullif not required. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
- 
          objcoef- Double array of lengthncolscontaining the objective function coefficients. This can benullto set all objective coefficients to 0 (zero).
- 
          start- Integer array containing the offsets in therowindandrowcoefarrays of the start of the elements for each column. This array is of lengthncolsor, ifcollenisnull, lengthncols+1. Ifcollenisnull, the extra entry ofstart,start[ncols], contains the position in therowindandrowcoefarrays at which an extra column would start, if it were present. In C, this value is also the length of therowindandrowcoefarrays.
- 
          collen- Integer array of lengthncolscontaining the number of nonzero elements in each column. May benullif not required. This array is not required if the non-zero coefficients in therowindandrowcoefarrays are continuous, and thestartarray hasncols+1entries as described above.
- 
          rowind- Integer array containing the row indices for the nonzero elements in each column. If the indices are input contiguously, with the columns in ascending order, the length of therowindisstart[ncols-1]+collen[ncols-1]or, ifcollenisnull,start[ncols].
- 
          rowcoef- Double array containing the nonzero element values; length as forrowind.
- 
          lb- Double array of lengthncolscontaining the lower bounds on the columns. UseXPRS_MINUSINFINITYto represent a lower bound of minus infinity. If this isnullthen all lower bounds are 0 (zero).
- 
          ub- Double array of lengthncolscontaining the upper bounds on the columns. UseXPRS_PLUSINFINITYto represent an upper bound of plus infinity. It this isnullthen all upper bounds are infinite.
- Throws:
- 
          XPRSprobException
 
 -  loadLppublic void loadLp(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub) throws XPRSprobExceptionEnables the user to pass a matrix directly to the Optimizer, rather than reading the matrix from a file.This function is used in the following examples: - LoadLP
 - Parameters:
- 
          probname- A string of up toMAXPROBNAMELENGTHcharacters containing a names for the problem.
- 
          ncols- Number of structural columns in the matrix.
- 
          nrows- Number of rows in the matrix (not including the objective). Objective coefficients must be supplied in theobjcoefarray, and the objective function should not be included in any of the other arrays.
- 
          rowtype- Character array of lengthnrowscontaining the row types:- L: indicates a <= constraint;
- E: indicates an = constraint;
- G: indicates a >= constraint;
- R: indicates a range constraint;
- N: indicates a nonbinding constraint.
 
- 
          rhs- Double array of lengthnrowscontaining the right hand side coefficients of the rows. The right hand side value for a range row gives the upper bound on the row.
- 
          rng- Double array of lengthnrowscontaining the range values for range rows. Values for all other rows will be ignored. May benullif not required. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
- 
          objcoef- Double array of lengthncolscontaining the objective function coefficients. This can benullto set all objective coefficients to 0 (zero).
- 
          start- Integer array containing the offsets in therowindandrowcoefarrays of the start of the elements for each column. This array is of lengthncolsor, ifcollenisnull, lengthncols+1. Ifcollenisnull, the extra entry ofstart,start[ncols], contains the position in therowindandrowcoefarrays at which an extra column would start, if it were present. In C, this value is also the length of therowindandrowcoefarrays.
- 
          collen- Integer array of lengthncolscontaining the number of nonzero elements in each column. May benullif not required. This array is not required if the non-zero coefficients in therowindandrowcoefarrays are continuous, and thestartarray hasncols+1entries as described above.
- 
          rowind- Integer array containing the row indices for the nonzero elements in each column. If the indices are input contiguously, with the columns in ascending order, the length of therowindisstart[ncols-1]+collen[ncols-1]or, ifcollenisnull,start[ncols].
- 
          rowcoef- Double array containing the nonzero element values; length as forrowind.
- 
          lb- Double array of lengthncolscontaining the lower bounds on the columns. UseXPRS_MINUSINFINITYto represent a lower bound of minus infinity. If this isnullthen all lower bounds are 0 (zero).
- 
          ub- Double array of lengthncolscontaining the upper bounds on the columns. UseXPRS_PLUSINFINITYto represent an upper bound of plus infinity. It this isnullthen all upper bounds are infinite.
- Throws:
- 
          XPRSprobException
 
 -  loadQPpublic void loadQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef) throws XPRSprobExceptionUsed to load a quadratic problem into the Optimizer data structure. Such a problem may have quadratic terms in its objective function, although not in its constraints.- Parameters:
- 
          probname- A string of up toMAXPROBNAMELENGTHcharacters containing a names for the problem.
- 
          ncols- Number of structural columns in the matrix.
- 
          nrows- Number of rows in the matrix (not including the objective row). Objective coefficients must be supplied in theobjcoefarray, and the objective function should not be included in any of the other arrays.
- 
          rowtype- Character array of lengthnrowscontaining the row types:- L: indicates a <= constraint;
- E: indicates an = constraint;
- G: indicates a >= constraint;
- R: indicates a range constraint;
- N: indicates a nonbinding constraint.
 
- 
          rhs- Double array of lengthnrowscontaining the right hand side coefficients of the rows. The right hand side value for a range row gives the upper bound on the row.
- 
          rng- Double array of lengthnrowscontaining the range values for range rows. Values for all other rows will be ignored. May benullif there are no ranged constraints. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
- 
          objcoef- Double array of lengthncolscontaining the objective function coefficients. This can benullto set all objective coefficients to 0 (zero).
- 
          start- Integer array containing the offsets in therowindandrowcoefarrays of the start of the elements for each column. This array is of lengthncolsor, ifcollenisnull, lengthncols+1. Ifcollenisnullthe extra entry ofstart,start[ncols], contains the position in therowindandrowcoefarrays at which an extra column would start, if it were present. In C, this value is also the length of therowindandrowcoefarrays.
- 
          collen- Integer array of lengthncolscontaining the number of nonzero elements in each column. May benullif all elements are contiguous andstart[ncols]contains the offset where the elements for columnncols+1would start. This array is not required if the non-zero coefficients in therowindandrowcoefarrays are continuous, and thestartarray hasncols+1entries as described above. It may benullif not required.
- 
          rowind- Integer array containing the row indices for the nonzero elements in each column. If the indices are input contiguously, with the columns in ascending order, the length of therowindisstart[ncols-1]+collen[ncols-1]or, ifcollenisnull,start[ncols].
- 
          rowcoef- Double array containing the nonzero element values; length as forrowind.
- 
          lb- Double array of lengthncolscontaining the lower bounds on the columns. UseXPRS_MINUSINFINITYto represent a lower bound of minus infinity. If this isnullthen all lower bounds are 0 (zero).
- 
          ub- Double array of lengthncolscontaining the upper bounds on the columns. UseXPRS_PLUSINFINITYto represent an upper bound of plus infinity. It this isnullthen all upper bounds are infinite.
- 
          nobjqcoefs- Number of quadratic terms.
- 
          objqcol1- Integer array of sizenobjqcoefscontaining the column index of the first variable in each quadratic term.
- 
          objqcol2- Integer array of sizenobjqcoefscontaining the column index of the second variable in each quadratic term.
- 
          objqcoef- Double array of sizenobjqcoefscontaining the quadratic coefficients.
- Throws:
- 
          XPRSprobException
 
 -  loadQPpublic void loadQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, long nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef) throws XPRSprobExceptionUsed to load a quadratic problem into the Optimizer data structure. Such a problem may have quadratic terms in its objective function, although not in its constraints.- Parameters:
- 
          probname- A string of up toMAXPROBNAMELENGTHcharacters containing a names for the problem.
- 
          ncols- Number of structural columns in the matrix.
- 
          nrows- Number of rows in the matrix (not including the objective row). Objective coefficients must be supplied in theobjcoefarray, and the objective function should not be included in any of the other arrays.
- 
          rowtype- Character array of lengthnrowscontaining the row types:- L: indicates a <= constraint;
- E: indicates an = constraint;
- G: indicates a >= constraint;
- R: indicates a range constraint;
- N: indicates a nonbinding constraint.
 
- 
          rhs- Double array of lengthnrowscontaining the right hand side coefficients of the rows. The right hand side value for a range row gives the upper bound on the row.
- 
          rng- Double array of lengthnrowscontaining the range values for range rows. Values for all other rows will be ignored. May benullif there are no ranged constraints. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
- 
          objcoef- Double array of lengthncolscontaining the objective function coefficients. This can benullto set all objective coefficients to 0 (zero).
- 
          start- Integer array containing the offsets in therowindandrowcoefarrays of the start of the elements for each column. This array is of lengthncolsor, ifcollenisnull, lengthncols+1. Ifcollenisnullthe extra entry ofstart,start[ncols], contains the position in therowindandrowcoefarrays at which an extra column would start, if it were present. In C, this value is also the length of therowindandrowcoefarrays.
- 
          collen- Integer array of lengthncolscontaining the number of nonzero elements in each column. May benullif all elements are contiguous andstart[ncols]contains the offset where the elements for columnncols+1would start. This array is not required if the non-zero coefficients in therowindandrowcoefarrays are continuous, and thestartarray hasncols+1entries as described above. It may benullif not required.
- 
          rowind- Integer array containing the row indices for the nonzero elements in each column. If the indices are input contiguously, with the columns in ascending order, the length of therowindisstart[ncols-1]+collen[ncols-1]or, ifcollenisnull,start[ncols].
- 
          rowcoef- Double array containing the nonzero element values; length as forrowind.
- 
          lb- Double array of lengthncolscontaining the lower bounds on the columns. UseXPRS_MINUSINFINITYto represent a lower bound of minus infinity. If this isnullthen all lower bounds are 0 (zero).
- 
          ub- Double array of lengthncolscontaining the upper bounds on the columns. UseXPRS_PLUSINFINITYto represent an upper bound of plus infinity. It this isnullthen all upper bounds are infinite.
- 
          nobjqcoefs- Number of quadratic terms.
- 
          objqcol1- Integer array of sizenobjqcoefscontaining the column index of the first variable in each quadratic term.
- 
          objqcol2- Integer array of sizenobjqcoefscontaining the column index of the second variable in each quadratic term.
- 
          objqcoef- Double array of sizenobjqcoefscontaining the quadratic coefficients.
- Throws:
- 
          XPRSprobException
 
 -  loadMIQPpublic void loadMIQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, int[] setstart, int[] setind, double[] refval) throws XPRSprobExceptionUsed to load a MIQP problem, hence a MIP with quadratic objective coefficients, into the Optimizer data structures. Integer, binary, partial integer, semi-continuous and semi-continuous integer variables can be defined, together with sets of type 1 and 2. The reference row values for the set members are passed as an array rather than specifying a reference row.- Parameters:
- 
          probname- A string of up toMAXPROBNAMELENGTHcharacters containing a name for the problem.
- 
          ncols- Number of structural columns in the matrix.
- 
          nrows- Number of rows in the matrix (not including the objective). Objective coefficients must be supplied in theobjcoefarray, and the objective function should not be included in any of the other arrays.
- 
          rowtype- Character array of lengthnrowscontaining the row type:- L: indicates a <= constraint;
- E: indicates an = constraint;
- G: indicates a >= constraint;
- R: indicates a range constraint;
- N: indicates a nonbinding constraint.
 
- 
          rhs- Double array of lengthnrowscontaining the right hand side coefficients. The right hand side value for a range row gives the upper bound on the row.
- 
          rng- Double array of lengthnrowscontaining the range values for range rows. The values in the range array will only be read forRtype rows. The entries for other type rows will be ignored. May benullif not required. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
- 
          objcoef- Double array of lengthncolscontaining the objective function coefficients. This can benullto set all objective coefficients to 0 (zero). This can benullto set all objective coefficients to 0 (zero).
- 
          start- Integer array containing the offsets in therowindandrowcoefarrays of the start of the elements for each column. This array is of lengthncolsor, ifcollenisnull, lengthncols+1.
- 
          collen- Integer array of lengthncolscontaining the number of nonzero elements in each column. May benullif not required. This array is not required if the non-zero coefficients in therowindandrowcoefarrays are continuous, and thestartarray hasncols+1entries as described above. It may benullif not required.
- 
          rowind- Integer arrays containing the row indices for the nonzero elements in each column. If the indices are input contiguously, with the columns in ascending order, then the length ofrowindisstart[ncols-1]+collen[ncols-1]or, ifcollenisnull,start[ncols].
- 
          rowcoef- Double array containing the nonzero element values length as forrowind.
- 
          lb- Double array of lengthncolscontaining the lower bounds on the columns. UseXPRS_MINUSINFINITYto represent a lower bound of minus infinity. If this isnullthen all lower bounds are 0 (zero).
- 
          ub- Double array of lengthncolscontaining the upper bounds on the columns. UseXPRS_PLUSINFINITYto represent an upper bound of plus infinity. It this isnullthen all upper bounds are infinite.
- 
          nobjqcoefs- Number of quadratic terms.
- 
          objqcol1- Integer array of sizenobjqcoefscontaining the column index of the first variable in each quadratic term.
- 
          objqcol2- Integer array of sizenobjqcoefscontaining the column index of the second variable in each quadratic term.
- 
          objqcoef- Double array of sizenobjqcoefscontaining the quadratic coefficients.
- 
          nentities- Number of binary, integer, semi-continuous, semi-continuous integer and partial integer entities.
- 
          nsets- Number of SOS1 and SOS2 sets.
- 
          coltype- Character array of lengthnentitiescontaining the entity types:- B: binary variables;
- I: integer variables;
- P: partial integer variables;
- S: semi-continuous variables;
- R: semi-continuous integers.
 
- 
          entind- Integer array of lengthnentitiescontaining the column indices of the MIP entities.
- 
          limit- Double array of lengthnentitiescontaining the integer limits for the partial integer variables and lower bounds for semi-continuous and semi-continuous integer variables (any entries in the positions corresponding to binary and integer variables will be ignored). May benullif not required.
- 
          settype- Character array of lengthnsetscontaining:- 1: SOS1 type sets;
- 2: SOS2 type sets.
 nullif not required.
- 
          setstart- Integer array containing the offsets in thesetindandrefvalarrays indicating the start of the sets. This array is of lengthnsets+1, the last member containing the offset where setnsets+1would start. May benullif not required.
- 
          setind- Integer array of lengthsetstart[nsets]-1containing the columns in each set. May benullif not required.
- 
          refval- Double array of lengthsetstart[nsets]-1containing the reference row entries for each member of the sets. These define the order for SOS2 constraints and may be used in branching for both types. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  loadMIQPpublic void loadMIQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, long nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, long[] setstart, int[] setind, double[] refval) throws XPRSprobExceptionUsed to load a MIQP problem, hence a MIP with quadratic objective coefficients, into the Optimizer data structures. Integer, binary, partial integer, semi-continuous and semi-continuous integer variables can be defined, together with sets of type 1 and 2. The reference row values for the set members are passed as an array rather than specifying a reference row.- Parameters:
- 
          probname- A string of up toMAXPROBNAMELENGTHcharacters containing a name for the problem.
- 
          ncols- Number of structural columns in the matrix.
- 
          nrows- Number of rows in the matrix (not including the objective). Objective coefficients must be supplied in theobjcoefarray, and the objective function should not be included in any of the other arrays.
- 
          rowtype- Character array of lengthnrowscontaining the row type:- L: indicates a <= constraint;
- E: indicates an = constraint;
- G: indicates a >= constraint;
- R: indicates a range constraint;
- N: indicates a nonbinding constraint.
 
- 
          rhs- Double array of lengthnrowscontaining the right hand side coefficients. The right hand side value for a range row gives the upper bound on the row.
- 
          rng- Double array of lengthnrowscontaining the range values for range rows. The values in the range array will only be read forRtype rows. The entries for other type rows will be ignored. May benullif not required. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
- 
          objcoef- Double array of lengthncolscontaining the objective function coefficients. This can benullto set all objective coefficients to 0 (zero). This can benullto set all objective coefficients to 0 (zero).
- 
          start- Integer array containing the offsets in therowindandrowcoefarrays of the start of the elements for each column. This array is of lengthncolsor, ifcollenisnull, lengthncols+1.
- 
          collen- Integer array of lengthncolscontaining the number of nonzero elements in each column. May benullif not required. This array is not required if the non-zero coefficients in therowindandrowcoefarrays are continuous, and thestartarray hasncols+1entries as described above. It may benullif not required.
- 
          rowind- Integer arrays containing the row indices for the nonzero elements in each column. If the indices are input contiguously, with the columns in ascending order, then the length ofrowindisstart[ncols-1]+collen[ncols-1]or, ifcollenisnull,start[ncols].
- 
          rowcoef- Double array containing the nonzero element values length as forrowind.
- 
          lb- Double array of lengthncolscontaining the lower bounds on the columns. UseXPRS_MINUSINFINITYto represent a lower bound of minus infinity. If this isnullthen all lower bounds are 0 (zero).
- 
          ub- Double array of lengthncolscontaining the upper bounds on the columns. UseXPRS_PLUSINFINITYto represent an upper bound of plus infinity. It this isnullthen all upper bounds are infinite.
- 
          nobjqcoefs- Number of quadratic terms.
- 
          objqcol1- Integer array of sizenobjqcoefscontaining the column index of the first variable in each quadratic term.
- 
          objqcol2- Integer array of sizenobjqcoefscontaining the column index of the second variable in each quadratic term.
- 
          objqcoef- Double array of sizenobjqcoefscontaining the quadratic coefficients.
- 
          nentities- Number of binary, integer, semi-continuous, semi-continuous integer and partial integer entities.
- 
          nsets- Number of SOS1 and SOS2 sets.
- 
          coltype- Character array of lengthnentitiescontaining the entity types:- B: binary variables;
- I: integer variables;
- P: partial integer variables;
- S: semi-continuous variables;
- R: semi-continuous integers.
 
- 
          entind- Integer array of lengthnentitiescontaining the column indices of the MIP entities.
- 
          limit- Double array of lengthnentitiescontaining the integer limits for the partial integer variables and lower bounds for semi-continuous and semi-continuous integer variables (any entries in the positions corresponding to binary and integer variables will be ignored). May benullif not required.
- 
          settype- Character array of lengthnsetscontaining:- 1: SOS1 type sets;
- 2: SOS2 type sets.
 nullif not required.
- 
          setstart- Integer array containing the offsets in thesetindandrefvalarrays indicating the start of the sets. This array is of lengthnsets+1, the last member containing the offset where setnsets+1would start. May benullif not required.
- 
          setind- Integer array of lengthsetstart[nsets]-1containing the columns in each set. May benullif not required.
- 
          refval- Double array of lengthsetstart[nsets]-1containing the reference row entries for each member of the sets. These define the order for SOS2 constraints and may be used in branching for both types. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  fixMIPEntitiespublic void fixMIPEntities(int options) throws XPRSprobExceptionFixes all the MIP entities to the values of the last found MIP solution. This is useful for finding the reduced costs for the continuous variables after the integer variables have been fixed to their optimal values.- Parameters:
- 
          options- Options how to fix the MIP entities.- 0: If all MIP entities should be rounded to the nearest discrete value in the solution before being fixed.
- 1: If piecewise linear and general constraints should be kept in the problem with only the non-convex decisions (i.e. which part of a non-convex piecewise linear function or which variable attains a maximum) fixed. Otherwise all variables appearing in piecewise linear or general constraints will be fixed.
 
- Throws:
- 
          XPRSprobException
 
 -  loadModelCutspublic void loadModelCuts(int nrows, int[] rowind) throws XPRSprobExceptionSpecifies that a set of rows in the matrix will be treated as model cuts.- Parameters:
- 
          nrows- The number of model cuts.
- 
          rowind- An array of row indices to be treated as cuts.
- Throws:
- 
          XPRSprobException
 
 -  loadDelayedRowspublic void loadDelayedRows(int nrows, int[] rowind) throws XPRSprobExceptionSpecifies that a set of rows in the matrix will be treated as delayed rows during a tree search. These are rows that must be satisfied for any integer solution, but will not be loaded into the active set of constraints until required.- Parameters:
- 
          nrows- The number of delayed rows.
- 
          rowind- An array of row indices to treat as delayed rows.
- Throws:
- 
          XPRSprobException
 
 -  loadDirspublic void loadDirs(int ndirs, int[] colind, int[] priority, byte[] dir, double[] uppseudo, double[] downpseudo) throws XPRSprobExceptionLoads directives into the matrix.This function is used in the following examples: - Trimloss
 - Parameters:
- 
          ndirs- Number of directives.
- 
          colind- Integer array of lengthndirscontaining the column numbers. A negative value indicates a set number (the first set being-1, the second-2, and so on).
- 
          priority- Integer array of lengthndirscontaining the priorities for the columns or sets. Priorities must be between 0 and 1000, where columns/sets with smallest priority will be branched on first. May benullif not required.
- 
          dir- Character array of lengthndirsspecifying the branching direction for each column or set:- U: the entity is to be forced up;
- D: the entity is to be forced down;
- N: not specified.
 nullif not required.
- 
          uppseudo- Double array of lengthndirscontaining the up pseudo costs for the columns or sets. May benullif not required.
- 
          downpseudo- Double array of lengthndirscontaining the down pseudo costs for the columns or sets. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  loadBranchDirspublic void loadBranchDirs(int ncols, int[] colind, int[] dir) throws XPRSprobExceptionLoads directives into the current problem to specify which MIP entities the Optimizer should continue to branch on when a node solution is integer feasible.- Parameters:
- 
          ncols- Number of directives.
- 
          colind- Integer array of lengthncolscontaining the column numbers. A negative value indicates a set number (the first set being -1, the second -2, and so on).
- 
          dir- Integer array of lengthncolscontaining either 0 or 1 for the entities given incolind. Entities for which dir is set to 1 will be branched on until fixed before an integer feasible solution is returned. Ifdiris null, the branching directive will be set for all entities incolind.
- Throws:
- 
          XPRSprobException
 
 -  loadBranchDirspublic void loadBranchDirs(int x, int value) throws XPRSprobExceptionConvenience wrapper forloadBranchDirs(int, int[], int[]). This function only modifies a single element.- Parameters:
- 
          x- Index of element to modify.
- 
          value- New value forx.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          loadBranchDirs(int, int[], int[])
 
 -  loadPresolveDirspublic void loadPresolveDirs(int ndirs, int[] colind, int[] priority, byte[] dir, double[] uppseudo, double[] downpseudo) throws XPRSprobExceptionLoads directives into the presolved matrix.- Parameters:
- 
          ndirs- Number of directives.
- 
          colind- Integer array of lengthndirscontaining the column numbers. A negative value indicates a set number (-1being the first set,-2the second, and so on).
- 
          priority- Integer array of lengthndirscontaining the priorities for the columns or sets. May benullif not required.
- 
          dir- Character array of lengthndirsspecifying the branching direction for each column or set:- U: the entity is to be forced up;
- D: the entity is to be forced down;
- N: not specified.
 nullif not required.
- 
          uppseudo- Double array of lengthndirscontaining the up pseudo costs for the columns or sets. May benullif not required.
- 
          downpseudo- Double array of lengthndirscontaining the down pseudo costs for the columns or sets. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  loadMIPpublic void loadMIP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, int[] setstart, int[] setind, double[] refval) throws XPRSprobExceptionUsed to load a MIP problem into the Optimizer data structures. Integer, binary, partial integer, semi-continuous and semi-continuous integer variables can be defined, together with sets of type 1 and 2. The reference row values for the set members are passed as an array rather than specifying a reference row.- Parameters:
- 
          probname- A string of up toMAXPROBNAMELENGTHcharacters containing a name for the problem.
- 
          ncols- Number of structural columns in the matrix.
- 
          nrows- Number of rows in the matrix not (including the objective row). Objective coefficients must be supplied in theobjcoefarray, and the objective function should not be included in any of the other arrays.
- 
          rowtype- Character array of lengthnrowscontaining the row types:- L: indicates a <= constraint;
- E: indicates an = constraint;
- G: indicates a >= constraint;
- R: indicates a range constraint;
- N: indicates a nonbinding constraint.
 
- 
          rhs- Double array of lengthnrowscontaining the right hand side coefficients. The right hand side value for a range row gives the upper bound on the row.
- 
          rng- Double array of lengthnrowscontaining the range values for range rows. Values for all other rows will be ignored. May benullif not required. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
- 
          objcoef- Double array of lengthncolscontaining the objective function coefficients. This can benullto set all objective coefficients to 0 (zero).
- 
          start- Integer array containing the offsets in therowindandrowcoefarrays of the start of the elements for each column. This array is of lengthncolsor, ifcollenisnull, lengthncols+1. Ifcollenisnull, the extra entry ofstart,start[ncols], contains the position in therowindandrowcoefarrays at which an extra column would start, if it were present. In C, this value is also the length of therowindandrowcoefarrays.
- 
          collen- Integer array of lengthncolscontaining the number of nonzero elements in each column. May benullif not required. This array is not required if the non-zero coefficients in therowindandrowcoefarrays are continuous, and thestartarray hasncols+1entries as described above. It may benullif not required.
- 
          rowind- Integer arrays containing the row indices for the nonzero elements in each column. If the indices are input contiguously, with the columns in ascending order, then the length ofrowindisstart[ncols-1]+collen[ncols-1]or, ifcollenisnull,start[ncols].
- 
          rowcoef- Double array containing the nonzero element values length as forrowind.
- 
          lb- Double array of lengthncolscontaining the lower bounds on the columns. UseXPRS_MINUSINFINITYto represent a lower bound of minus infinity. If this isnullthen all lower bounds are 0 (zero).
- 
          ub- Double array of lengthncolscontaining the upper bounds on the columns. UseXPRS_PLUSINFINITYto represent an upper bound of plus infinity. It this isnullthen all upper bounds are infinite.
- 
          nentities- Number of binary, integer, semi-continuous, semi-continuous integer and partial integer entities.
- 
          nsets- Number of SOS1 and SOS2 sets.
- 
          coltype- Character array of lengthnentitiescontaining the entity types:- B: binary variables;
- I: integer variables;
- P: partial integer variables;
- S: semi-continuous variables;
- R: semi-continuous integer variables.
 
- 
          entind- Integer array of lengthnentitiescontaining the column indices of the MIP entities.
- 
          limit- Double array of lengthnentitiescontaining the integer limits for the partial integer variables and lower bounds for semi-continuous and semi-continuous integer variables (any entries in the positions corresponding to binary and integer variables will be ignored). May benullif not required.
- 
          settype- Character array of lengthnsetscontaining the set types:- 1: SOS1 type sets;
- 2: SOS2 type sets.
 nullif not required.
- 
          setstart- Integer array containing the offsets in thesetindandrefvalarrays indicating the start of the sets. This array is of lengthnsets+1, the last member containing the offset where setnsets+1would start. May benullif not required.
- 
          setind- Integer array of lengthsetstart[nsets]-1containing the columns in each set. May benullif not required.
- 
          refval- Double array of lengthsetstart[nsets]-1containing the reference row entries for each member of the sets. These define the order for SOS2 constraints and may be used in branching for both types. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  loadMIPpublic void loadMIP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, long[] setstart, int[] setind, double[] refval) throws XPRSprobExceptionUsed to load a MIP problem into the Optimizer data structures. Integer, binary, partial integer, semi-continuous and semi-continuous integer variables can be defined, together with sets of type 1 and 2. The reference row values for the set members are passed as an array rather than specifying a reference row.- Parameters:
- 
          probname- A string of up toMAXPROBNAMELENGTHcharacters containing a name for the problem.
- 
          ncols- Number of structural columns in the matrix.
- 
          nrows- Number of rows in the matrix not (including the objective row). Objective coefficients must be supplied in theobjcoefarray, and the objective function should not be included in any of the other arrays.
- 
          rowtype- Character array of lengthnrowscontaining the row types:- L: indicates a <= constraint;
- E: indicates an = constraint;
- G: indicates a >= constraint;
- R: indicates a range constraint;
- N: indicates a nonbinding constraint.
 
- 
          rhs- Double array of lengthnrowscontaining the right hand side coefficients. The right hand side value for a range row gives the upper bound on the row.
- 
          rng- Double array of lengthnrowscontaining the range values for range rows. Values for all other rows will be ignored. May benullif not required. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
- 
          objcoef- Double array of lengthncolscontaining the objective function coefficients. This can benullto set all objective coefficients to 0 (zero).
- 
          start- Integer array containing the offsets in therowindandrowcoefarrays of the start of the elements for each column. This array is of lengthncolsor, ifcollenisnull, lengthncols+1. Ifcollenisnull, the extra entry ofstart,start[ncols], contains the position in therowindandrowcoefarrays at which an extra column would start, if it were present. In C, this value is also the length of therowindandrowcoefarrays.
- 
          collen- Integer array of lengthncolscontaining the number of nonzero elements in each column. May benullif not required. This array is not required if the non-zero coefficients in therowindandrowcoefarrays are continuous, and thestartarray hasncols+1entries as described above. It may benullif not required.
- 
          rowind- Integer arrays containing the row indices for the nonzero elements in each column. If the indices are input contiguously, with the columns in ascending order, then the length ofrowindisstart[ncols-1]+collen[ncols-1]or, ifcollenisnull,start[ncols].
- 
          rowcoef- Double array containing the nonzero element values length as forrowind.
- 
          lb- Double array of lengthncolscontaining the lower bounds on the columns. UseXPRS_MINUSINFINITYto represent a lower bound of minus infinity. If this isnullthen all lower bounds are 0 (zero).
- 
          ub- Double array of lengthncolscontaining the upper bounds on the columns. UseXPRS_PLUSINFINITYto represent an upper bound of plus infinity. It this isnullthen all upper bounds are infinite.
- 
          nentities- Number of binary, integer, semi-continuous, semi-continuous integer and partial integer entities.
- 
          nsets- Number of SOS1 and SOS2 sets.
- 
          coltype- Character array of lengthnentitiescontaining the entity types:- B: binary variables;
- I: integer variables;
- P: partial integer variables;
- S: semi-continuous variables;
- R: semi-continuous integer variables.
 
- 
          entind- Integer array of lengthnentitiescontaining the column indices of the MIP entities.
- 
          limit- Double array of lengthnentitiescontaining the integer limits for the partial integer variables and lower bounds for semi-continuous and semi-continuous integer variables (any entries in the positions corresponding to binary and integer variables will be ignored). May benullif not required.
- 
          settype- Character array of lengthnsetscontaining the set types:- 1: SOS1 type sets;
- 2: SOS2 type sets.
 nullif not required.
- 
          setstart- Integer array containing the offsets in thesetindandrefvalarrays indicating the start of the sets. This array is of lengthnsets+1, the last member containing the offset where setnsets+1would start. May benullif not required.
- 
          setind- Integer array of lengthsetstart[nsets]-1containing the columns in each set. May benullif not required.
- 
          refval- Double array of lengthsetstart[nsets]-1containing the reference row entries for each member of the sets. These define the order for SOS2 constraints and may be used in branching for both types. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  scalepublic void scale(int[] rowscale, int[] colscale) throws XPRSprobExceptionRe-scales the current matrix.- Parameters:
- 
          rowscale- Integer array of sizeROWScontaining the powers of2with which to scale the rows, ornullif not required.
- 
          colscale- Integer array of sizeCOLScontaining the powers of2with which to scale the columns, ornullif not required.
- Throws:
- 
          XPRSprobException
 
 -  readDirspublic void readDirs(java.lang.String filename) throws XPRSprobExceptionReads a directives file to help direct the tree search.- Parameters:
- 
          filename- A string of up toMAXPROBNAMELENGTHcharacters containing the file name from which the directives are to be read. If omitted (ornull), the default problem_name is used with a.dirextension.
- Throws:
- 
          XPRSprobException
 
 -  readDirspublic void readDirs() throws XPRSprobExceptionConvenience wrapper forreadDirs(String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          readDirs(String)
 
 -  writeDirspublic void writeDirs(java.lang.String filename) throws XPRSprobExceptionWrites the tree search directives from the current problem to a directives file.- Parameters:
- 
          filename- A string of up toMAXPROBNAMELENGTHcharacters containing the file name to which the directives should be written. If omitted (or null), the default problem_name is used with a.dirextension.
- Throws:
- 
          XPRSprobException
 
 -  writeDirspublic void writeDirs() throws XPRSprobExceptionConvenience wrapper forwriteDirs(String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          writeDirs(String)
 
 -  unloadProbpublic void unloadProb() throws XPRSprobExceptionUnloads and frees all memory associated with the current problem. It also invalidates the current problem (as opposed to reading in an empty problem).- Throws:
- 
          XPRSprobException
 
 -  setIndicatorspublic void setIndicators(int nrows, int[] rowind, int[] colind, int[] complement) throws XPRSprobExceptionSpecifies that a set of rows in the matrix will be treated as indicator constraints during a tree search. An indicator constraint is made of aconditionand aconstraint. Theconditionis of the type "bin = value", wherebinis a binary variable andvalueis either 0 or 1. Theconstraintis any matrix row (may be linear, quadratic or general nonlinear). During tree search, a row configured as an indicator constraint is enforced only when condition holds, that is only if the indicator variablebinhas the specified value. Note that every row may only get assigned a single indicator variable and term. If a row needs to be activated by multiple different terms, the row needs to be duplicated so that each term can be assigned to a distinct row. If the indicator variable should be changed, the old term needs to be deleted first (by callingdelIndicatorsor by calling this function with a comps argument of 0) before assigning a new one.- Parameters:
- 
          nrows- The number of indicator constraints.
- 
          rowind- Integer array of lengthnrowscontaining the indices of the rows that define the constraint part for the indicator constraints.
- 
          colind- Integer array of lengthnrowscontaining the column indices of the indicator variables.
- 
          complement- Integer array of lengthnrowswith the complement flags:- 0: not an indicator constraint (in this case the corresponding entry in the- colindarray is ignored);
- 1: for indicator constraints with condition "- bin = 1";
- -1: for indicator constraints with condition "- bin = 0".
 
- Throws:
- 
          XPRSprobException
 
 -  addPwlConspublic void addPwlCons(int npwls, int npoints, int[] colind, int[] resultant, int[] start, double[] xval, double[] yval) throws XPRSprobExceptionAdds one or more piecewise linear constraints to the problem. Each piecewise linear constrainty = f(x)consists of an (input) column x, a (different) resultant (output column) y and a piecewise linear function f. The piecewise linear function f is described by at least two breakpoints, which are given as combinations of x- and y-values. Discontinuous piecewise linear functions are supported, in this case both the left and right limit at a given point need to be entered as breakpoints. To differentiate between left and right limit, the breakpoints need to be given as a list with non-decreasing x-values.- Parameters:
- 
          npwls- The number of piecewise linear constraints to add.
- 
          npoints- The total number of breakpoints of all piecewise linear constraints that should be added.
- 
          colind- Integer array of lengthnpwlscontaining the indices of the input variables x of the piecewise linear functions.
- 
          resultant- Integer array of lengthnpwlscontaining the indices of the output variables y of the piecewise linear functions.
- 
          start- Integer array of lengthnpwlscontaining the start index of each piecewise linear constraint in thexvalandyvalarrays.
- 
          xval- Double array of lengthnpointscontaining the x-values of the breakpoints.
- 
          yval- Double array of lengthnpointscontaining the y-values of the breakpoints.
- Throws:
- 
          XPRSprobException
 
 -  addPwlConspublic void addPwlCons(int npwls, long npoints, int[] colind, int[] resultant, long[] start, double[] xval, double[] yval) throws XPRSprobExceptionAdds one or more piecewise linear constraints to the problem. Each piecewise linear constrainty = f(x)consists of an (input) column x, a (different) resultant (output column) y and a piecewise linear function f. The piecewise linear function f is described by at least two breakpoints, which are given as combinations of x- and y-values. Discontinuous piecewise linear functions are supported, in this case both the left and right limit at a given point need to be entered as breakpoints. To differentiate between left and right limit, the breakpoints need to be given as a list with non-decreasing x-values.- Parameters:
- 
          npwls- The number of piecewise linear constraints to add.
- 
          npoints- The total number of breakpoints of all piecewise linear constraints that should be added.
- 
          colind- Integer array of lengthnpwlscontaining the indices of the input variables x of the piecewise linear functions.
- 
          resultant- Integer array of lengthnpwlscontaining the indices of the output variables y of the piecewise linear functions.
- 
          start- Integer array of lengthnpwlscontaining the start index of each piecewise linear constraint in thexvalandyvalarrays.
- 
          xval- Double array of lengthnpointscontaining the x-values of the breakpoints.
- 
          yval- Double array of lengthnpointscontaining the y-values of the breakpoints.
- Throws:
- 
          XPRSprobException
 
 -  getPwlConspublic void getPwlCons(int[] colind, int[] resultant, int[] start, double[] xval, double[] yval, int maxpoints, IntHolder p_npoints, int first, int last) throws XPRSprobExceptionReturns the piecewise linear constraintsy = f(x)in a given range.- Parameters:
- 
          colind- Integer array which will be filled with the indices of the input variablesx. It must be of length at leastlast-first+1. May benullif not required.
- 
          resultant- Integer array which will be filled with the indices of the output variablesy. It must be of length at leastlast-first+1. May benullif not required.
- 
          start- Integer array which will be filled with the start indices of the different constraints in the breakpoint arrays. It must be of length at leastlast-first+2. Thex-values of the breakpoints of piecewise linear constrainti < lastwill be given inxval[start[i]]toxval[start[i+1]]. May benullif not required.
- 
          xval- Double array of lengthmaxpointswhich will be filled with thex-values of the breakpoints. May benullif not required.
- 
          yval- Double array of lengthmaxpointswhich will be filled with they-values of the breakpoints. May benullif not required.
- 
          maxpoints- Maximum number of breakpoints to be retrieved.
- 
          p_npoints- Pointer to return the number of breakpoints in the selected constraints. If the number of breakpoints is greater thanmaxpoints, then onlymaxpointselements will be returned in thexvalandyvalarrays. May benullif not required.
- 
          first- First piecewise linear constraint in the range.
- 
          last- Last piecewise linear constraint in the range.
- Throws:
- 
          XPRSprobException
 
 -  getPwlConspublic void getPwlCons(int[] colind, int[] resultant, long[] start, double[] xval, double[] yval, long maxpoints, LongHolder p_npoints, int first, int last) throws XPRSprobExceptionReturns the piecewise linear constraintsy = f(x)in a given range.- Parameters:
- 
          colind- Integer array which will be filled with the indices of the input variablesx. It must be of length at leastlast-first+1. May benullif not required.
- 
          resultant- Integer array which will be filled with the indices of the output variablesy. It must be of length at leastlast-first+1. May benullif not required.
- 
          start- Integer array which will be filled with the start indices of the different constraints in the breakpoint arrays. It must be of length at leastlast-first+2. Thex-values of the breakpoints of piecewise linear constrainti < lastwill be given inxval[start[i]]toxval[start[i+1]]. May benullif not required.
- 
          xval- Double array of lengthmaxpointswhich will be filled with thex-values of the breakpoints. May benullif not required.
- 
          yval- Double array of lengthmaxpointswhich will be filled with they-values of the breakpoints. May benullif not required.
- 
          maxpoints- Maximum number of breakpoints to be retrieved.
- 
          p_npoints- Pointer to return the number of breakpoints in the selected constraints. If the number of breakpoints is greater thanmaxpoints, then onlymaxpointselements will be returned in thexvalandyvalarrays. May benullif not required.
- 
          first- First piecewise linear constraint in the range.
- 
          last- Last piecewise linear constraint in the range.
- Throws:
- 
          XPRSprobException
 
 -  addGenConspublic void addGenCons(int ncons, int ncols, int nvals, XPRSenumerations.GenConsType[] contype, int[] resultant, int[] colstart, int[] colind, int[] valstart, double[] val) throws XPRSprobExceptionAdds one or more general constraints to the problem. Each general constrainty = f(x1, ..., xn, c1, ..., cn)consists of one or more (input) columns xi, zero or more constant values ci and a resultant (output column) y, different from all xi. General constraints includemaximumandminimum(arbitrary number of input columns of any type and arbitrary number of input values, at least one total),andandor(at least one binary input column, no constant values, binary resultant) andabsolute value(exactly one input column of arbitrary type, no constant values).- Parameters:
- 
          ncons- The number of general constraints to add.
- 
          ncols- The total number of input variables in general constraints that should be added.
- 
          nvals- The total number of constant values in general constraints that should be added.
- 
          contype- Integer array of lengthnconscontaining the types of the general constraints:- XPRS_GENCONS_MAX (0): indicates a- maximumconstraint;
- XPRS_GENCONS_MIN (1): indicates a- minimumconstraint;
- XPRS_GENCONS_AND (2): indicates an- andconstraint.
- XPRS_GENCONS_OR (3): indicates an- orconstraint;
- XPRS_GENCONS_ABS (4): indicates an- absolute valueconstraint.
 
- 
          resultant- Integer array of lengthnconscontaining the indices of the output variables of the general constraints.
- 
          colstart- Integer array of lengthnconscontaining the start index of each general constraint in thecolindarray.
- 
          colind- Integer array of lengthncolscontaining the input variables in all general constraints.
- 
          valstart- Integer array of lengthnconscontaining the start index of each general constraint in thevalarray (may benullifncoefs = 0).
- 
          val- Double array of lengthnvalscontaining the constant values in all general constraints (may benullifncoefs = 0).
- Throws:
- 
          XPRSprobException
 
 -  addGenConspublic void addGenCons(int ncons, long ncols, long nvals, XPRSenumerations.GenConsType[] contype, int[] resultant, long[] colstart, int[] colind, long[] valstart, double[] val) throws XPRSprobExceptionAdds one or more general constraints to the problem. Each general constrainty = f(x1, ..., xn, c1, ..., cn)consists of one or more (input) columns xi, zero or more constant values ci and a resultant (output column) y, different from all xi. General constraints includemaximumandminimum(arbitrary number of input columns of any type and arbitrary number of input values, at least one total),andandor(at least one binary input column, no constant values, binary resultant) andabsolute value(exactly one input column of arbitrary type, no constant values).- Parameters:
- 
          ncons- The number of general constraints to add.
- 
          ncols- The total number of input variables in general constraints that should be added.
- 
          nvals- The total number of constant values in general constraints that should be added.
- 
          contype- Integer array of lengthnconscontaining the types of the general constraints:- XPRS_GENCONS_MAX (0): indicates a- maximumconstraint;
- XPRS_GENCONS_MIN (1): indicates a- minimumconstraint;
- XPRS_GENCONS_AND (2): indicates an- andconstraint.
- XPRS_GENCONS_OR (3): indicates an- orconstraint;
- XPRS_GENCONS_ABS (4): indicates an- absolute valueconstraint.
 
- 
          resultant- Integer array of lengthnconscontaining the indices of the output variables of the general constraints.
- 
          colstart- Integer array of lengthnconscontaining the start index of each general constraint in thecolindarray.
- 
          colind- Integer array of lengthncolscontaining the input variables in all general constraints.
- 
          valstart- Integer array of lengthnconscontaining the start index of each general constraint in thevalarray (may benullifncoefs = 0).
- 
          val- Double array of lengthnvalscontaining the constant values in all general constraints (may benullifncoefs = 0).
- Throws:
- 
          XPRSprobException
 
 -  getGenConspublic void getGenCons(XPRSenumerations.GenConsType[] contype, int[] resultant, int[] colstart, int[] colind, int maxcols, IntHolder p_ncols, int[] valstart, double[] val, int maxvals, IntHolder p_nvals, int first, int last) throws XPRSprobException Returns the general constraintsy = f(x1, ..., xn, c1, ..., cm)in a given range.- Parameters:
- 
          contype-nullif not required or an integer array of length at leastlast-first+1which will be filled with the types of the general constraints:- XPRS_GENCONS_MAX (0): indicates a- maximumconstraint;
- XPRS_GENCONS_MIN (1): indicates a- minimumconstraint;
- XPRS_GENCONS_AND (2): indicates an- andconstraint.
- XPRS_GENCONS_OR (3): indicates an- orconstraint;
- XPRS_GENCONS_ABS (4): indicates an- absolute valueconstraint.
 
- 
          resultant- Integer array which will be filled with the indices of the output variablesy. It must be of length at leastlast-first+1. May benullif not required.
- 
          colstart- Integer array of length at leastlast-first+2which will be filled with the start index of each general constraint in thecolindarray. May benullif not required.
- 
          colind- Integer array which will be filled with the indices of the input variablesxi. May benullif not required.
- 
          maxcols- Maximum number of input columns to be retrieved.
- 
          p_ncols- Pointer to return the number of input columns in thecolindarray. If the number of input columns is greater thanmaxcols, then onlymaxcolselements will be returned. May benullif not required.
- 
          valstart- Integer array of length at leastlast-first+2which will be filled with the start index of each general constraint in thevalarray. May benullif not required.
- 
          val- Integer array which will be filled with the constant valuesci. May benullif not required.
- 
          maxvals- Maximum number of constant values to be retrieved.
- 
          p_nvals- Pointer to return the number of constant values in thevalarray. If the number of constant values is greater thanmaxvals, then onlymaxvalselements will be returned.May benullif not required.
- 
          first- First general constraint in the range.
- 
          last- Last general constraint in the range.
- Throws:
- 
          XPRSprobException
 
 -  getGenConspublic void getGenCons(XPRSenumerations.GenConsType[] contype, int[] resultant, long[] colstart, int[] colind, long maxcols, LongHolder p_ncols, long[] valstart, double[] val, long maxvals, LongHolder p_nvals, int first, int last) throws XPRSprobException Returns the general constraintsy = f(x1, ..., xn, c1, ..., cm)in a given range.- Parameters:
- 
          contype-nullif not required or an integer array of length at leastlast-first+1which will be filled with the types of the general constraints:- XPRS_GENCONS_MAX (0): indicates a- maximumconstraint;
- XPRS_GENCONS_MIN (1): indicates a- minimumconstraint;
- XPRS_GENCONS_AND (2): indicates an- andconstraint.
- XPRS_GENCONS_OR (3): indicates an- orconstraint;
- XPRS_GENCONS_ABS (4): indicates an- absolute valueconstraint.
 
- 
          resultant- Integer array which will be filled with the indices of the output variablesy. It must be of length at leastlast-first+1. May benullif not required.
- 
          colstart- Integer array of length at leastlast-first+2which will be filled with the start index of each general constraint in thecolindarray. May benullif not required.
- 
          colind- Integer array which will be filled with the indices of the input variablesxi. May benullif not required.
- 
          maxcols- Maximum number of input columns to be retrieved.
- 
          p_ncols- Pointer to return the number of input columns in thecolindarray. If the number of input columns is greater thanmaxcols, then onlymaxcolselements will be returned. May benullif not required.
- 
          valstart- Integer array of length at leastlast-first+2which will be filled with the start index of each general constraint in thevalarray. May benullif not required.
- 
          val- Integer array which will be filled with the constant valuesci. May benullif not required.
- 
          maxvals- Maximum number of constant values to be retrieved.
- 
          p_nvals- Pointer to return the number of constant values in thevalarray. If the number of constant values is greater thanmaxvals, then onlymaxvalselements will be returned.May benullif not required.
- 
          first- First general constraint in the range.
- 
          last- Last general constraint in the range.
- Throws:
- 
          XPRSprobException
 
 -  delPwlConspublic void delPwlCons(int npwls, int[] pwlind) throws XPRSprobExceptionDelete piecewise linear constraints from a problem.- Parameters:
- 
          npwls- Number of piecewise linear constraints to delete.
- 
          pwlind- An integer array of lengthnpwlscontaining the piecewise linear constraints to delete.
- Throws:
- 
          XPRSprobException
 
 -  delGenConspublic void delGenCons(int ncons, int[] conind) throws XPRSprobExceptionDelete general constraints from a problem.- Parameters:
- 
          ncons- Number of general constraints to delete.
- 
          conind- An integer array of lengthnconscontaining the general constraints to delete.
- Throws:
- 
          XPRSprobException
 
 -  dumpControlspublic void dumpControls() throws XPRSprobExceptionDisplays the list of controls and their current value for those controls that have been set to a non default value.- Throws:
- 
          XPRSprobException
 
 -  getIndicatorspublic void getIndicators(int[] colind, int[] complement, int first, int last) throws XPRSprobExceptionReturns the indicator constraint condition (indicator variable and complement flag) associated to the rows in a given range.- Parameters:
- 
          colind- Integer array of lengthlast-first+1where the column indices of the indicator variables are to be placed. May benull.
- 
          complement- Integer array of lengthlast-first+1where the indicator complement flags will be returned:- 0: not an indicator constraint (in this case the corresponding entry in the- colindarray is ignored);
- 1: for indicator constraints with condition "- bin = 1";
- -1: for indicator constraints with condition "- bin = 0".
 null.
- 
          first- First row in the range.
- 
          last- Last row in the range (inclusive).
- Throws:
- 
          XPRSprobException
 
 -  delIndicatorspublic void delIndicators(int first, int last) throws XPRSprobExceptionDelete indicator constraints. This turns the specified rows into normal rows (not controlled by indicator variables).- Parameters:
- 
          first- First row in the range.
- 
          last- Last row in the range (inclusive).
- Throws:
- 
          XPRSprobException
 
 -  minim@Deprecated public void minim(java.lang.String flags) throws XPRSprobExceptionDeprecated.you should uselpOptimize(java.lang.String)ormipOptimize(java.lang.String)instead of minim/maxim/global- Throws:
- 
          XPRSprobException
 
 -  minimpublic void minim() throws XPRSprobExceptionConvenience wrapper forminim(String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          minim(String)
 
 -  maxim@Deprecated public void maxim(java.lang.String flags) throws XPRSprobExceptionDeprecated.you should uselpOptimize(java.lang.String)ormipOptimize(java.lang.String)instead of minim/maxim/global- Throws:
- 
          XPRSprobException
 
 -  maximpublic void maxim() throws XPRSprobExceptionConvenience wrapper formaxim(String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          maxim(String)
 
 -  lpOptimizepublic void lpOptimize(java.lang.String flags) throws XPRSprobExceptionThis function begins a search for the optimal continuous (LP) solution. The direction of optimization is given byOBJSENSE. The status of the problem when the function completes can be checked usingLPSTATUS. Any MIP entities in the problem will be ignored.This function is used in the following examples: - Callback
- IISExample
- LoadLP
- RoundInt
- Tableau
 - Parameters:
- 
          flags- Flags to pass tolpOptimize(LPOPTIMIZE). The default is""ornull, in which case the algorithm used is determined by theDEFAULTALGcontrol. If the argument includes:- b: the problem will be solved using the Newton barrier method, or the Hybrid gradient method if- BARALGis set to 4;
- p: the problem will be solved using the primal simplex algorithm;
- d: the problem will be solved using the dual simplex algorithm;
- n: (lower case- N), the network part of the problem will be identified and solved using the network simplex algorithm;
 
- Throws:
- 
          XPRSprobException
 
 -  lpOptimizepublic void lpOptimize() throws XPRSprobExceptionConvenience wrapper forlpOptimize(String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          lpOptimize(String)
 
 -  mipOptimizepublic void mipOptimize(java.lang.String flags) throws XPRSprobExceptionThis function begins a tree search for the optimal MIP solution. The direction of optimization is given byOBJSENSE. The status of the problem when the function completes can be checked usingMIPSTATUS.This function is used in the following examples: - AddMipSol
- FixBV
- GlobalObjectiveParametrics
- GlobalRHSParametrics
- GoalProg
- Knapsack
- MipSolPool
- MostViolated
- RoundInt
- SaveSol
- TSP
- Trimloss
 - Parameters:
- 
          flags- Flags to pass tomipOptimize(MIPOPTIMIZE), which specifies how to solve the initial continuous problem where the MIP entities are relaxed. If the argument includes:- b: the initial continuous relaxation will be solved using the Newton barrier method (or the hybrid gradient method if- BARALGis set to 4);
- p: the initial continuous relaxation will be solved using the primal simplex algorithm;
- d: the initial continuous relaxation will be solved using the dual simplex algorithm;
- n: the network part of the initial continuous relaxation will be identified and solved using the network simplex algorithm;
- l: stop after having solved the initial continous relaxation.
 
- Throws:
- 
          XPRSprobException
 
 -  mipOptimizepublic void mipOptimize() throws XPRSprobExceptionConvenience wrapper formipOptimize(String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          mipOptimize(String)
 
 -  optimizepublic void optimize(java.lang.String flags, IntHolder solvestatus, IntHolder solstatus) throws XPRSprobExceptionThis function begins a search for the optimal solution of the problem. The direction of optimization is given byOBJSENSE.This function is used in the following examples: - Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Parameters:
- 
          flags- Flags to pass tooptimize(OPTIMIZE). The default is""ornull. If the argument includes:- s: solve the problem to local optimality;
- x: solve the problem to global optimality;
- l: if a branch and bound search is necessary to solve the problem, stop after solving the root node.
 
- 
          solvestatus- The solve status after termination. Takes the same values asSOLVESTATUS
- 
          solstatus- The solution status after termination. Takes the same values asSOLSTATUS
- Throws:
- 
          XPRSprobException
 
 -  readSlxSolpublic void readSlxSol(java.lang.String filename, java.lang.String flags) throws XPRSprobExceptionReads an ASCII solution file [.slx] created by thewriteSlxSolfunction.- Parameters:
- 
          filename- A string of up toMAXPROBNAMELENGTHcharacters containing the file name to which the solution is to be read. If omitted, the default problem_name is used with a.slxextension.
- 
          flags- Flags to pass toreadSlxSol(READSLXSOL):- l: read the solution as an LP solution in case of a MIP problem;
- m: read the solution as a solution for the MIP problem;
- a: read multiple MIP solutions from the- .slxfile and add them to the MIP problem;
- v: use the provided filename verbatim, without appending the- .slxextension;
- z: read a compressed input file.
 
- Throws:
- 
          XPRSprobException
 
 -  readSlxSolpublic void readSlxSol(java.lang.String filename) throws XPRSprobExceptionConvenience wrapper forreadSlxSol(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          readSlxSol(String, String)
 
 -  readSlxSolpublic void readSlxSol() throws XPRSprobExceptionConvenience wrapper forreadSlxSol(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          readSlxSol(String, String)
 
 -  alterpublic void alter(java.lang.String filename) throws XPRSprobExceptionAlters or changes matrix elements, right hand sides and constraint senses in the current problem.- Parameters:
- 
          filename- A string of up toMAXPROBNAMELENGTHcharacters specifying the file to be read. If omitted, the default problem_name is used with a.altextension.
- Throws:
- 
          XPRSprobException
 
 -  readBasispublic void readBasis(java.lang.String filename, java.lang.String flags) throws XPRSprobExceptionInstructs the Optimizer to read in a previously saved basis from a file.This function is used in the following examples: - AddMipSol
 - Parameters:
- 
          filename- A string of up toMAXPROBNAMELENGTHcharacters containing the file name from which the basis is to be read. If omitted, the default problem_name is used with a.bssextension.
- 
          flags- Flags to pass toreadBasis(READBASIS):- n: input basis file containing basic solution values;
- t: input a compact advanced form of the basis;
- v: use the provided filename verbatim, without appending the- .bssextension;
- z: read a compressed input file.
 
- Throws:
- 
          XPRSprobException
 
 -  readBasispublic void readBasis(java.lang.String filename) throws XPRSprobExceptionConvenience wrapper forreadBasis(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          readBasis(String, String)
 
 -  readBasispublic void readBasis() throws XPRSprobExceptionConvenience wrapper forreadBasis(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          readBasis(String, String)
 
 -  readBinSolpublic void readBinSol(java.lang.String filename, java.lang.String flags) throws XPRSprobExceptionReads a solution from a binary solution file.- Parameters:
- 
          filename- A string of up toMAXPROBNAMELENGTHcharacters containing the file name from which the solution is to be read. If omitted, the default problem_name is used with a.solextension.
- 
          flags- Flags to pass toreadBinSol(READBINSOL):- m: load the solution as a solution for the MIP;
- x: load the solution as a solution for the LP;
- v: use the provided filename verbatim, without appending the- .solextension;
- z: read a compressed input file.
 
- Throws:
- 
          XPRSprobException
 
 -  readBinSolpublic void readBinSol(java.lang.String filename) throws XPRSprobExceptionConvenience wrapper forreadBinSol(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          readBinSol(String, String)
 
 -  readBinSolpublic void readBinSol() throws XPRSprobExceptionConvenience wrapper forreadBinSol(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          readBinSol(String, String)
 
 -  getInfeaspublic void getInfeas(IntHolder p_nprimalcols, IntHolder p_nprimalrows, IntHolder p_ndualrows, IntHolder p_ndualcols, int[] x, int[] slack, int[] duals, int[] djs) throws XPRSprobException Returns a list of infeasible primal and dual variables.- Parameters:
- 
          p_nprimalcols- Pointer to an integer where the number of primal infeasible variables is returned.
- 
          p_nprimalrows- Pointer to an integer where the number of primal infeasible rows is returned.
- 
          p_ndualrows- Pointer to an integer where the number of dual infeasible rows is returned.
- 
          p_ndualcols- Pointer to an integer where the number of dual infeasible variables is returned.
- 
          x- Integer array of lengthp_nprimalcolswhere the primal infeasible variables will be returned. May benullif not required.
- 
          slack- Integer array of lengthp_nprimalrowswhere the primal infeasible rows will be returned. May benullif not required.
- 
          duals- Integer array of lengthp_ndualrowswhere the dual infeasible rows will be returned. May benullif not required.
- 
          djs- Integer array of lengthp_ndualcolswhere the dual infeasible variables will be returned. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  getScaledInfeaspublic void getScaledInfeas(IntHolder p_nprimalcols, IntHolder p_nprimalrows, IntHolder p_ndualrows, IntHolder p_ndualcols, int[] x, int[] slack, int[] duals, int[] djs) throws XPRSprobException Returns a list of scaled infeasible primal and dual variables for the original problem. If the problem is currently presolved, it is postsolved before the function returns.- Parameters:
- 
          p_nprimalcols- Number of primal infeasible variables.
- 
          p_nprimalrows- Number of primal infeasible rows.
- 
          p_ndualrows- Number of dual infeasible rows.
- 
          p_ndualcols- Number of dual infeasible variables.
- 
          x- Integer array of lengthp_nprimalcolswhere the primal infeasible variables will be returned. May benullif not required.
- 
          slack- Integer array of lengthp_nprimalrowswhere the primal infeasible rows will be returned. May benullif not required.
- 
          duals- Integer array of lengthp_ndualrowswhere the dual infeasible rows will be returned. May benullif not required.
- 
          djs- Integer array of lengthp_ndualcolswhere the dual infeasible variables will be returned. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  getUnbVecpublic void getUnbVec(IntHolder p_seq) throws XPRSprobException Returns the index vector which causes the primal simplex or dual simplex algorithm to determine that a matrix is primal or dual unbounded respectively.- Parameters:
- 
          p_seq- Pointer to an integer where the vector causing the problem to be detected as being primal or dual unbounded will be returned. In the dual simplex case, the vector is the leaving row for which the dual simplex detected dual unboundedness. In the primal simplex case, the vector is the entering rowp_seq(ifp_seqis in the range0toROWS-1) or column (variable)p_seq-ROWS-SPAREROWS(ifp_seqis betweenROWS+SPAREROWSandROWS+SPAREROWS+COLS-1) for which the primal simplex detected primal unboundedness.
- Throws:
- 
          XPRSprobException
 
 -  getUnbVecpublic int getUnbVec() Convenience wrapper forgetUnbVec(com.dashoptimization.IntHolder)that returns the output argument.- Returns:
- The value that the wrapped function would return in p_seq.
 
 -  crossoverLpSolpublic void crossoverLpSol(IntHolder p_status) throws XPRSprobException Provides a basic optimal solution for a given solution of an LP problem. This function behaves like the crossover after the barrier algorithm.- Parameters:
- 
          p_status- Pointer to anintwhere the status will be returned. The status is one of:- 0: The crossover is successful.
- 1: The crossover is not performed because the problem has no solution.
 
- Throws:
- 
          XPRSprobException
 
 -  crossoverLpSolpublic int crossoverLpSol() Convenience wrapper forcrossoverLpSol(com.dashoptimization.IntHolder)that returns the output argument.- Returns:
- The value that the wrapped function would return in p_status.
 
 -  tunepublic void tune(java.lang.String flags) throws XPRSprobExceptionThis function begins a tuner session for the current problem. The tuner will solve the problem multiple times while evaluating a list of control settings and promising combinations of them. When finished, the tuner will select and set the best control setting on the problem. Note that the direction of optimization is given byOBJSENSE.- Parameters:
- 
          flags- Flags to pass totune, which specify whether to tune the current problem as an LP or a MIP problem, and the algorithm for solving the LP problem or the initial LP relaxation of the MIP. The flags are optional. If the argument includes:- l: will tune the problem as an LP (mutually exclusive with flag- g);
- g: will tune the problem as a MIP (mutually exclusive with flag- l);
- x: will tune the problem as a Global Optimization problem with Xpress Global;
- d: will use the dual simplex method;
- p: will use the primal simplex method;
- b: will use the barrier method;
- n: will use the network simplex method.
 
- Throws:
- 
          XPRSprobException
 
 -  tuneProbSetFilepublic void tuneProbSetFile(java.lang.String setfile, int ifmip, int sense) throws XPRSprobExceptionThis function begins a tuner session for a set of problems. The tuner will solve the problems multiple times while evaluating a list of control settings and promising combinations of them. When finished, the tuner will select and set the best control setting on the problems.- Parameters:
- 
          setfile- A plain text file which contains a list of problem filenames.
- 
          ifmip-- -1: to automatically determine whether to solve the problem set as LP or MIP;
- 0: to force the tuner to tune the problem set as LP;
- 1: to force the tuner to tune the problem set as MIP.
 
- 
          sense-- 0: to automatically determine the sense of each problem;
- 1: to force the tuner to minimize each problem;
- -1: to force the tuner to maximize each problem.
 
- Throws:
- 
          XPRSprobException
 
 -  tunerWriteMethodpublic void tunerWriteMethod(java.lang.String methodfile) throws XPRSprobExceptionThis function writes the current tuner method to a given file or prints it to the console.- Parameters:
- 
          methodfile- The method file name, to which the tuner will write the current tuner method. If the input isstdoutorSTDOUT, then the tuner will print the method to the console instead.
- Throws:
- 
          XPRSprobException
 
 -  tunerReadMethodpublic void tunerReadMethod(java.lang.String methodfile) throws XPRSprobExceptionThis function loads a user defined tuner method from the given file.- Parameters:
- 
          methodfile- The method file name, from which the tuner can load a user-defined tuner method.
- Throws:
- 
          XPRSprobException
 
 -  getBarNumStabilitypublic void getBarNumStability(int[] colstab, int[] rowstab) throws XPRSprobException- Throws:
- 
          XPRSprobException
 
 -  getLastBarSolpublic void getLastBarSol(double[] x, double[] slack, double[] duals, double[] djs, IntHolder p_status) throws XPRSprobExceptionUsed to obtain the last barrier solution values following optimization that used the barrier solver.- Parameters:
- 
          x- Double array of lengthORIGINALCOLSwhere the values of the primal variables will be returned. May benullif not required.
- 
          slack- Double array of lengthORIGINALROWSwhere the values of the slack variables will be returned. May benullif not required.
- 
          duals- Double array of lengthORIGINALROWSwhere the values of the dual variables (cBTB-1) will be returned. May benullif not required.
- 
          djs- Double array of lengthORIGINALCOLSwhere the reduced cost for each variable (cT-cBTB-1A) will be returned. May benullif not required.
- 
          p_status- Status of the last barrier solve. Value matches that of XPRS_LPSTATUS should the solve have been stopped immediately after the barrier.
- Throws:
- 
          XPRSprobException
 
 -  clearIISpublic void clearIIS() throws XPRSprobExceptionResets the search for Irreducible Infeasible Sets (IIS).- Throws:
- 
          XPRSprobException
 
 -  firstIISpublic void firstIIS(int mode, IntHolder p_status) throws XPRSprobExceptionInitiates a search for an Irreducible Infeasible Set (IIS) in an infeasible problem.This function is used in the following examples: - IISExample
 - Parameters:
- 
          mode- The IIS search mode:- 0: stops after finding the initial infeasible subproblem;
- 1: find an IIS, emphasizing simplicity of the IIS;
- 2: find an IIS, emphasizing a quick result.
 
- 
          p_status- The status after the search:- 0: success;
- 1: feasible problem;
- 2: error;
- 3: timeout or interruption.
 
- Throws:
- 
          XPRSprobException
 
 -  firstIISpublic int firstIIS(int mode) Convenience wrapper forfirstIIS(int,com.dashoptimization.IntHolder)that returns the output argument.This function is used in the following examples: - IISExample
 - Parameters:
- 
          mode- The IIS search mode:- 0: stops after finding the initial infeasible subproblem;
- 1: find an IIS, emphasizing simplicity of the IIS;
- 2: find an IIS, emphasizing a quick result.
 
- Returns:
- The value that the wrapped function would return in p_status.
 
 -  nextIISpublic void nextIIS(IntHolder p_status) throws XPRSprobException Continues the search for further Irreducible Infeasible Sets (IIS), or callsfirstIIS(IIS) if no IIS has been identified yet.This function is used in the following examples: - IISExample
 - Parameters:
- 
          p_status- The status after the search:- 0: success;
- 1: no more IIS could be found, or problem is feasible if no- firstIIScall preceded;
- 2: on error (when the function returns nonzero).
 
- Throws:
- 
          XPRSprobException
 
 -  nextIISpublic int nextIIS() Convenience wrapper fornextIIS(com.dashoptimization.IntHolder)that returns the output argument.This function is used in the following examples: - IISExample
 - Returns:
- The value that the wrapped function would return in p_status.
 
 -  IISStatuspublic void IISStatus(IntHolder p_niis, int[] nrows, int[] ncols, double[] suminfeas, int[] numinfeas) throws XPRSprobException Returns statistics on the Irreducible Infeasible Sets (IIS) found so far byfirstIIS(IIS),nextIIS(IIS-n) oriISAll(IIS-a).This function is used in the following examples: - IISExample
 - Parameters:
- 
          p_niis- The number of IISs found so far.
- 
          nrows- Number of rows in the IISs.
- 
          ncols- Number of bounds in the IISs.
- 
          suminfeas- The sum of infeasibilities in the IISs after the first phase simplex.
- 
          numinfeas- The number of infeasible variables in the IISs after the first phase simplex.
- Throws:
- 
          XPRSprobException
 
 -  IISAllpublic void IISAll() throws XPRSprobExceptionPerforms an automated search for independent Irreducible Infeasible Sets (IIS) in an infeasible problem.This function is used in the following examples: - IISExample
 - Throws:
- 
          XPRSprobException
 
 -  writeIISpublic void writeIIS(int iis, java.lang.String filename, int filetype, java.lang.String flags) throws XPRSprobExceptionWrites an LP/MPS/CSV file containing a given Irreducible Infeasible Set (IIS). If 0 is passed as the IIS number parameter, the initial infeasible subproblem is written.This function is used in the following examples: - IISExample
 - Parameters:
- 
          iis- The ordinal number of the IIS to be written.
- 
          filename- The name of the file to be created.
- 
          filetype- Type of file to be created:- 0: creates an lp/mps file containing the IIS as a linear programming problem;
- 1: creates a comma separated (csv) file containing the description and supplementary information on the given IIS.
 
- 
          flags- Flags passed to thewriteProbfunction.
- Throws:
- 
          XPRSprobException
 
 -  writeIISpublic void writeIIS(int iis, java.lang.String filename, int filetype) throws XPRSprobExceptionConvenience wrapper forwriteIIS(int, String, int, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          writeIIS(int, String, int, String)
 
 -  IISIsolationspublic void IISIsolations(int iis) throws XPRSprobExceptionPerforms the isolation identification procedure for an Irreducible Infeasible Set (IIS). This function applies only to linear problems.- Parameters:
- 
          iis- The number of the IIS identified by eitherfirstIIS(IIS),nextIIS(IIS-n) oriISAll(IIS-a) in which the isolations should be identified.
- Throws:
- 
          XPRSprobException
 
 -  getIISDatapublic void getIISData(int iis, IntHolder p_nrows, IntHolder p_ncols, int[] rowind, int[] colind, byte[] contype, byte[] bndtype, double[] duals, double[] djs, byte[] isolationrows, byte[] isolationcols) throws XPRSprobExceptionReturns information for an Irreducible Infeasible Set: size, variables and constraints (row and column vectors), and conflicting sides of the variables. For pure linear problems there is also information on duals, reduced costs and isolations.This function is used in the following examples: - IISExample
 - Parameters:
- 
          iis- The ordinal number of the IIS to get data for.
- 
          p_nrows- Pointer to an integer where the number of rows in the IIS will be returned.
- 
          p_ncols- Pointer to an integer where the number of bounds in the IIS will be returned.
- 
          rowind- Indices of rows in the IIS. Can be null if not required.
- 
          colind- Indices of bounds (columns) in the IIS. Can be null if not required.
- 
          contype- Sense of rows in the IIS:- L: for less or equal row;
- G: for greater or equal row.
- E: for an equality row (for a non LP IIS);
- 1: for a SOS1 row;
- 2: for a SOS2 row;
- W: for a piecewise linear constraint;
- X: for a general constraint;
- I: for an indicator row.
 
- 
          bndtype- Sense of bound in the IIS:- U: for upper bound;
- L: for lower bound.
- F: for fixed columns (for a non LP IIS);
- B: for a binary column;
- I: for an integer column;
- P: for a partial integer columns;
- S: for a semi-continuous column;
- R: for a semi-continuous integer column.
 
- 
          duals- The dual multipliers associated with the rows. Can be null if not required.
- 
          djs- The dual multipliers (reduced costs) associated with the bounds. Can be null if not required.
- 
          isolationrows- The isolation status of the rows:- -1: if isolation information is not available for row (run iis isolations);
- 0: if row is not in isolation;
- 1: if row is in isolation.
 
- 
          isolationcols- The isolation status of the bounds:- -1: if isolation information is not available for column (run iis isolations);
- 0: if column is not in isolation;
- 1: if column is in isolation.
 
- Throws:
- 
          XPRSprobException
 
 -  loadPresolveBasispublic void loadPresolveBasis(int[] rowstat, int[] colstat) throws XPRSprobExceptionLoads a presolved basis from the user's areas.- Parameters:
- 
          rowstat- Integer array of lengthROWScontaining the basis status of the slack, surplus or artificial variable associated with each row. The status must be one of:- 0: slack, surplus or artificial is non-basic at lower bound;
- 1: slack, surplus or artificial is basic;
- 2: slack or surplus is non-basic at upper bound.
 
- 
          colstat- Integer array of lengthCOLScontaining the basis status of each of the columns in the matrix. The status must be one of:- 0: variable is non-basic at lower bound or superbasic at zero if the variable has no lower bound;
- 1: variable is basic;
- 2: variable is at upper bound;
- 3: variable is super-basic.
 
- Throws:
- 
          XPRSprobException
 
 -  getMIPEntitiespublic void getMIPEntities(IntHolder p_nentities, IntHolder p_nsets, byte[] coltype, int[] colind, double[] limit, byte[] settype, int[] start, int[] setcols, double[] refval) throws XPRSprobException Retrieves integr and entity information about a problem. It must be called beforemipOptimizeif the presolve option is used.- Parameters:
- 
          p_nentities- Pointer to the integer where the number of binary, integer, semi-continuous, semi-continuous integer and partial integer entities will be returned. This is equal to the problem attributeMIPENTS. May benull.
- 
          p_nsets- Pointer to the integer where the number of SOS1 and SOS2 sets will be returned. It can be retrieved from the problem attributeSETS. May benull.
- 
          coltype- Character array of lengthp_nentitieswhere the entity types will be returned. The types will be one of:- B: binary variables;
- I: integer variables;
- P: partial integer variables;
- S: semi-continuous variables;
- R: semi-continuous integer variables.
 
- 
          colind- Integer array of lengthp_nentitieswhere the column indices of the MIP entities will be returned.
- 
          limit- Double array of lengthp_nentitieswhere the limits for the partial integer variables and lower bounds for the semi-continuous and semi-continuous integer variables will be returned (any entries in the positions corresponding to binary and integer variables will be meaningless).
- 
          settype- Character array of lengthp_nsetswhere the set types will be returned. The set types will be one of:- 1: SOS1 type sets;
- 2: SOS2 type sets.
 
- 
          start- Integer array where the offsets into thesetcolsandrefvalarrays indicating the start of the sets will be returned. This array must be of lengthp_nsets+1, the final element will contain the offset where setp_nsets+1would start and equals the length of thesetcolsandrefvalarrays,SETMEMBERS.
- 
          setcols- Integer array of lengthSETMEMBERSwhere the columns in each set will be returned.
- 
          refval- Double array of lengthSETMEMBERSwhere the reference row entries for each member of the sets will be returned. These define the order for SOS2 constraints and may be used in branching for both types.
- Throws:
- 
          XPRSprobException
 
 -  getMIPEntitiespublic void getMIPEntities(IntHolder p_nentities, byte[] coltype, int[] colind, double[] limit) throws XPRSprobException 
 -  getMIPEntitiespublic int getMIPEntities(byte[] coltype, int[] colind, double[] limit) throws XPRSprobExceptionConvenience wrapper forgetMIPEntities(com.dashoptimization.IntHolder, com.dashoptimization.IntHolder, byte[], int[], double[], byte[], int[], int[], double[]).- Returns:
- 
          The value that would be returned by 
          getMIPEntities(com.dashoptimization.IntHolder, com.dashoptimization.IntHolder, byte[], int[], double[], byte[], int[], int[], double[])as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getMIPEntities(com.dashoptimization.IntHolder, com.dashoptimization.IntHolder, byte[], int[], double[], byte[], int[], int[], double[])
 
 -  getMIPEntitiespublic void getMIPEntities(IntHolder p_nentities, IntHolder p_nsets, byte[] coltype, int[] colind, double[] limit, byte[] settype, long[] start, int[] setcols, double[] refval) throws XPRSprobException Retrieves integr and entity information about a problem. It must be called beforemipOptimizeif the presolve option is used.- Parameters:
- 
          p_nentities- Pointer to the integer where the number of binary, integer, semi-continuous, semi-continuous integer and partial integer entities will be returned. This is equal to the problem attributeMIPENTS. May benull.
- 
          p_nsets- Pointer to the integer where the number of SOS1 and SOS2 sets will be returned. It can be retrieved from the problem attributeSETS. May benull.
- 
          coltype- Character array of lengthp_nentitieswhere the entity types will be returned. The types will be one of:- B: binary variables;
- I: integer variables;
- P: partial integer variables;
- S: semi-continuous variables;
- R: semi-continuous integer variables.
 
- 
          colind- Integer array of lengthp_nentitieswhere the column indices of the MIP entities will be returned.
- 
          limit- Double array of lengthp_nentitieswhere the limits for the partial integer variables and lower bounds for the semi-continuous and semi-continuous integer variables will be returned (any entries in the positions corresponding to binary and integer variables will be meaningless).
- 
          settype- Character array of lengthp_nsetswhere the set types will be returned. The set types will be one of:- 1: SOS1 type sets;
- 2: SOS2 type sets.
 
- 
          start- Integer array where the offsets into thesetcolsandrefvalarrays indicating the start of the sets will be returned. This array must be of lengthp_nsets+1, the final element will contain the offset where setp_nsets+1would start and equals the length of thesetcolsandrefvalarrays,SETMEMBERS.
- 
          setcols- Integer array of lengthSETMEMBERSwhere the columns in each set will be returned.
- 
          refval- Double array of lengthSETMEMBERSwhere the reference row entries for each member of the sets will be returned. These define the order for SOS2 constraints and may be used in branching for both types.
- Throws:
- 
          XPRSprobException
 
 -  loadSecureVecspublic void loadSecureVecs(int nrows, int ncols, int[] rowind, int[] colind) throws XPRSprobExceptionAllows the user to mark rows and columns in order to prevent the presolve removing these rows and columns from the matrix.- Parameters:
- 
          nrows- Number of rows to be marked.
- 
          ncols- Number of columns to be marked.
- 
          rowind- Integer array of lengthnrowscontaining the rows to be marked. May benullif not required.
- 
          colind- Integer array of lengthncolscontaining the columns to be marked. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  addRowspublic void addRows(int nrows, int ncoefs, byte[] rowtype, double[] rhs, double[] rng, int[] start, int[] colind, double[] rowcoef) throws XPRSprobExceptionAllows rows to be added to the matrix after passing it to the Optimizer using the input routines.This function is used in the following examples: - LoadLP
- Trimloss
 - Parameters:
- 
          nrows- Number of new rows.
- 
          ncoefs- Number of new nonzeros in the added rows.
- 
          rowtype- Character array of length nrows containing the row types:- L: indicates a <= row;
- G: indicates >= row;
- E: indicates an = row.
- R: indicates a range constraint;
- N: indicates a nonbinding constraint.
 
- 
          rhs- Double array of lengthnrowscontaining the right hand side elements.
- 
          rng- Double array of lengthnrowscontaining the row range elements. This may benullif there are no ranged constraints. The values in therngarray will only be read forRtype rows. The entries for other type rows will be ignored. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
- 
          start- Integer array of lengthnrowscontaining the offsets in thecolindandrowcoefarrays of the start of the elements for each row.
- 
          colind- Integer array of lengthncoefscontaining the (contiguous) column indices for the elements in each row.
- 
          rowcoef- Double array of lengthncoefscontaining the (contiguous) element values.
- Throws:
- 
          XPRSprobException
 
 -  addRowspublic void addRows(int nrows, int ncoefs, byte[] rowtype, double[] rhs, int[] start, int[] colind, double[] rowcoef) throws XPRSprobExceptionConvenience wrapper foraddRows(int, int, byte[], double[], double[], int[], int[], double[]).
 -  addRowspublic void addRows(int nrows, long ncoefs, byte[] rowtype, double[] rhs, double[] rng, long[] start, int[] colind, double[] rowcoef) throws XPRSprobExceptionAllows rows to be added to the matrix after passing it to the Optimizer using the input routines.This function is used in the following examples: - LoadLP
- Trimloss
 - Parameters:
- 
          nrows- Number of new rows.
- 
          ncoefs- Number of new nonzeros in the added rows.
- 
          rowtype- Character array of length nrows containing the row types:- L: indicates a <= row;
- G: indicates >= row;
- E: indicates an = row.
- R: indicates a range constraint;
- N: indicates a nonbinding constraint.
 
- 
          rhs- Double array of lengthnrowscontaining the right hand side elements.
- 
          rng- Double array of lengthnrowscontaining the row range elements. This may benullif there are no ranged constraints. The values in therngarray will only be read forRtype rows. The entries for other type rows will be ignored. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
- 
          start- Integer array of lengthnrowscontaining the offsets in thecolindandrowcoefarrays of the start of the elements for each row.
- 
          colind- Integer array of lengthncoefscontaining the (contiguous) column indices for the elements in each row.
- 
          rowcoef- Double array of lengthncoefscontaining the (contiguous) element values.
- Throws:
- 
          XPRSprobException
 
 -  addRowspublic void addRows(int nrows, long ncoefs, byte[] rowtype, double[] rhs, long[] start, int[] colind, double[] rowcoef) throws XPRSprobExceptionConvenience wrapper foraddRows(int, long, byte[], double[], double[], long[], int[], double[]).
 -  delRowspublic void delRows(int nrows, int[] rowind) throws XPRSprobExceptionDelete rows from a matrix.- Parameters:
- 
          nrows- Number of rows to delete.
- 
          rowind- An integer array of lengthnrowscontaining the rows to delete.
- Throws:
- 
          XPRSprobException
 
 -  addColspublic void addCols(int ncols, int ncoefs, double[] objcoef, int[] start, int[] rowind, double[] rowcoef, double[] lb, double[] ub) throws XPRSprobExceptionAllows columns to be added to the matrix after passing it to the Optimizer using the input routines.This function is used in the following examples: - Trimloss
 - Parameters:
- 
          ncols- Number of new columns.
- 
          ncoefs- Number of new nonzeros in the added columns.
- 
          objcoef- Double array of lengthncolscontaining the objective function coefficients of the new columns. As of version 43.00 this can benullto indicate that all newly created variables have an objective coefficient of 0 (zero).
- 
          start- Integer array of lengthncolscontaining the offsets in therowindandrowcoefarrays of the start of the elements for each column. This can benullif thencolsor thencoefsargument is 0 (zero).
- 
          rowind- Integer array of lengthncoefscontaining the row indices for the elements in each column.
- 
          rowcoef- Double array of lengthncoefscontaining the element values.
- 
          lb- Double array of lengthncolscontaining the lower bounds on the added columns. This can benullin which case all variables will have a lower bound of 0.
- 
          ub- Double array of lengthncolscontaining the upper bounds on the added columns. This can benullin which hcase all variables will have an infinite upper bound.
- Throws:
- 
          XPRSprobException
 
 -  addColspublic void addCols(int ncols, long ncoefs, double[] objcoef, long[] start, int[] rowind, double[] rowcoef, double[] lb, double[] ub) throws XPRSprobExceptionAllows columns to be added to the matrix after passing it to the Optimizer using the input routines.This function is used in the following examples: - Trimloss
 - Parameters:
- 
          ncols- Number of new columns.
- 
          ncoefs- Number of new nonzeros in the added columns.
- 
          objcoef- Double array of lengthncolscontaining the objective function coefficients of the new columns. As of version 43.00 this can benullto indicate that all newly created variables have an objective coefficient of 0 (zero).
- 
          start- Integer array of lengthncolscontaining the offsets in therowindandrowcoefarrays of the start of the elements for each column. This can benullif thencolsor thencoefsargument is 0 (zero).
- 
          rowind- Integer array of lengthncoefscontaining the row indices for the elements in each column.
- 
          rowcoef- Double array of lengthncoefscontaining the element values.
- 
          lb- Double array of lengthncolscontaining the lower bounds on the added columns. This can benullin which case all variables will have a lower bound of 0.
- 
          ub- Double array of lengthncolscontaining the upper bounds on the added columns. This can benullin which hcase all variables will have an infinite upper bound.
- Throws:
- 
          XPRSprobException
 
 -  delColspublic void delCols(int ncols, int[] colind) throws XPRSprobExceptionDelete columns from a matrix.- Parameters:
- 
          ncols- Number of columns to delete.
- 
          colind- Integer array of lengthncolscontaining the columns to delete.
- Throws:
- 
          XPRSprobException
 
 -  chgColTypepublic void chgColType(int ncols, int[] colind, byte[] coltype) throws XPRSprobExceptionUsed to change the type of a specified set of columns in the matrix.This function is used in the following examples: - Trimloss
 - Parameters:
- 
          ncols- Number of columns to change.
- 
          colind- Integer array of lengthncolscontaining the indices of the columns.
- 
          coltype- Character array of lengthncolsgiving the new column types:- C: indicates a continuous column;
- B: indicates a binary column;
- I: indicates an integer column.
- S: indicates a semi—continuous column. The semi—continuous lower bound will be set to- 1.0.
- R: indicates a semi—integer column. The semi—integer lower bound will be set to- 1.0.
- P: indicates a partial integer column. The partial integer bound will be set to- 1.0.
 
- Throws:
- 
          XPRSprobException
 
 -  chgColTypepublic void chgColType(int x, byte value) throws XPRSprobExceptionConvenience wrapper forchgColType(int, int[], byte[]). This function only modifies a single element.This function is used in the following examples: - Trimloss
 - Parameters:
- 
          x- Index of element to modify.
- 
          value- New value forx.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          chgColType(int, int[], byte[])
 
 -  loadBasispublic void loadBasis(int[] rowstat, int[] colstat) throws XPRSprobExceptionLoads a basis from the user's areas.This function is used in the following examples: - GlobalObjectiveParametrics
- GlobalRHSParametrics
 - Parameters:
- 
          rowstat- Integer array of lengthROWScontaining the basis status of the slack, surplus or artificial variable associated with each row. The status must be one of:- 0: slack, surplus or artificial is non-basic at lower bound;
- 1: slack, surplus or artificial is basic;
- 2: slack or surplus is non-basic at upper bound.
- 3: slack or surplus is super-basic.
 
- 
          colstat- Integer array of lengthCOLScontaining the basis status of each of the columns in the constraint matrix. The status must be one of:- 0: variable is non-basic at lower bound or superbasic at zero if the variable has no lower bound;
- 1: variable is basic;
- 2: variable is at upper bound;
- 3: variable is super-basic.
 
- Throws:
- 
          XPRSprobException
 
 -  postSolvepublic void postSolve() throws XPRSprobExceptionPostsolve the current matrix when it is in a presolved state.This function is used in the following examples: - AddMipSol
 - Throws:
- 
          XPRSprobException
 
 -  delSetspublic void delSets(int nsets, int[] setind) throws XPRSprobExceptionDelete sets from a problem.- Parameters:
- 
          nsets- Number of sets to delete.
- 
          setind- An integer array of lengthnsetscontaining the sets to delete.
- Throws:
- 
          XPRSprobException
 
 -  addSetspublic void addSets(int nsets, int nelems, byte[] settype, int[] start, int[] colind, double[] refval) throws XPRSprobExceptionAllows sets to be added to the problem after passing it to the Optimizer using the input routines.- Parameters:
- 
          nsets- Number of new sets.
- 
          nelems- Number of new nonzeros in the added sets.
- 
          settype- Character array of length nsets containing the set types:- 1: indicates a SOS1;
- 2: indicates a SOS2;
 
- 
          start- Integer array of lengthnsetscontaining the offsets in thecolindandrefvalarrays of the start of the elements for each set.
- 
          colind- Integer array of lengthnelemscontaining the (contiguous) column indices for the elements in each set.
- 
          refval- Double array of lengthnelemscontaining the (contiguous) reference values. These define the order for SOS2 constraints and may be used in branching for both types.
- Throws:
- 
          XPRSprobException
 
 -  addSetspublic void addSets(int nsets, long nelems, byte[] settype, long[] start, int[] colind, double[] refval) throws XPRSprobExceptionAllows sets to be added to the problem after passing it to the Optimizer using the input routines.- Parameters:
- 
          nsets- Number of new sets.
- 
          nelems- Number of new nonzeros in the added sets.
- 
          settype- Character array of length nsets containing the set types:- 1: indicates a SOS1;
- 2: indicates a SOS2;
 
- 
          start- Integer array of lengthnsetscontaining the offsets in thecolindandrefvalarrays of the start of the elements for each set.
- 
          colind- Integer array of lengthnelemscontaining the (contiguous) column indices for the elements in each set.
- 
          refval- Double array of lengthnelemscontaining the (contiguous) reference values. These define the order for SOS2 constraints and may be used in branching for both types.
- Throws:
- 
          XPRSprobException
 
 -  strongBranchpublic void strongBranch(int nbounds, int[] colind, byte[] bndtype, double[] bndval, int iterlim, double[] objval, int[] status) throws XPRSprobExceptionPerforms strong branching iterations on all specified bound changes. For each candidate bound change,strongBranchperforms dual simplex iterations starting from the current optimal solution of the base LP, and returns both the status and objective value reached after these iterations.- Parameters:
- 
          nbounds- Number of bound changes to try.
- 
          colind- Integer array of sizenboundscontaining the indices of the columns on which the bounds will change.
- 
          bndtype- Character array of lengthnboundsindicating the type of bound to change:- U: indicates change the upper bound;
- L: indicates change the lower bound;
- B: indicates change both bounds, i.e. fix the column.
 
- 
          bndval- Double array of lengthnboundsgiving the new bound values.
- 
          iterlim- Maximum number of LP iterations to perform for each bound change.
- 
          objval- Objective value of each LP after performing the strong branching iterations.
- 
          status- Status of each LP after performing the strong branching iterations, as detailed for theLPSTATUSattribute.
- Throws:
- 
          XPRSprobException
 
 -  estimateRowDualRangespublic void estimateRowDualRanges(int nrows, int[] rowind, int iterlim, double[] mindual, double[] maxdual) throws XPRSprobExceptionPerforms a dual side range sensitivity analysis, i.e. calculates estimates for the possible ranges for dual values.- Parameters:
- 
          nrows- The number of rows to analyze.
- 
          rowind- Row indices to analyze.
- 
          iterlim- Effort limit expressed as simplex iterations per row.
- 
          mindual- Estimated lower bounds on the possible dual ranges.
- 
          maxdual- Estimated upper bounds on the possible dual ranges.
- Throws:
- 
          XPRSprobException
 
 -  setMessageStatuspublic void setMessageStatus(int msgcode, int status) throws XPRSprobExceptionManages suppression of messages.- Parameters:
- 
          msgcode- The id number of the message. Refer to the section for a list of possible message numbers.
- 
          status- Non-zero if the message is not suppressed;0otherwise. If a value forstatusis not supplied in the command-line call then the console Optimizer prints the value of the suppression status to screen i.e., non-zero if the message is not suppressed;0otherwise.
- Throws:
- 
          XPRSprobException
 
 -  getMessageStatuspublic void getMessageStatus(int msgcode, IntHolder p_status) throws XPRSprobExceptionRetrieves the current suppression status of a message.- Parameters:
- 
          msgcode- The id number of the message. Refer to Chapter for a list of possible message numbers.
- 
          p_status- Non-zero if the message is not suppressed;0otherwise.
- Throws:
- 
          XPRSprobException
 
 -  getMessageStatuspublic int getMessageStatus(int msgcode) Convenience wrapper forgetMessageStatus(int,com.dashoptimization.IntHolder)that returns the output argument.- Parameters:
- 
          msgcode- The id number of the message. Refer to Chapter for a list of possible message numbers.
- Returns:
- The value that the wrapped function would return in p_status.
 
 -  chgObjSensepublic void chgObjSense(XPRSenumerations.ObjSense objsense) throws XPRSprobException Changes the problem's objective function sense to minimize or maximize.This function is used in the following examples: - FixBV
- GlobalObjectiveParametrics
- GlobalRHSParametrics
- Knapsack
- LoadLP
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
- SaveSol
- Tableau
 - Parameters:
- 
          objsense-XPRS_OBJ_MINIMIZEto change into a minimization, orXPRS_OBJ_MAXIMIZEto change into maximization problem.
- Throws:
- 
          XPRSprobException
 
 -  chgGlbLimitpublic void chgGlbLimit(int ncols, int[] colind, double[] limit) throws XPRSprobExceptionUsed to change semi-continuous or semi-integer lower bounds, or upper limits on partial integers.- Parameters:
- 
          ncols- Number of column limits to change.
- 
          colind- Integer array of sizencolscontaining the indices of the semi-continuous, semi-integer or partial integer columns that should have their limits changed.
- 
          limit- Double array of lengthncolsgiving the new limit values.
- Throws:
- 
          XPRSprobException
 
 -  chgGlbLimitpublic void chgGlbLimit(int x, double value) throws XPRSprobExceptionConvenience wrapper forchgGlbLimit(int, int[], double[]). This function only modifies a single element.- Parameters:
- 
          x- Index of element to modify.
- 
          value- New value forx.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          chgGlbLimit(int, int[], double[])
 
 -  savepublic void save() throws XPRSprobExceptionSaves the current data structures, i.e. matrices, control settings and problem attribute settings to file and terminates the run so that optimization can be resumed later.- Throws:
- 
          XPRSprobException
 
 -  saveAspublic void saveAs(java.lang.String sSaveFileName) throws XPRSprobExceptionSaves the current data structures, i.e. matrices, control settings and problem attribute settings to file and terminates the run so that optimization can be resumed later.- Parameters:
- 
          sSaveFileName- The name of the file (without .svf) to save to.
- Throws:
- 
          XPRSprobException
 
 -  restorepublic void restore(java.lang.String probname, java.lang.String flags) throws XPRSprobExceptionRestores the Optimizer's data structures from a file created bysave(SAVE). Optimization may then recommence from the point at which the file was created.- Parameters:
- 
          probname- A string of up toMAXPROBNAMELENGTHcharacters containing the problem name.
- 
          flags- Additional flags- h: Do not restore hardware information from the file;
- v: use the provided filename verbatim, without appending the- .svfextension.
 
- Throws:
- 
          XPRSprobException
 
 -  restorepublic void restore() throws XPRSprobExceptionConvenience wrapper forrestore(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          restore(String, String)
 
 -  restorepublic void restore(java.lang.String probname) throws XPRSprobExceptionConvenience wrapper forrestore(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          restore(String, String)
 
 -  pivotpublic void pivot(int enter, int leave) throws XPRSprobExceptionPerforms a simplex pivot by bringing variableenterinto the basis and removingleave.- Parameters:
- 
          enter- Index of row or column to enter basis.
- 
          leave- Index of row or column to leave basis.
- Throws:
- 
          XPRSprobException
 
 -  loadLPSolpublic void loadLPSol(double[] x, double[] slack, double[] duals, double[] djs, IntHolder p_status) throws XPRSprobExceptionLoads an LP solution for the problem into the Optimizer.- Parameters:
- 
          x- Optional: Double array of lengthCOLS(for the original problem and not the presolve problem) containing the values of the variables.
- 
          slack- Optional: double array of lengthROWScontaining the values of slack variables.
- 
          duals- Optional: double array of lengthROWScontaining the values of dual variables.
- 
          djs- Optional: double array of lengthCOLScontaining the values of reduced costs.
- 
          p_status- Pointer to anintwhere the status will be returned. The status is one of:- 0: Solution is loaded.
- 1: Solution is not loaded because the problem is in presolved status.
 
- Throws:
- 
          XPRSprobException
 
 -  loadLPSolpublic int loadLPSol(double[] x, double[] slack, double[] duals, double[] djs)Convenience wrapper forloadLPSol(double[],double[],double[],double[],com.dashoptimization.IntHolder)that returns the output argument.- Parameters:
- 
          x- Optional: Double array of lengthCOLS(for the original problem and not the presolve problem) containing the values of the variables.
- 
          slack- Optional: double array of lengthROWScontaining the values of slack variables.
- 
          duals- Optional: double array of lengthROWScontaining the values of dual variables.
- 
          djs- Optional: double array of lengthCOLScontaining the values of reduced costs.
- Returns:
- The value that the wrapped function would return in p_status.
 
 -  basisCondition@Deprecated public void basisCondition(DoubleHolder p_cond, DoubleHolder p_scaledcond) throws XPRSprobException Deprecated.Calculates the condition number of the current basis after solving the LP relaxation.- Parameters:
- 
          p_cond- The returned condition number of the current basis.
- 
          p_scaledcond- The returned condition number of the current basis for the scaled problem.
- Throws:
- 
          XPRSprobException
 
 -  repairWeightedInfeaspublic void repairWeightedInfeas(IntHolder p_status, double[] lepref, double[] gepref, double[] lbpref, double[] ubpref, char phase2, double delta, java.lang.String flags) throws XPRSprobException By relaxing a set of selected constraints and bounds of an infeasible problem, it attempts to identify a 'solution' that violates the selected set of constraints and bounds minimally, while satisfying all other constraints and bounds. Among such solution candidates, it selects one that is optimal regarding the original objective function. For the console version, seeREPAIRINFEAS.This function is used in the following examples: - Repair
 - Parameters:
- 
          p_status- The status after the relaxation:- 1: relaxed problem is infeasible;
- 2: relaxed problem is unbounded;
- 3: solution of the relaxed problem regarding the original objective is nonoptimal;
- 4: error (when return code is nonzero);
- 5: numerical instability;
- 6: analysis of an infeasible relaxation was performed, but the relaxation is feasible.
 
- 
          lepref- Array of sizeROWScontaining the preferences for relaxing the less or equal side of row.
- 
          gepref- Array of sizeROWScontaining the preferences for relaxing the greater or equal side of a row.
- 
          lbpref- Array of sizeCOLScontaining the preferences for relaxing lower bounds.
- 
          ubpref- Array of sizeCOLScontaining preferences for relaxing upper bounds.
- 
          phase2- Controls the second phase of optimization:- o: use the objective sense of the original problem (default);
- x: maximize the relaxed problem using the original objective;
- f: skip optimization regarding the original objective;
- n: minimize the relaxed problem using the original objective;
- i: if the relaxation is infeasible, generate an irreducible infeasible subset for the analys of the problem;
- a: if the relaxation is infeasible, generate all irreducible infeasible subsets for the analys of the problem.
 
- 
          delta- The relaxation multiplier in the second phase -1.
- 
          flags- Specifies flags to be passed to the Optimizer.
- Throws:
- 
          XPRSprobException
 
 -  repairWeightedInfeaspublic int repairWeightedInfeas(double[] lepref, double[] gepref, double[] lbpref, double[] ubpref, char phase2, double delta, java.lang.String flags)Convenience wrapper forrepairWeightedInfeas(com.dashoptimization.IntHolder,double[],double[],double[],double[],char,double,String)that returns the output argument.This function is used in the following examples: - Repair
 - Parameters:
- 
          lepref- Array of sizeROWScontaining the preferences for relaxing the less or equal side of row.
- 
          gepref- Array of sizeROWScontaining the preferences for relaxing the greater or equal side of a row.
- 
          lbpref- Array of sizeCOLScontaining the preferences for relaxing lower bounds.
- 
          ubpref- Array of sizeCOLScontaining preferences for relaxing upper bounds.
- 
          phase2- Controls the second phase of optimization:- o: use the objective sense of the original problem (default);
- x: maximize the relaxed problem using the original objective;
- f: skip optimization regarding the original objective;
- n: minimize the relaxed problem using the original objective;
- i: if the relaxation is infeasible, generate an irreducible infeasible subset for the analys of the problem;
- a: if the relaxation is infeasible, generate all irreducible infeasible subsets for the analys of the problem.
 
- 
          delta- The relaxation multiplier in the second phase -1.
- 
          flags- Specifies flags to be passed to the Optimizer.
- Returns:
- The value that the wrapped function would return in p_status.
 
 -  repairWeightedInfeasBoundspublic void repairWeightedInfeasBounds(IntHolder p_status, double[] lepref, double[] gepref, double[] lbpref, double[] ubpref, double[] lerelax, double[] gerelax, double[] lbrelax, double[] ubrelax, char phase2, double delta, java.lang.String flags) throws XPRSprobException An extended version ofrepairWeightedInfeasthat allows for bounding the level of relaxation allowed.- Parameters:
- 
          p_status- The status after the relaxation:- 1: relaxed problem is infeasible;
- 2: relaxed problem is unbounded;
- 3: solution of the relaxed problem regarding the original objective is nonoptimal;
- 4: error (when return code is nonzero);
- 5: numerical instability;
- 6: analysis of an infeasible relaxation was performed, but the relaxation is feasible.
 
- 
          lepref- Array of sizeROWScontaining the preferences for relaxing the less or equal side of row. For the console use-lrpvalue.
- 
          gepref- Array of sizeROWScontaining the preferences for relaxing the greater or equal side of a row. For the console use-grpvalue.
- 
          lbpref- Array of sizeCOLScontaining the preferences for relaxing lower bounds. For the console use-lbpvalue.
- 
          ubpref- Array of sizeCOLScontaining preferences for relaxing upper bounds. For the console use-ubpvalue.
- 
          lerelax- Array of sizeROWScontaining the upper bounds on the amount the less or equal side of a row can be relaxed. For the console use-lrbvalue.
- 
          gerelax- Array of sizeROWScontaining the upper bounds on the amount the greater or equal side of a row can be relaxed. For the console use-grbvalue.
- 
          lbrelax- Array of sizeCOLScontaining the upper bounds on the amount the lower bounds can be relaxed. For the console use-lbbvalue.
- 
          ubrelax- Array of sizeCOLScontaining the upper bounds on the amount the upper bounds can be relaxed. For the console use-ubbvalue.
- 
          phase2- Controls the second phase of optimization:- o: use the objective sense of the original problem (default);
- x: maximize the relaxed problem using the original objective;
- f: skip optimization regarding the original objective;
- n: minimize the relaxed problem using the original objective;
- i: if the relaxation is infeasible, generate an irreducible infeasible subset for the analys of the problem;
- a: if the relaxation is infeasible, generate all irreducible infeasible subsets for the analys of the problem.
 
- 
          delta- The relaxation multiplier in the second phase -1.
- 
          flags- Specifies flags to be passed to the Optimizer.
- Throws:
- 
          XPRSprobException
 
 -  repairWeightedInfeasBoundspublic int repairWeightedInfeasBounds(double[] lepref, double[] gepref, double[] lbpref, double[] ubpref, double[] lerelax, double[] gerelax, double[] lbrelax, double[] ubrelax, char phase2, double delta, java.lang.String flags)Convenience wrapper forrepairWeightedInfeasBounds(com.dashoptimization.IntHolder,double[],double[],double[],double[],double[],double[],double[],double[],char,double,String)that returns the output argument.- Parameters:
- 
          lepref- Array of sizeROWScontaining the preferences for relaxing the less or equal side of row. For the console use-lrpvalue.
- 
          gepref- Array of sizeROWScontaining the preferences for relaxing the greater or equal side of a row. For the console use-grpvalue.
- 
          lbpref- Array of sizeCOLScontaining the preferences for relaxing lower bounds. For the console use-lbpvalue.
- 
          ubpref- Array of sizeCOLScontaining preferences for relaxing upper bounds. For the console use-ubpvalue.
- 
          lerelax- Array of sizeROWScontaining the upper bounds on the amount the less or equal side of a row can be relaxed. For the console use-lrbvalue.
- 
          gerelax- Array of sizeROWScontaining the upper bounds on the amount the greater or equal side of a row can be relaxed. For the console use-grbvalue.
- 
          lbrelax- Array of sizeCOLScontaining the upper bounds on the amount the lower bounds can be relaxed. For the console use-lbbvalue.
- 
          ubrelax- Array of sizeCOLScontaining the upper bounds on the amount the upper bounds can be relaxed. For the console use-ubbvalue.
- 
          phase2- Controls the second phase of optimization:- o: use the objective sense of the original problem (default);
- x: maximize the relaxed problem using the original objective;
- f: skip optimization regarding the original objective;
- n: minimize the relaxed problem using the original objective;
- i: if the relaxation is infeasible, generate an irreducible infeasible subset for the analys of the problem;
- a: if the relaxation is infeasible, generate all irreducible infeasible subsets for the analys of the problem.
 
- 
          delta- The relaxation multiplier in the second phase -1.
- 
          flags- Specifies flags to be passed to the Optimizer.
- Returns:
- The value that the wrapped function would return in p_status.
 
 -  repairInfeaspublic void repairInfeas(IntHolder p_status, char penalty, char phase2, char flags, double lepref, double gepref, double lbpref, double ubpref, double delta) throws XPRSprobException Provides a simplified interface forrepairWeightedInfeas.- Parameters:
- 
          p_status- The status after the relaxation:- 0: relaxed optimum found;
- 1: relaxed problem is infeasible;
- 2: relaxed problem is unbounded;
- 3: solution of the relaxed problem regarding the original objective is nonoptimal;
- 4: error (when return code is nonzero);
- 5: numerical instability;
- 6: analysis of an infeasible relaxation was performed, but the relaxation is feasible.
 
- 
          penalty- The type of penalties created from the preferences:- c: each penalty is the reciprocal of the preference (default);
- s: the penalties are placed in the scaled problem.
 
- 
          phase2- Controls the second phase of optimization:- o: use the objective sense of the original problem (default);
- x: maximize the relaxed problem using the original objective;
- f: skip optimization regarding the original objective;
- n: minimize the relaxed problem using the original objective;
- i: if the relaxation is infeasible, generate an irreducible infeasible subset for the analys of the problem;
- a: if the relaxation is infeasible, generate all irreducible infeasible subsets for the analys of the problem.
 
- 
          flags- Specifies what type of solve should be done:- g: solve as MIP (default);
- l: solve as a linear model ignoring the discreteness of variables;
- x: call the global solver.
 
- 
          lepref- Preference for relaxing the less or equal side of row.
- 
          gepref- Preference for relaxing the greater or equal side of a row.
- 
          lbpref- Preferences for relaxing lower bounds.
- 
          ubpref- Preferences for relaxing upper bounds.
- 
          delta- The relaxation multiplier in the second phase -1. For console use-dvalue. A positive value means a relative relaxation by multiplying the first phase objective with (delta-1), while a negative value means an absolute relaxation, by addingabs(delta)to the first phase objective.
- Throws:
- 
          XPRSprobException
 
 -  repairInfeaspublic int repairInfeas(char penalty, char phase2, char flags, double lepref, double gepref, double lbpref, double ubpref, double delta)Convenience wrapper forrepairInfeas(com.dashoptimization.IntHolder,char,char,char,double,double,double,double,double)that returns the output argument.- Parameters:
- 
          penalty- The type of penalties created from the preferences:- c: each penalty is the reciprocal of the preference (default);
- s: the penalties are placed in the scaled problem.
 
- 
          phase2- Controls the second phase of optimization:- o: use the objective sense of the original problem (default);
- x: maximize the relaxed problem using the original objective;
- f: skip optimization regarding the original objective;
- n: minimize the relaxed problem using the original objective;
- i: if the relaxation is infeasible, generate an irreducible infeasible subset for the analys of the problem;
- a: if the relaxation is infeasible, generate all irreducible infeasible subsets for the analys of the problem.
 
- 
          flags- Specifies what type of solve should be done:- g: solve as MIP (default);
- l: solve as a linear model ignoring the discreteness of variables;
- x: call the global solver.
 
- 
          lepref- Preference for relaxing the less or equal side of row.
- 
          gepref- Preference for relaxing the greater or equal side of a row.
- 
          lbpref- Preferences for relaxing lower bounds.
- 
          ubpref- Preferences for relaxing upper bounds.
- 
          delta- The relaxation multiplier in the second phase -1. For console use-dvalue. A positive value means a relative relaxation by multiplying the first phase objective with (delta-1), while a negative value means an absolute relaxation, by addingabs(delta)to the first phase objective.
- Returns:
- The value that the wrapped function would return in p_status.
 
 -  basisStabilitypublic void basisStability(int type, int norm, int scaled, DoubleHolder p_value) throws XPRSprobExceptionCalculates various measures for the stability of the current basis, including the basis condition number.- Parameters:
- 
          type-- 0: Condition number of the basis.
- 1: Stability measure for the solution relative to the current basis.
- 2: Stability measure for the duals relative to the current basis.
- 3: Stability measure for the right hand side relative to the current basis.
- 4: Stability measure for the basic part of the objective relative to the current basis.
 
- 
          norm-- 0: Use the infinity norm.
- 1: Use the 1 norm.
- 2: Use the Euclidian norm for vectors, and the Frobenius norm for matrices.
 
- 
          scaled- If the stability values are to be calculated in the scaled, or the unscaled matrix.
- 
          p_value- Pointer to a double, where the calculated value is to be returned.
- Throws:
- 
          XPRSprobException
 
 -  basisStabilitypublic double basisStability(int type, int norm, int scaled)Convenience wrapper forbasisStability(int,int,int,com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          type-- 0: Condition number of the basis.
- 1: Stability measure for the solution relative to the current basis.
- 2: Stability measure for the duals relative to the current basis.
- 3: Stability measure for the right hand side relative to the current basis.
- 4: Stability measure for the basic part of the objective relative to the current basis.
 
- 
          norm-- 0: Use the infinity norm.
- 1: Use the 1 norm.
- 2: Use the Euclidian norm for vectors, and the Frobenius norm for matrices.
 
- 
          scaled- If the stability values are to be calculated in the scaled, or the unscaled matrix.
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  objSApublic void objSA(int ncols, int[] colind, double[] lower, double[] upper) throws XPRSprobExceptionReturns upper and lower sensitivity ranges for specified objective function coefficients. If the objective coefficients are varied within these ranges the current basis remains optimal and the reduced costs remain valid.- Parameters:
- 
          ncols- Number of objective function coefficients whose sensitivity is sought.
- 
          colind- Integer array of lengthncolscontaining the indices of the columns whose objective function coefficients sensitivity ranges are required.
- 
          lower- Double array of lengthncolswhere the objective function lower range values are to be returned.
- 
          upper- Double array of lengthncolswhere the objective function upper range values are to be returned.
- Throws:
- 
          XPRSprobException
 
 -  bndsapublic void bndsa(int ncols, int[] colind, double[] lblower, double[] lbupper, double[] ublower, double[] ubupper) throws XPRSprobExceptionReturns upper and lower sensitivity ranges for specified variables' lower and upper bounds. If the bounds are varied within these ranges the current basis remains optimal and feasible.- Parameters:
- 
          ncols- Number of variables whose sensitivity is sought.
- 
          colind- Integer array of lengthncolscontaining the indices of the columns whose bounds' ranges are required.
- 
          lblower- Double array of lengthncolswhere the variable lower bound lower range values are to be returned.
- 
          lbupper- Double array of lengthncolswhere the variable lower bound upper range values are to be returned.
- 
          ublower- Double array of lengthncolswhere the variable upper bound lower range values are to be returned.
- 
          ubupper- Double array of lengthncolswhere the variable upper bound upper range values are to be returned.
- Throws:
- 
          XPRSprobException
 
 -  rhsSApublic void rhsSA(int nrows, int[] rowind, double[] lower, double[] upper) throws XPRSprobExceptionReturns upper and lower sensitivity ranges for specified right hand side (RHS) function coefficients. If the RHS coefficients are varied within these ranges the current basis remains optimal and the reduced costs remain valid.- Parameters:
- 
          nrows- The number of RHS coefficients for which sensitivity ranges are required.
- 
          rowind- Integer array of lengthnrowscontaining the indices of the rows whose RHS coefficients sensitivity ranges are required.
- 
          lower- Double array of lengthnrowswhere the RHS lower range values are to be returned.
- 
          upper- Double array of lengthnrowswhere the RHS upper range values are to be returned.
- Throws:
- 
          XPRSprobException
 
 -  addQMatrixpublic void addQMatrix(int row, int ncoefs, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef) throws XPRSprobExceptionAdds a new quadratic matrix into a row defined by triplets.- Parameters:
- 
          row- Index of the row where the quadratic matrix is to be added.
- 
          ncoefs- Number of triplets used to define the quadratic matrix. This may be less than the number of coefficients in the quadratic matrix, since off diagonals and their transposed pairs are defined by one triplet.
- 
          rowqcol1- First index in the triplets.
- 
          rowqcol2- Second index in the triplets.
- 
          rowqcoef- Coefficients in the triplets.
- Throws:
- 
          XPRSprobException
 
 -  addQMatrixpublic void addQMatrix(int row, long ncoefs, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef) throws XPRSprobExceptionAdds a new quadratic matrix into a row defined by triplets.- Parameters:
- 
          row- Index of the row where the quadratic matrix is to be added.
- 
          ncoefs- Number of triplets used to define the quadratic matrix. This may be less than the number of coefficients in the quadratic matrix, since off diagonals and their transposed pairs are defined by one triplet.
- 
          rowqcol1- First index in the triplets.
- 
          rowqcol2- Second index in the triplets.
- 
          rowqcoef- Coefficients in the triplets.
- Throws:
- 
          XPRSprobException
 
 -  delQMatrixpublic void delQMatrix(int row) throws XPRSprobExceptionDeletes the quadratic part of a row or of the objective function.- Parameters:
- 
          row- Index of row from which the quadratic part is to be deleted.
- Throws:
- 
          XPRSprobException
 
 -  loadQCQPpublic void loadQCQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nqrows, int[] qrowind, int[] nrowqcoef, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef) throws XPRSprobExceptionUsed to load a quadratic problem with quadratic side constraints into the Optimizer data structure. Such a problem may have quadratic terms in its objective function as well as in its constraints.- Parameters:
- 
          probname- A string of up toMAXPROBNAMELENGTHcharacters containing a name for the problem.
- 
          ncols- Number of structural columns in the matrix.
- 
          nrows- Number of rows in the matrix (not including the objective row). Objective coefficients must be supplied in theobjcoefarray, and the objective function should not be included in any of the other arrays.
- 
          rowtype- Character array of lengthnrowscontaining the row types:- L: indicates a- <=constraint (use this one for quadratic constraints as well);
- E: indicates an- =constraint;
- G: indicates a- >=constraint;
- R: indicates a range constraint;
- N: indicates a nonbinding constraint.
 
- 
          rhs- Double array of lengthnrowscontaining the right hand side coefficients of the rows. The right hand side value for a range row gives the upper bound on the row.
- 
          rng- Double array of lengthnrowscontaining the range values for range rows. Values for all other rows will be ignored. May be null if there are no ranged constraints. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
- 
          objcoef- Double array of lengthncolscontaining the objective function coefficients. This can benullto set all objective coefficients to 0 (zero).
- 
          start- Integer array containing the offsets in therowindandrowcoefarrays of the start of the elements for each column. This array is of lengthncolsor, ifcollenis null,length ncols+1. Ifcollenis null the extra entry ofstart,start[ncols], contains the position in therowindandrowcoefarrays at which an extra column would start, if it were present. In C, this value is also the length of therowindandrowcoefarrays.
- 
          collen- Integer array of lengthncolscontaining the number of nonzero elements in each column. May be null if all elements are contiguous andstart[ncols]contains the offset where the elements for columnncols+1would start. This array is not required if the non-zero coefficients in therowindandrowcoefarrays are continuous, and thestartarray hasncols+1entries as described above. It may be null if not required.
- 
          rowind- Integer array containing the row indices for the nonzero elements in each column. If the indices are input contiguously, with the columns in ascending order, the length of therowindisstart[ncols-1]+collen[ncols-1]or, ifcollenis null,start[ncols].
- 
          rowcoef- Double array containing the nonzero element values; length as forrowind.
- 
          lb- Double array of lengthncolscontaining the lower bounds on the columns. UseXPRS_MINUSINFINITYto represent a lower bound of minus infinity. If this isnullthen all lower bounds are 0 (zero).
- 
          ub- Double array of lengthncolscontaining the upper bounds on the columns. UseXPRS_PLUSINFINITYto represent an upper bound of plus infinity. It this isnullthen all upper bounds are infinite.
- 
          nobjqcoefs- Number of quadratic terms.
- 
          objqcol1- Integer array of sizenobjqcoefscontaining the column index of the first variable in each quadratic term.
- 
          objqcol2- Integer array of sizenobjqcoefscontaining the column index of the second variable in each quadratic term.
- 
          objqcoef- Double array of sizenobjqcoefscontaining the quadratic coefficients.
- 
          nqrows- Number of rows containing quadratic matrices.
- 
          qrowind- Integer array of sizenqrows, containing the indices of rows with quadratic matrices in them. Note that the rows are expected to be defined inrowtypeas typeL.
- 
          nrowqcoef- Integer array of sizenqrows, containing the number of nonzeros in each quadratic constraint matrix.
- 
          rowqcol1- Integer array of sizenqcelem, wherenqcelemequals the sum of the elements innrowqcoef(i.e. the total number of quadratic matrix elements in all the constraints). It contains the first column indices of the quadratic matrices. Indices for the first matrix are listed from0tonrowqcoef[0]-1, for the second matrix fromnrowqcoef[0]tonrowqcoef[0]+ nrowqcoef[1]-1, etc.
- 
          rowqcol2- Integer array of sizenqcelem, containing the second index for the quadratic constraint matrices.
- 
          rowqcoef- Integer array of sizenqcelem, containing the coefficients for the quadratic constraint matrices.
- Throws:
- 
          XPRSprobException
 
 -  loadQCQPpublic void loadQCQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, long nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nqrows, int[] qrowind, long[] nrowqcoef, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef) throws XPRSprobExceptionUsed to load a quadratic problem with quadratic side constraints into the Optimizer data structure. Such a problem may have quadratic terms in its objective function as well as in its constraints.- Parameters:
- 
          probname- A string of up toMAXPROBNAMELENGTHcharacters containing a name for the problem.
- 
          ncols- Number of structural columns in the matrix.
- 
          nrows- Number of rows in the matrix (not including the objective row). Objective coefficients must be supplied in theobjcoefarray, and the objective function should not be included in any of the other arrays.
- 
          rowtype- Character array of lengthnrowscontaining the row types:- L: indicates a- <=constraint (use this one for quadratic constraints as well);
- E: indicates an- =constraint;
- G: indicates a- >=constraint;
- R: indicates a range constraint;
- N: indicates a nonbinding constraint.
 
- 
          rhs- Double array of lengthnrowscontaining the right hand side coefficients of the rows. The right hand side value for a range row gives the upper bound on the row.
- 
          rng- Double array of lengthnrowscontaining the range values for range rows. Values for all other rows will be ignored. May be null if there are no ranged constraints. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
- 
          objcoef- Double array of lengthncolscontaining the objective function coefficients. This can benullto set all objective coefficients to 0 (zero).
- 
          start- Integer array containing the offsets in therowindandrowcoefarrays of the start of the elements for each column. This array is of lengthncolsor, ifcollenis null,length ncols+1. Ifcollenis null the extra entry ofstart,start[ncols], contains the position in therowindandrowcoefarrays at which an extra column would start, if it were present. In C, this value is also the length of therowindandrowcoefarrays.
- 
          collen- Integer array of lengthncolscontaining the number of nonzero elements in each column. May be null if all elements are contiguous andstart[ncols]contains the offset where the elements for columnncols+1would start. This array is not required if the non-zero coefficients in therowindandrowcoefarrays are continuous, and thestartarray hasncols+1entries as described above. It may be null if not required.
- 
          rowind- Integer array containing the row indices for the nonzero elements in each column. If the indices are input contiguously, with the columns in ascending order, the length of therowindisstart[ncols-1]+collen[ncols-1]or, ifcollenis null,start[ncols].
- 
          rowcoef- Double array containing the nonzero element values; length as forrowind.
- 
          lb- Double array of lengthncolscontaining the lower bounds on the columns. UseXPRS_MINUSINFINITYto represent a lower bound of minus infinity. If this isnullthen all lower bounds are 0 (zero).
- 
          ub- Double array of lengthncolscontaining the upper bounds on the columns. UseXPRS_PLUSINFINITYto represent an upper bound of plus infinity. It this isnullthen all upper bounds are infinite.
- 
          nobjqcoefs- Number of quadratic terms.
- 
          objqcol1- Integer array of sizenobjqcoefscontaining the column index of the first variable in each quadratic term.
- 
          objqcol2- Integer array of sizenobjqcoefscontaining the column index of the second variable in each quadratic term.
- 
          objqcoef- Double array of sizenobjqcoefscontaining the quadratic coefficients.
- 
          nqrows- Number of rows containing quadratic matrices.
- 
          qrowind- Integer array of sizenqrows, containing the indices of rows with quadratic matrices in them. Note that the rows are expected to be defined inrowtypeas typeL.
- 
          nrowqcoef- Integer array of sizenqrows, containing the number of nonzeros in each quadratic constraint matrix.
- 
          rowqcol1- Integer array of sizenqcelem, wherenqcelemequals the sum of the elements innrowqcoef(i.e. the total number of quadratic matrix elements in all the constraints). It contains the first column indices of the quadratic matrices. Indices for the first matrix are listed from0tonrowqcoef[0]-1, for the second matrix fromnrowqcoef[0]tonrowqcoef[0]+ nrowqcoef[1]-1, etc.
- 
          rowqcol2- Integer array of sizenqcelem, containing the second index for the quadratic constraint matrices.
- 
          rowqcoef- Integer array of sizenqcelem, containing the coefficients for the quadratic constraint matrices.
- Throws:
- 
          XPRSprobException
 
 -  loadMIQCQPpublic void loadMIQCQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, int[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, int nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nqrows, int[] qrowind, int[] nrowqcoefs, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, int[] setstart, int[] setind, double[] refval) throws XPRSprobExceptionUsed to load a mixed integer quadratic problem with quadratic constraints into the Optimizer data structure. Such a problem may have quadratic terms in its objective function as well as in its constraints. Integer, binary, partial integer, semi-continuous and semi-continuous integer variables can be defined, together with sets of type 1 and 2. The reference row values for the set members are passed as an array rather than specifying a reference row.- Parameters:
- 
          probname- A string of up toMAXPROBNAMELENGTHcharacters containing a name for the problem.
- 
          ncols- Number of structural columns in the matrix.
- 
          nrows- Number of rows in the matrix (not including the objective row). Objective coefficients must be supplied in theobjcoefarray, and the objective function should not be included in any of the other arrays.
- 
          rowtype- Character array of lengthnrowscontaining the row types:- L: indicates a- <=constraint (use this one for quadratic constraints as well);
- E: indicates an- =constraint;
- G: indicates a- >=constraint;
- R: indicates a range constraint;
- N: indicates a nonbinding constraint.
 
- 
          rhs- Double array of lengthnrowscontaining the right hand side coefficients of the rows. The right hand side value for a range row gives the upper bound on the row.
- 
          rng- Double array of lengthnrowscontaining the range values for range rows. Values for all other rows will be ignored. May be null if there are no ranged constraints. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
- 
          objcoef- Double array of lengthncolscontaining the objective function coefficients. This can benullto set all objective coefficients to 0 (zero).
- 
          start- Integer array containing the offsets in therowindandrowcoefarrays of the start of the elements for each column. This array is of lengthncolsor, ifcollenis null,length ncols+1. Ifcollenis null the extra entry ofstart,start[ncols], contains the position in therowindandrowcoefarrays at which an extra column would start, if it were present. In C, this value is also the length of therowindandrowcoefarrays.
- 
          collen- Integer array of lengthncolscontaining the number of nonzero elements in each column. May be null if all elements are contiguous andstart[ncols]contains the offset where the elements for columnncols+1would start. This array is not required if the non-zero coefficients in therowindandrowcoefarrays are continuous, and thestartarray hasncols+1entries as described above. It may be null if not required.
- 
          rowind- Integer array containing the row indices for the nonzero elements in each column. If the indices are input contiguously, with the columns in ascending order, the length of therowindisstart[ncols-1]+collen[ncols-1]or, ifcollenis null,start[ncols].
- 
          rowcoef- Double array containing the nonzero element values; length as forrowind.
- 
          lb- Double array of lengthncolscontaining the lower bounds on the columns. UseXPRS_MINUSINFINITYto represent a lower bound of minus infinity. If this isnullthen all lower bounds are 0 (zero).
- 
          ub- Double array of lengthncolscontaining the upper bounds on the columns. UseXPRS_PLUSINFINITYto represent an upper bound of plus infinity. It this isnullthen all upper bounds are infinite.
- 
          nobjqcoefs- Number of quadratic terms.
- 
          objqcol1- Integer array of sizenobjqcoefscontaining the column index of the first variable in each quadratic term.
- 
          objqcol2- Integer array of sizenobjqcoefscontaining the column index of the second variable in each quadratic term.
- 
          objqcoef- Double array of sizenobjqcoefscontaining the quadratic coefficients.
- 
          nqrows- Number of rows containing quadratic matrices.
- 
          qrowind- Integer array of sizenqrows, containing the indices of rows with quadratic matrices in them. Note that the rows are expected to be defined inrowtypeas typeL.
- 
          nrowqcoefs- Integer array of sizenqrows, containing the number of nonzeros in each quadratic constraint matrix.
- 
          rowqcol1- Integer array of sizenqcelem, wherenqcelemequals the sum of the elements innrowqcoefs(i.e. the total number of quadratic matrix elements in all the constraints). It contains the first column indices of the quadratic matrices. Indices for the first matrix are listed from0tonrowqcoefs[0]-1, for the second matrix fromnrowqcoefs[0]tonrowqcoefs[0]+ nrowqcoefs[1]-1, etc.
- 
          rowqcol2- Integer array of sizenqcelem, containing the second index for the quadratic constraint matrices.
- 
          rowqcoef- Integer array of sizenqcelem, containing the coefficients for the quadratic constraint matrices.
- 
          nentities- Number of binary, integer, semi-continuous, semi-continuous integer and partial integer entities.
- 
          nsets- Number of SOS1 and SOS2 sets.
- 
          coltype- Character array of lengthnentitiescontaining the entity types:- B: binary variables;
- I: integer variables;
- P: partial integer variables;
- S: semi-continuous variables;
- R: semi-continuous integer variables.
 
- 
          entind- Integer array of lengthnentitiescontaining the column indices of the MIP entities.
- 
          limit- Double array of lengthnentitiescontaining the integer limits for the partial integer variables and lower bounds for semi-continuous and semi-continuous integer variables (any entries in the positions corresponding to binary and integer variables will be ignored). May benullif not required.
- 
          settype- Character array of lengthnsetscontaining the set types:- 1: SOS1 type sets;
- 2: SOS2 type sets.
 nullif not required.
- 
          setstart- Integer array containing the offsets in thesetindandrefvalarrays indicating the start of the sets. This array is of lengthnsets+1, the last member containing the offset where setnsets+1would start. May benullif not required.
- 
          setind- Integer array of lengthsetstart[nsets]-1containing the columns in each set. May benullif not required.
- 
          refval- Double array of lengthsetstart[nsets]-1containing the reference row entries for each member of the sets. These define the order for SOS2 constraints and may be used in branching for both types. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  loadMIQCQPpublic void loadMIQCQP(java.lang.String probname, int ncols, int nrows, byte[] rowtype, double[] rhs, double[] rng, double[] objcoef, long[] start, int[] collen, int[] rowind, double[] rowcoef, double[] lb, double[] ub, long nobjqcoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef, int nqrows, int[] qrowind, long[] nrowqcoefs, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef, int nentities, int nsets, byte[] coltype, int[] entind, double[] limit, byte[] settype, long[] setstart, int[] setind, double[] refval) throws XPRSprobExceptionUsed to load a mixed integer quadratic problem with quadratic constraints into the Optimizer data structure. Such a problem may have quadratic terms in its objective function as well as in its constraints. Integer, binary, partial integer, semi-continuous and semi-continuous integer variables can be defined, together with sets of type 1 and 2. The reference row values for the set members are passed as an array rather than specifying a reference row.- Parameters:
- 
          probname- A string of up toMAXPROBNAMELENGTHcharacters containing a name for the problem.
- 
          ncols- Number of structural columns in the matrix.
- 
          nrows- Number of rows in the matrix (not including the objective row). Objective coefficients must be supplied in theobjcoefarray, and the objective function should not be included in any of the other arrays.
- 
          rowtype- Character array of lengthnrowscontaining the row types:- L: indicates a- <=constraint (use this one for quadratic constraints as well);
- E: indicates an- =constraint;
- G: indicates a- >=constraint;
- R: indicates a range constraint;
- N: indicates a nonbinding constraint.
 
- 
          rhs- Double array of lengthnrowscontaining the right hand side coefficients of the rows. The right hand side value for a range row gives the upper bound on the row.
- 
          rng- Double array of lengthnrowscontaining the range values for range rows. Values for all other rows will be ignored. May be null if there are no ranged constraints. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
- 
          objcoef- Double array of lengthncolscontaining the objective function coefficients. This can benullto set all objective coefficients to 0 (zero).
- 
          start- Integer array containing the offsets in therowindandrowcoefarrays of the start of the elements for each column. This array is of lengthncolsor, ifcollenis null,length ncols+1. Ifcollenis null the extra entry ofstart,start[ncols], contains the position in therowindandrowcoefarrays at which an extra column would start, if it were present. In C, this value is also the length of therowindandrowcoefarrays.
- 
          collen- Integer array of lengthncolscontaining the number of nonzero elements in each column. May be null if all elements are contiguous andstart[ncols]contains the offset where the elements for columnncols+1would start. This array is not required if the non-zero coefficients in therowindandrowcoefarrays are continuous, and thestartarray hasncols+1entries as described above. It may be null if not required.
- 
          rowind- Integer array containing the row indices for the nonzero elements in each column. If the indices are input contiguously, with the columns in ascending order, the length of therowindisstart[ncols-1]+collen[ncols-1]or, ifcollenis null,start[ncols].
- 
          rowcoef- Double array containing the nonzero element values; length as forrowind.
- 
          lb- Double array of lengthncolscontaining the lower bounds on the columns. UseXPRS_MINUSINFINITYto represent a lower bound of minus infinity. If this isnullthen all lower bounds are 0 (zero).
- 
          ub- Double array of lengthncolscontaining the upper bounds on the columns. UseXPRS_PLUSINFINITYto represent an upper bound of plus infinity. It this isnullthen all upper bounds are infinite.
- 
          nobjqcoefs- Number of quadratic terms.
- 
          objqcol1- Integer array of sizenobjqcoefscontaining the column index of the first variable in each quadratic term.
- 
          objqcol2- Integer array of sizenobjqcoefscontaining the column index of the second variable in each quadratic term.
- 
          objqcoef- Double array of sizenobjqcoefscontaining the quadratic coefficients.
- 
          nqrows- Number of rows containing quadratic matrices.
- 
          qrowind- Integer array of sizenqrows, containing the indices of rows with quadratic matrices in them. Note that the rows are expected to be defined inrowtypeas typeL.
- 
          nrowqcoefs- Integer array of sizenqrows, containing the number of nonzeros in each quadratic constraint matrix.
- 
          rowqcol1- Integer array of sizenqcelem, wherenqcelemequals the sum of the elements innrowqcoefs(i.e. the total number of quadratic matrix elements in all the constraints). It contains the first column indices of the quadratic matrices. Indices for the first matrix are listed from0tonrowqcoefs[0]-1, for the second matrix fromnrowqcoefs[0]tonrowqcoefs[0]+ nrowqcoefs[1]-1, etc.
- 
          rowqcol2- Integer array of sizenqcelem, containing the second index for the quadratic constraint matrices.
- 
          rowqcoef- Integer array of sizenqcelem, containing the coefficients for the quadratic constraint matrices.
- 
          nentities- Number of binary, integer, semi-continuous, semi-continuous integer and partial integer entities.
- 
          nsets- Number of SOS1 and SOS2 sets.
- 
          coltype- Character array of lengthnentitiescontaining the entity types:- B: binary variables;
- I: integer variables;
- P: partial integer variables;
- S: semi-continuous variables;
- R: semi-continuous integer variables.
 
- 
          entind- Integer array of lengthnentitiescontaining the column indices of the MIP entities.
- 
          limit- Double array of lengthnentitiescontaining the integer limits for the partial integer variables and lower bounds for semi-continuous and semi-continuous integer variables (any entries in the positions corresponding to binary and integer variables will be ignored). May benullif not required.
- 
          settype- Character array of lengthnsetscontaining the set types:- 1: SOS1 type sets;
- 2: SOS2 type sets.
 nullif not required.
- 
          setstart- Integer array containing the offsets in thesetindandrefvalarrays indicating the start of the sets. This array is of lengthnsets+1, the last member containing the offset where setnsets+1would start. May benullif not required.
- 
          setind- Integer array of lengthsetstart[nsets]-1containing the columns in each set. May benullif not required.
- 
          refval- Double array of lengthsetstart[nsets]-1containing the reference row entries for each member of the sets. These define the order for SOS2 constraints and may be used in branching for both types. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  addObjpublic void addObj(int ncols, int[] colind, double[] objcoef, int priority, double weight) throws XPRSprobExceptionAppends an objective function with the given coefficients to a multi-objective problem. The weight and priority of the objective are set to the given values.- Parameters:
- 
          ncols- Number of objective function coefficient elements to add.
- 
          colind- Integer array of lengthncolscontaining the indices of the columns whose objective coefficients will change. An index of-1indicates that the fixed part of the objective function on the right hand side should change.
- 
          objcoef- Double array of lengthncolsgiving the new objective function coefficients.
- 
          priority- The priority for the objective function. During optimization, objectives with the same priority are combined together in a weighted sum.
- 
          weight- The weight for the objective function. If the weight is negative, the sense of this objective is reversed.
- Throws:
- 
          XPRSprobException
 
 -  chgObjNpublic void chgObjN(int objidx, int ncols, int[] colind, double[] objcoef) throws XPRSprobExceptionModifies one or more coefficients of an objective function in a multi-objective problem. If the objective already exists, any coefficients not present in thecolindandobjcoefarrays will unchanged. If the objective does not exist, it will be added to the problem.This function is used in the following examples: - GoalProg
 - Parameters:
- 
          objidx- Index of the objective function to add or modify.
- 
          ncols- Number of objective function coefficient elements to change.
- 
          colind- Integer array of lengthncolscontaining the indices of the columns whose objective coefficients will change. An index of-1indicates that the fixed part of the objective function on the right hand side should change.
- 
          objcoef- Double array of lengthncolsgiving the new objective function coefficients.
- Throws:
- 
          XPRSprobException
 
 -  delObjpublic void delObj(int objidx) throws XPRSprobExceptionRemoves an objective function from a multi-objective problem. Any objectives withindex > objidxwill be shifted down. Deleting the last objective function in the problem causes all the objective coefficients to be zeroed, butOBJECTIVESremains set to1.- Parameters:
- 
          objidx- Index of the objective to remove.
- Throws:
- 
          XPRSprobException
 
 -  copyCallBackspublic void copyCallBacks(XPRSprob src) throws XPRSprobException Copies callback functions defined for one problem to another.- Parameters:
- 
          src- The problem from which the callbacks are copied.
- Throws:
- 
          XPRSprobException
 
 -  copyControlspublic void copyControls(XPRSprob src) throws XPRSprobException Copies controls defined for one problem to another.- Parameters:
- 
          src- The problem from which the controls are copied.
- Throws:
- 
          XPRSprobException
 
 -  destroyProb@Deprecated public void destroyProb() throws XPRSprobExceptionDeprecated.useclose()instead.- Throws:
- 
          XPRSprobException
 
 -  interruptpublic void interrupt(XPRSenumerations.StopType reason) throws XPRSprobException Interrupts the Optimizer algorithms.- Parameters:
- 
          reason- The reason for stopping. Possible reasons are:- XPRS_STOP_NONE: do not stop;
- XPRS_STOP_TIMELIMIT: time limit hit;
- XPRS_STOP_CTRLC: control C hit;
- XPRS_STOP_NODELIMIT: node limit hit;
- XPRS_STOP_ITERLIMIT: iteration limit hit;
- XPRS_STOP_MIPGAP: MIP gap is sufficiently small;
- XPRS_STOP_SOLLIMIT: solution limit hit;
- XPRS_STOP_USER: user interrupt;
- >= 1000: user defined value.
 
- Throws:
- 
          XPRSprobException
 
 -  interruptpublic void interrupt() throws XPRSprobExceptionConvenience wrapper forinterrupt(XPRSenumerations.StopType).- Throws:
- 
          XPRSprobException
- See Also:
- 
          interrupt(XPRSenumerations.StopType)
 
 -  getProbNamepublic void getProbName(StringHolder name) throws XPRSprobException Returns the current problem name.This function is used in the following examples: - AddMipSol
- Tableau
 - Parameters:
- 
          name- A string of up toMAXPROBNAMELENGTHcharacters to contain the current problem name.
- Throws:
- 
          XPRSprobException
 
 -  getProbNamepublic java.lang.String getProbName() throws XPRSprobExceptionConvenience wrapper forgetProbName(com.dashoptimization.StringHolder).- Returns:
- 
          The value that would be returned by 
          getProbName(com.dashoptimization.StringHolder)as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getProbName(com.dashoptimization.StringHolder)
 
 -  setIntControlpublic void setIntControl(int control, int value) throws XPRSprobExceptionSets the value of a given integer control parameter.This function is used in the following examples: - Callback
- IISExample
 - Parameters:
- 
          control- Control parameter whose value is to be set. A full list of all controls may be found in , or from the list in thexprs.hheader file.
- 
          value- Value to which the control parameter is to be set.
- Throws:
- 
          XPRSprobException
 
 -  setLongControlpublic void setLongControl(int control, long value) throws XPRSprobExceptionSets the value of a given integer control parameter.- Parameters:
- 
          control- Control parameter whose value is to be set. A full list of all controls may be found in , or from the list in thexprs.hheader file.
- 
          value- Value to which the control parameter is to be set.
- Throws:
- 
          XPRSprobException
 
 -  setDblControlpublic void setDblControl(int control, double value) throws XPRSprobExceptionSets the value of a given double control parameter.- Parameters:
- 
          control- Control parameter whose value is to be set. A full list of all controls may be found in , or from the list in thexprs.hheader file.
- 
          value- Value to which the control parameter is to be set.
- Throws:
- 
          XPRSprobException
 
 -  setStrControlpublic void setStrControl(int control, java.lang.String value) throws XPRSprobExceptionUsed to set the value of a given string control parameter.- Parameters:
- 
          control- Control parameter whose value is to be set. A full list of all controls may be found in , or from the list in thexprs.hheader file.
- 
          value- A string containing the value to which the control is to be set (plus a null terminator).
- Throws:
- 
          XPRSprobException
 
 -  getIntControlpublic void getIntControl(int control, IntHolder p_value) throws XPRSprobExceptionEnables users to recover the values of various integer control parameters- Parameters:
- 
          control- Control parameter whose value is to be returned. A full list of all controls may be found in Chapter , or from the list in thexprs.hheader file.
- 
          p_value- Pointer to an integer where the value of the control will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getIntControlpublic int getIntControl(int control) Convenience wrapper forgetIntControl(int,com.dashoptimization.IntHolder)that returns the output argument.- Parameters:
- 
          control- Control parameter whose value is to be returned. A full list of all controls may be found in Chapter , or from the list in thexprs.hheader file.
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  getLongControlpublic void getLongControl(int control, LongHolder p_value) throws XPRSprobExceptionEnables users to recover the values of various integer control parameters- Parameters:
- 
          control- Control parameter whose value is to be returned. A full list of all controls may be found in Chapter , or from the list in thexprs.hheader file.
- 
          p_value- Pointer to an integer where the value of the control will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getLongControlpublic long getLongControl(int control) Convenience wrapper forgetLongControl(int,com.dashoptimization.LongHolder)that returns the output argument.- Parameters:
- 
          control- Control parameter whose value is to be returned. A full list of all controls may be found in Chapter , or from the list in thexprs.hheader file.
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  getDblControlpublic void getDblControl(int control, DoubleHolder p_value) throws XPRSprobExceptionRetrieves the value of a given double control parameter.- Parameters:
- 
          control- Control parameter whose value is to be returned. A full list of all controls may be found in Chapter , or from the list in thexprs.hheader file.
- 
          p_value- Pointer to the location where the control value will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getDblControlpublic double getDblControl(int control) Convenience wrapper forgetDblControl(int,com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          control- Control parameter whose value is to be returned. A full list of all controls may be found in Chapter , or from the list in thexprs.hheader file.
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  getStringControlpublic void getStringControl(int control, StringHolder value, int maxbytes, IntHolder p_nbytes) throws XPRSprobExceptionReturns the value of a given string control parameters.- Parameters:
- 
          control- Control parameter whose value is to be returned. A full list of all controls may be found in , or from the list in thexprs.hheader file.
- 
          value- Pointer to a string where the value of the control (plus null terminator) will be returned.
- 
          maxbytes- Maximum number of bytes to be written into the value argument.
- 
          p_nbytes- Returns the length of the string control including the null terminator.
- Throws:
- 
          XPRSprobException
 
 -  getIntAttribpublic void getIntAttrib(int attrib, IntHolder p_value) throws XPRSprobExceptionEnables users to recover the values of various integer problem attributes. Problem attributes are set during loading and optimization of a problem.This function is used in the following examples: - IISExample
 - Parameters:
- 
          attrib- Problem attribute whose value is to be returned. A full list of all problem attributes may be found in Chapter , or from the list in thexprs.hheader file.
- 
          p_value- Pointer to an integer where the value of the problem attribute will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getIntAttribpublic int getIntAttrib(int attrib) Convenience wrapper forgetIntAttrib(int,com.dashoptimization.IntHolder)that returns the output argument.This function is used in the following examples: - IISExample
 - Parameters:
- 
          attrib- Problem attribute whose value is to be returned. A full list of all problem attributes may be found in Chapter , or from the list in thexprs.hheader file.
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  getLongAttribpublic void getLongAttrib(int attrib, LongHolder p_value) throws XPRSprobExceptionEnables users to recover the values of various integer problem attributes. Problem attributes are set during loading and optimization of a problem.- Parameters:
- 
          attrib- Problem attribute whose value is to be returned. A full list of all problem attributes may be found in Chapter , or from the list in thexprs.hheader file.
- 
          p_value- Pointer to an integer where the value of the problem attribute will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getLongAttribpublic long getLongAttrib(int attrib) Convenience wrapper forgetLongAttrib(int,com.dashoptimization.LongHolder)that returns the output argument.- Parameters:
- 
          attrib- Problem attribute whose value is to be returned. A full list of all problem attributes may be found in Chapter , or from the list in thexprs.hheader file.
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  getStrStringAttribpublic void getStrStringAttrib(int attrib, StringHolder value, int maxbytes, IntHolder p_nbytes) throws XPRSprobExceptionEnables users to recover the values of various string problem attributes. Problem attributes are set during loading and optimization of a problem.- Parameters:
- 
          attrib- Problem attribute whose value is to be returned. A full list of all problem attributes may be found in , or from the list in thexprs.hheader file.
- 
          value- Pointer to a string where the value of the attribute (plus null terminator) will be returned.
- 
          maxbytes- Maximum number of bytes to be written into the cgval argument.
- 
          p_nbytes- Returns the length of the string control including the null terminator.
- Throws:
- 
          XPRSprobException
 
 -  getDblAttribpublic void getDblAttrib(int attrib, DoubleHolder p_value) throws XPRSprobExceptionEnables users to retrieve the values of various double problem attributes. Problem attributes are set during loading and optimization of a problem.- Parameters:
- 
          attrib- Problem attribute whose value is to be returned. A full list of all available problem attributes may be found in Chapter , or from the list in thexprs.hheader file.
- 
          p_value- Pointer to a double where the value of the problem attribute will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getDblAttribpublic double getDblAttrib(int attrib) Convenience wrapper forgetDblAttrib(int,com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          attrib- Problem attribute whose value is to be returned. A full list of all available problem attributes may be found in Chapter , or from the list in thexprs.hheader file.
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  getControlInfopublic void getControlInfo(java.lang.String name, IntHolder p_id, XPRSenumerationHolders.ParameterType p_type) throws XPRSprobExceptionAccesses the id number and the type information of a control given its name. A control name may be for exampleXPRS_PRESOLVE. Names are case-insensitive and may or may not have theXPRS_prefix. The id number is the constant used to identify the control for calls to functions such asgetIntControl. The function will return an id number of0and a type value ofXPRS_TYPE_NOTDEFINEDif the name is not recognized as a control name. Note that this will occur if the name is an attribute name and not a control name.- Parameters:
- 
          name- The name of the control to be queried. Names are case-insensitive and may or may not have theXPRS_prefix. A full list of all controls may be found in , or from the list in thexprs.hheader file.
- 
          p_id- Pointer to an integer where the id number will be returned.
- 
          p_type- Pointer to an integer where the type information will be returned. The returned value will be one of the following constants fromxprs.h:XPRS_TYPE_NOTDEFINED The name was not recognized. XPRS_TYPE_INT 32 bit integer. XPRS_TYPE_INT64 64 bit integer. XPRS_TYPE_DOUBLE Double precision floating point. XPRS_TYPE_STRING String. 
- Throws:
- 
          XPRSprobException
 
 -  getAttribInfopublic void getAttribInfo(java.lang.String name, IntHolder p_id, XPRSenumerationHolders.ParameterType p_type) throws XPRSprobExceptionAccesses the id number and the type information of an attribute given its name. An attribute name may be for exampleXPRS_ROWS. Names are case-insensitive and may or may not have theXPRS_prefix. The id number is the constant used to identify the attribute for calls to functions such asgetIntAttrib. The type information returned will be one of the below integer constants defined in thexprs.hheader file. The function will return an id number of 0 and a type value ofXPRS_TYPE_NOTDEFINEDif the name is not recognized as an attribute name. Note that this will occur if the name is a control name and not an attribute name.- Parameters:
- 
          name- The name of the attribute to be queried. Names are case-insensitive and may or may not have theXPRS_prefix. A full list of all attributes may be found in Chapter , or from the list in thexprs.hheader file.
- 
          p_id- Pointer to an integer where the id number will be returned.
- 
          p_type- Pointer to an integer where the type id will be returned. The value will be one of the following constants fromxprs.h:XPRS_TYPE_NOTDEFINED The name was not recognized. XPRS_TYPE_INT 32 bit integer. XPRS_TYPE_INT64 64 bit integer. XPRS_TYPE_DOUBLE Double precision floating point. XPRS_TYPE_STRING String. 
- Throws:
- 
          XPRSprobException
 
 -  getIndexpublic void getIndex(int type, java.lang.String name, IntHolder p_index) throws XPRSprobExceptionReturns the index for a specified row or column name.This function is used in the following examples: - GlobalObjectiveParametrics
- GlobalRHSParametrics
 - Parameters:
- 
          type-- XPRS_NAMES_ROW:- (=1)if row index is required;
- XPRS_NAMES_COLUMN:- (=2)if column index is required;
- XPRS_NAMES_SET:- (=3)if set index is required;
- XPRS_NAMES_PWLCONS:- (=4)if piecewise linear constraint index is required;
- XPRS_NAMES_GENCONS:- (=5)if general constraint index is required;
- XPRS_NAMES_OBJECTIVE:- (=6)if objective index is required;
- XPRS_NAMES_USERFUNC:- (=7)if user function index is required;
- XPRS_NAMES_INTERNALFUNC:- (=8)if an internal function index is required.
 
- 
          name- Null terminated string.
- 
          p_index- Pointer of the integer where the row or column index number will be returned. A value of-1will be returned if the row or column does not exist.
- Throws:
- 
          XPRSprobException
 
 -  getIndexpublic int getIndex(int type, java.lang.String name)Convenience wrapper forgetIndex(int,String,com.dashoptimization.IntHolder)that returns the output argument.This function is used in the following examples: - GlobalObjectiveParametrics
- GlobalRHSParametrics
 - Parameters:
- 
          type-- XPRS_NAMES_ROW:- (=1)if row index is required;
- XPRS_NAMES_COLUMN:- (=2)if column index is required;
- XPRS_NAMES_SET:- (=3)if set index is required;
- XPRS_NAMES_PWLCONS:- (=4)if piecewise linear constraint index is required;
- XPRS_NAMES_GENCONS:- (=5)if general constraint index is required;
- XPRS_NAMES_OBJECTIVE:- (=6)if objective index is required;
- XPRS_NAMES_USERFUNC:- (=7)if user function index is required;
- XPRS_NAMES_INTERNALFUNC:- (=8)if an internal function index is required.
 
- 
          name- Null terminated string.
- Returns:
- The value that the wrapped function would return in p_index.
 
 -  getLastErrorpublic void getLastError(StringHolder errmsg) throws XPRSprobException Returns the error message corresponding to the last error encountered by a library function.- Parameters:
- 
          errmsg- A 512 character buffer where the last error message will be returned. If the message is longer than 512 characters then it will be truncated. The message will always be terminated by aNULcharacter.
- Throws:
- 
          XPRSprobException
 
 -  getLastErrorpublic java.lang.String getLastError() throws XPRSprobExceptionConvenience wrapper forgetLastError(com.dashoptimization.StringHolder).- Specified by:
- 
          getLastErrorin classXPRSobject
- Returns:
- 
          The value that would be returned by 
          getLastError(com.dashoptimization.StringHolder)as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getLastError(com.dashoptimization.StringHolder)
 
 -  setObjIntControlpublic void setObjIntControl(int objidx, XPRSenumerations.ObjControl control, int value) throws XPRSprobExceptionSets the value of a given integer control parameter associated with an objective. These parameters control how the objective is treated during multi-objective optimization.This function is used in the following examples: - GoalProg
 - Parameters:
- 
          objidx- Index of the objective to modify.
- 
          control- Control parameter whose value is to be modified. Must be one of:- XPRS_OBJECTIVE_PRIORITY: set the priority of the given objective.
 
- 
          value- Value to which the control parameter is to be set.
- Throws:
- 
          XPRSprobException
 
 -  setObjDblControlpublic void setObjDblControl(int objidx, XPRSenumerations.ObjControl control, double value) throws XPRSprobExceptionSets the value of a given double control parameter associated with an objective. These parameters control how the objective is treated during multi-objective optimization.This function is used in the following examples: - GoalProg
 - Parameters:
- 
          objidx- Index of the objective to modify.
- 
          control- Control parameter whose value is to be modified. Must be one of:- XPRS_OBJECTIVE_WEIGHT: set the weight of the given objective;
- XPRS_OBJECTIVE_ABSTOL: set the absolute tolerance of the given objective;
- XPRS_OBJECTIVE_RELTOL: set the relative tolerance of the given objective;
- XPRS_OBJECTIVE_RHS: set the constant term of the given objective.
 
- 
          value- Value to which the control parameter is to be set.
- Throws:
- 
          XPRSprobException
 
 -  getObjIntControlpublic void getObjIntControl(int objidx, XPRSenumerations.ObjControl control, IntHolder p_value) throws XPRSprobExceptionRetrieves the value of a given integer control parameter associated with an objective. These parameters control how the objective is treated during multi-objective optimization.- Parameters:
- 
          objidx- Index of the objective to query.
- 
          control- Control parameter whose value is to be returned. Must be one of:- XPRS_OBJECTIVE_PRIORITY: get the priority of the given objective.
 
- 
          p_value- Pointer to an integer where the control value will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getObjIntControlpublic int getObjIntControl(int objidx, XPRSenumerations.ObjControl control)Convenience wrapper forgetObjIntControl(int,XPRSenumerations.ObjControl,com.dashoptimization.IntHolder)that returns the output argument.- Parameters:
- 
          objidx- Index of the objective to query.
- 
          control- Control parameter whose value is to be returned. Must be one of:- XPRS_OBJECTIVE_PRIORITY: get the priority of the given objective.
 
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  getObjDblControlpublic void getObjDblControl(int objidx, XPRSenumerations.ObjControl control, DoubleHolder p_value) throws XPRSprobExceptionRetrieves the value of a given double control parameter associated with an objective function. These parameters control how the objective is treated during multi-objective optimization.- Parameters:
- 
          objidx- Index of the objective to query.
- 
          control- Control parameter whose value is to be returned. Must be one of:- XPRS_OBJECTIVE_WEIGHT: get the weight of the given objective;
- XPRS_OBJECTIVE_ABSTOL: get the absolute tolerance of the given objective;
- XPRS_OBJECTIVE_RELTOL: get the relative tolerance of the given objective;
- XPRS_OBJECTIVE_RHS: get the constant term of the given objective.
 
- 
          p_value- Pointer to a double where the control value will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getObjDblControlpublic double getObjDblControl(int objidx, XPRSenumerations.ObjControl control)Convenience wrapper forgetObjDblControl(int,XPRSenumerations.ObjControl,com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          objidx- Index of the objective to query.
- 
          control- Control parameter whose value is to be returned. Must be one of:- XPRS_OBJECTIVE_WEIGHT: get the weight of the given objective;
- XPRS_OBJECTIVE_ABSTOL: get the absolute tolerance of the given objective;
- XPRS_OBJECTIVE_RELTOL: get the relative tolerance of the given objective;
- XPRS_OBJECTIVE_RHS: get the constant term of the given objective.
 
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  getObjIntAttribpublic void getObjIntAttrib(int solveidx, int attrib, IntHolder p_value) throws XPRSprobExceptionRetrieves the value of a given integer attribute associated with a multi-objective solve. When solving a multi-objective problem, several objectives might be optimized in sequence. After each solve, the problem attributes are captured so that they can be queried afterwards.- Parameters:
- 
          solveidx- Index of the solve to query. Must be between0andSOLVEDOBJS-1.
- 
          attrib- Problem attribute whose value is to be returned. A full list of all problem attributes may be found in , or from the list in thexprs.hheader file.
- 
          p_value- Pointer to an integer where attribute value will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getObjIntAttribpublic int getObjIntAttrib(int solveidx, int attrib)Convenience wrapper forgetObjIntAttrib(int,int,com.dashoptimization.IntHolder)that returns the output argument.- Parameters:
- 
          solveidx- Index of the solve to query. Must be between0andSOLVEDOBJS-1.
- 
          attrib- Problem attribute whose value is to be returned. A full list of all problem attributes may be found in , or from the list in thexprs.hheader file.
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  getObjIntAttribpublic void getObjIntAttrib(int solveidx, int attrib, LongHolder p_value) throws XPRSprobExceptionRetrieves the value of a given integer attribute associated with a multi-objective solve. When solving a multi-objective problem, several objectives might be optimized in sequence. After each solve, the problem attributes are captured so that they can be queried afterwards.- Parameters:
- 
          solveidx- Index of the solve to query. Must be between0andSOLVEDOBJS-1.
- 
          attrib- Problem attribute whose value is to be returned. A full list of all problem attributes may be found in , or from the list in thexprs.hheader file.
- 
          p_value- Pointer to an integer where attribute value will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getObjLongAttribpublic long getObjLongAttrib(int solveidx, int attrib)Convenience wrapper forgetObjIntAttrib(int,int,com.dashoptimization.LongHolder)that returns the output argument.- Parameters:
- 
          solveidx- Index of the solve to query. Must be between0andSOLVEDOBJS-1.
- 
          attrib- Problem attribute whose value is to be returned. A full list of all problem attributes may be found in , or from the list in thexprs.hheader file.
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  getObjDblAttribpublic void getObjDblAttrib(int solveidx, int attrib, DoubleHolder p_value) throws XPRSprobExceptionRetrieves the value of a given double attribute associated with a multi-objective solve. When solving a multi-objective problem, several objectives might be optimized in sequence. After each solve, the problem attributes are captured so that they can be queried afterwards.- Parameters:
- 
          solveidx- Index of the solve to query. Must be between0andSOLVEDOBJS-1.
- 
          attrib- Problem attribute whose value is to be returned. A full list of all problem attributes may be found in , or from the list in thexprs.hheader file.
- 
          p_value- Pointer to a double where attribute value will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getObjDblAttribpublic double getObjDblAttrib(int solveidx, int attrib)Convenience wrapper forgetObjDblAttrib(int,int,com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          solveidx- Index of the solve to query. Must be between0andSOLVEDOBJS-1.
- 
          attrib- Problem attribute whose value is to be returned. A full list of all problem attributes may be found in , or from the list in thexprs.hheader file.
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  getQObjpublic void getQObj(int objqcol1, int objqcol2, DoubleHolder p_objqcoef) throws XPRSprobExceptionReturns a single quadratic objective function coefficient corresponding to the variable pair(objqcol1, objqcol2)of the Hessian matrix.- Parameters:
- 
          objqcol1- Column index for the first variable in the quadratic term.
- 
          objqcol2- Column index for the second variable in the quadratic term.
- 
          p_objqcoef- Pointer to a double value where the objective function coefficient is to be placed.
- Throws:
- 
          XPRSprobException
 
 -  getQObjpublic double getQObj(int objqcol1, int objqcol2)Convenience wrapper forgetQObj(int,int,com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          objqcol1- Column index for the first variable in the quadratic term.
- 
          objqcol2- Column index for the second variable in the quadratic term.
- Returns:
- The value that the wrapped function would return in p_objqcoef.
 
 -  getDirspublic void getDirs(IntHolder p_ndir, int[] indices, int[] prios, byte[] branchdirs, double[] uppseudo, double[] downpseudo) throws XPRSprobException Used to return the directives that have been loaded into a matrix. Priorities, forced branching directions and pseudo costs can be returned. If called after presolve,getDirswill get the directives for the presolved problem.- Parameters:
- 
          p_ndir- Pointer to an integer where the number of directives will be returned.
- 
          indices- Integer array of lengthp_ndircontaining the column numbers (0,1,2,...) or negative values corresponding to special ordered sets (the first set numbered-1, the second numbered-2,...). May be null if not required.
- 
          prios- Integer array of lengthp_ndircontaining the priorities for the columns and sets, where columns/sets with smallest priority will be branched on first. May be null if not required.
- 
          branchdirs- Character array of lengthp_ndirspecifying the branching direction for each column or set:- U: the entity is to be forced up;
- D: the entity is to be forced down;
- N: not specified.
 
- 
          uppseudo- Double array of lengthp_ndircontaining the up pseudo costs for the columns and sets. May be null if not required.
- 
          downpseudo- Double array of lengthp_ndircontaining the down pseudo costs for the columns and sets. May be null if not required.
- Throws:
- 
          XPRSprobException
 
 -  getDirspublic int getDirs(int[] indices, int[] prios, byte[] branchdirs, double[] uppseudo, double[] downpseudo) throws XPRSprobExceptionConvenience wrapper forgetDirs(com.dashoptimization.IntHolder, int[], int[], byte[], double[], double[]).- Returns:
- 
          The value that would be returned by 
          getDirs(com.dashoptimization.IntHolder, int[], int[], byte[], double[], double[])as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getDirs(com.dashoptimization.IntHolder, int[], int[], byte[], double[], double[])
 
 -  getDirspublic int getDirs() throws XPRSprobExceptionConvenience wrapper forgetDirs(com.dashoptimization.IntHolder, int[], int[], byte[], double[], double[]).- Returns:
- 
          The value that would be returned by 
          getDirs(com.dashoptimization.IntHolder, int[], int[], byte[], double[], double[])as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getDirs(com.dashoptimization.IntHolder, int[], int[], byte[], double[], double[])
 
 -  getScalepublic void getScale(int[] rowscale, int[] colscale) throws XPRSprobExceptionReturns the the current scaling of the matrix.- Parameters:
- 
          rowscale- Integer array of sizeROWSthat will contain the powers of2with which the rows are currently scaled.
- 
          colscale- Integer array of sizeCOLSthat will contain the powers of2with which the columns are currently scaled.
- Throws:
- 
          XPRSprobException
 
 -  getPivotOrderpublic void getPivotOrder(int[] pivotorder) throws XPRSprobExceptionReturns the pivot order of the basic variables.This function is used in the following examples: - Tableau
 - Parameters:
- 
          pivotorder- Integer array of lengthROWSwhere the pivot order will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getPresolveMappublic void getPresolveMap(int[] rowmap, int[] colmap) throws XPRSprobExceptionReturns the mapping of the row and column numbers from the presolve problem back to the original problem.- Parameters:
- 
          rowmap- Integer array of lengthROWSwhere the row maps will be returned.
- 
          colmap- Integer array of lengthCOLSwhere the column maps will be returned.
- Throws:
- 
          XPRSprobException
 
 -  btranpublic void btran(double[] vec) throws XPRSprobExceptionPost-multiplies a (row) vector provided by the user by the inverse of the current basis.This function is used in the following examples: - Tableau
 - Parameters:
- 
          vec- Double array of lengthROWScontaining the values by which the basis inverse is to be multiplied. The transformed values will also be returned in this array.
- Throws:
- 
          XPRSprobException
 
 -  ftranpublic void ftran(double[] vec) throws XPRSprobExceptionPre-multiplies a (column) vector provided by the user by the inverse of the current matrix.- Parameters:
- 
          vec- Double array of lengthROWScontaining the values which are to be multiplied by the basis inverse. The transformed values appear in the array.
- Throws:
- 
          XPRSprobException
 
 -  sparseBTranpublic void sparseBTran(double[] val, int[] ind, IntHolder p_ncoefs) throws XPRSprobException- Throws:
- 
          XPRSprobException
 
 -  sparseFTranpublic void sparseFTran(double[] val, int[] ind, IntHolder p_ncoefs) throws XPRSprobException- Throws:
- 
          XPRSprobException
 
 -  getObjpublic void getObj(double[] objcoef, int first, int last) throws XPRSprobExceptionReturns the objective function coefficients for the columns in a given range.This function is used in the following examples: - Knapsack
 - Parameters:
- 
          objcoef- Double array of lengthlast-first+1where the objective function coefficients are to be placed.
- 
          first- First column in the range.
- 
          last- Last column in the range.
- Throws:
- 
          XPRSprobException
 
 -  getObjpublic double getObj(int x) throws XPRSprobExceptionConvenience wrapper forgetObj(double[], int, int). This overload retrieves and returns the information for only a single element instead of an array.This function is used in the following examples: - Knapsack
 - Parameters:
- 
          x- The index of the element to query.
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getObj(double[],int,int)
 
 -  getObjpublic double[] getObj(int first, int last) throws XPRSprobExceptionConvenience wrapper forgetObj(double[], int, int). This overload retrieves and returns the same information but allocates the required array for you.This function is used in the following examples: - Knapsack
 - Parameters:
- 
          first- First index (inclusive).
- 
          last- Last index (inclusive).
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getObj(double[],int,int)
 
 -  getObjNpublic void getObjN(int objidx, double[] objcoef, int first, int last) throws XPRSprobExceptionFor a given objective function, returns the objective coefficients for the columns in a given range.- Parameters:
- 
          objidx- Index of the objective function whose coefficients to return.
- 
          objcoef- Double array of lengthlast-first+1where the objective function coefficients are to be placed.
- 
          first- First column in the range.
- 
          last- Last column in the range.
- Throws:
- 
          XPRSprobException
 
 -  getRHSpublic void getRHS(double[] rhs, int first, int last) throws XPRSprobExceptionReturns the right hand side elements for the rows in a given range.This function is used in the following examples: - Repair
 - Parameters:
- 
          rhs- Double array of lengthlast-first+1where the right hand side elements are to be placed.
- 
          first- First row in the range.
- 
          last- Last row in the range.
- Throws:
- 
          XPRSprobException
 
 -  getRHSpublic double getRHS(int x) throws XPRSprobExceptionConvenience wrapper forgetRHS(double[], int, int). This overload retrieves and returns the information for only a single element instead of an array.This function is used in the following examples: - Repair
 - Parameters:
- 
          x- The index of the element to query.
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getRHS(double[],int,int)
 
 -  getRHSpublic double[] getRHS(int first, int last) throws XPRSprobExceptionConvenience wrapper forgetRHS(double[], int, int). This overload retrieves and returns the same information but allocates the required array for you.This function is used in the following examples: - Repair
 - Parameters:
- 
          first- First index (inclusive).
- 
          last- Last index (inclusive).
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getRHS(double[],int,int)
 
 -  getRHSrangepublic void getRHSrange(double[] rng, int first, int last) throws XPRSprobExceptionReturns the right hand side range values for the rows in a given range.This function is used in the following examples: - Repair
 - Parameters:
- 
          rng- Double array of lengthlast-first+1where the right hand side range values are to be placed.
- 
          first- First row in the range.
- 
          last- Last row in the range.
- Throws:
- 
          XPRSprobException
 
 -  getRHSrangepublic double getRHSrange(int x) throws XPRSprobExceptionConvenience wrapper forgetRHSrange(double[], int, int). This overload retrieves and returns the information for only a single element instead of an array.This function is used in the following examples: - Repair
 - Parameters:
- 
          x- The index of the element to query.
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getRHSrange(double[],int,int)
 
 -  getRHSrangepublic double[] getRHSrange(int first, int last) throws XPRSprobExceptionConvenience wrapper forgetRHSrange(double[], int, int). This overload retrieves and returns the same information but allocates the required array for you.This function is used in the following examples: - Repair
 - Parameters:
- 
          first- First index (inclusive).
- 
          last- Last index (inclusive).
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getRHSrange(double[],int,int)
 
 -  getLBpublic void getLB(double[] lb, int first, int last) throws XPRSprobExceptionReturns the lower bounds for the columns in a given range.This function is used in the following examples: - Repair
 - Parameters:
- 
          lb- Double array of lengthlast-first+1where the lower bounds are to be placed.
- 
          first- First column in the range.
- 
          last- Last column in the range.
- Throws:
- 
          XPRSprobException
 
 -  getLBpublic double getLB(int x) throws XPRSprobExceptionConvenience wrapper forgetLB(double[], int, int). This overload retrieves and returns the information for only a single element instead of an array.This function is used in the following examples: - Repair
 - Parameters:
- 
          x- The index of the element to query.
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getLB(double[],int,int)
 
 -  getLBpublic double[] getLB(int first, int last) throws XPRSprobExceptionConvenience wrapper forgetLB(double[], int, int). This overload retrieves and returns the same information but allocates the required array for you.This function is used in the following examples: - Repair
 - Parameters:
- 
          first- First index (inclusive).
- 
          last- Last index (inclusive).
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getLB(double[],int,int)
 
 -  getUBpublic void getUB(double[] ub, int first, int last) throws XPRSprobExceptionReturns the upper bounds for the columns in a given range.This function is used in the following examples: - Repair
 - Parameters:
- 
          ub- Double array of lengthlast-first+1where the upper bounds are to be placed.
- 
          first- First column in the range.
- 
          last- Last column in the range.
- Throws:
- 
          XPRSprobException
 
 -  getUBpublic double getUB(int x) throws XPRSprobExceptionConvenience wrapper forgetUB(double[], int, int). This overload retrieves and returns the information for only a single element instead of an array.This function is used in the following examples: - Repair
 - Parameters:
- 
          x- The index of the element to query.
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getUB(double[],int,int)
 
 -  getUBpublic double[] getUB(int first, int last) throws XPRSprobExceptionConvenience wrapper forgetUB(double[], int, int). This overload retrieves and returns the same information but allocates the required array for you.This function is used in the following examples: - Repair
 - Parameters:
- 
          first- First index (inclusive).
- 
          last- Last index (inclusive).
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getUB(double[],int,int)
 
 -  getColspublic void getCols(int[] start, int[] rowind, double[] rowcoef, int maxcoefs, IntHolder p_ncoefs, int first, int last) throws XPRSprobExceptionReturns the nonzeros in the constraint matrix for the columns in a given range.This function is used in the following examples: - AddMipSol
- GlobalObjectiveParametrics
- GlobalRHSParametrics
- Knapsack
- MipSolEnum
- MostViolated
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
- Repair
- RoundInt
- SaveSol
- Tableau
- Trimloss
 - Parameters:
- 
          start- Integer array which will be filled with the indices indicating the starting offsets in therowindandrowcoefarrays for each requested column. It must be of length at leastlast-first+2. Columnistarts at positionstart[i]in therowindandrowcoefarrays, and hasstart[i+1]-start[i]elements in it. May benullif not required.
- 
          rowind- Integer array of lengthmaxcoefswhich will be filled with the row indices of the nonzero coefficents for each column. May benullif not required.
- 
          rowcoef- Double array of lengthmaxcoefswhich will be filled with the nonzero coefficient values. May benullif not required.
- 
          maxcoefs- The size of therowindandrowcoefarrays. This is the maximum number of nonzero coefficients that the Optimizer is allowed to return.
- 
          p_ncoefs- Pointer to an integer where the number of nonzero coefficients in the selected columns will be returned. Ifp_ncoefsexceedsmaxcoefs, only themaxcoefsfirst nonzero coefficients will be returned. May benullif not required.
- 
          first- First column in the range.
- 
          last- Last column in the range.
- Throws:
- 
          XPRSprobException
 
 -  getColspublic int getCols(int[] start, int[] rowind, double[] rowcoef, int maxcoefs, int first, int last) throws XPRSprobExceptionConvenience wrapper forgetCols(int[], int[], double[], int, com.dashoptimization.IntHolder, int, int).- Returns:
- 
          The value that would be returned by 
          getCols(int[], int[], double[], int, com.dashoptimization.IntHolder, int, int)as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getCols(int[], int[], double[], int, com.dashoptimization.IntHolder, int, int)
 
 -  getColspublic void getCols(long[] start, int[] rowind, double[] rowcoef, long maxcoefs, LongHolder p_ncoefs, int first, int last) throws XPRSprobExceptionReturns the nonzeros in the constraint matrix for the columns in a given range.This function is used in the following examples: - AddMipSol
- GlobalObjectiveParametrics
- GlobalRHSParametrics
- Knapsack
- MipSolEnum
- MostViolated
- Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
- Repair
- RoundInt
- SaveSol
- Tableau
- Trimloss
 - Parameters:
- 
          start- Integer array which will be filled with the indices indicating the starting offsets in therowindandrowcoefarrays for each requested column. It must be of length at leastlast-first+2. Columnistarts at positionstart[i]in therowindandrowcoefarrays, and hasstart[i+1]-start[i]elements in it. May benullif not required.
- 
          rowind- Integer array of lengthmaxcoefswhich will be filled with the row indices of the nonzero coefficents for each column. May benullif not required.
- 
          rowcoef- Double array of lengthmaxcoefswhich will be filled with the nonzero coefficient values. May benullif not required.
- 
          maxcoefs- The size of therowindandrowcoefarrays. This is the maximum number of nonzero coefficients that the Optimizer is allowed to return.
- 
          p_ncoefs- Pointer to an integer where the number of nonzero coefficients in the selected columns will be returned. Ifp_ncoefsexceedsmaxcoefs, only themaxcoefsfirst nonzero coefficients will be returned. May benullif not required.
- 
          first- First column in the range.
- 
          last- Last column in the range.
- Throws:
- 
          XPRSprobException
 
 -  getColspublic long getCols(long[] start, int[] rowind, double[] rowcoef, long maxcoefs, int first, int last) throws XPRSprobExceptionConvenience wrapper forgetCols(long[], int[], double[], long, com.dashoptimization.LongHolder, int, int).- Returns:
- 
          The value that would be returned by 
          getCols(long[], int[], double[], long, com.dashoptimization.LongHolder, int, int)as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getCols(long[], int[], double[], long, com.dashoptimization.LongHolder, int, int)
 
 -  getRowspublic void getRows(int[] start, int[] colind, double[] colcoef, int maxcoefs, IntHolder p_ncoefs, int first, int last) throws XPRSprobExceptionReturns the nonzeros in the constraint matrix for the rows in a given range.This function is used in the following examples: - GlobalObjectiveParametrics
- GlobalRHSParametrics
- LoadLP
- Repair
- Tableau
- Trimloss
 - Parameters:
- 
          start- Integer array which will be filled with the indices indicating the starting offsets in thecolindandcolcoefarrays for each requested row. It must be of length at leastlast-first+2. Rowistarts at positionstart[i]in thecolindandcolcoefarrays, and hasstart[i+1]-start[i]elements in it. May benullif not required.
- 
          colind- Integer arrays of lengthmaxcoefswhich will be filled with the column indices of the nonzero elements for each row. May benullif not required.
- 
          colcoef- Double array of lengthmaxcoefswhich will be filled with the nonzero element values. May benullif not required.
- 
          maxcoefs- Maximum number of elements to be retrieved.
- 
          p_ncoefs- Pointer to the integer where the number of nonzero elements in the selected rows will be returned. If the number of nonzero elements is greater thanmaxcoefs, then onlymaxcoefselements will be returned. Ifp_ncoefsis smaller thanmaxcoefs, then onlyp_ncoefswill be returned. May benullif not required.
- 
          first- First row in the range.
- 
          last- Last row in the range.
- Throws:
- 
          XPRSprobException
 
 -  getRowspublic int getRows(int[] start, int[] colind, double[] colcoef, int maxcoefs, int first, int last) throws XPRSprobExceptionConvenience wrapper forgetRows(int[], int[], double[], int, com.dashoptimization.IntHolder, int, int).- Returns:
- 
          The value that would be returned by 
          getRows(int[], int[], double[], int, com.dashoptimization.IntHolder, int, int)as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getRows(int[], int[], double[], int, com.dashoptimization.IntHolder, int, int)
 
 -  getRowspublic void getRows(long[] start, int[] colind, double[] colcoef, long maxcoefs, LongHolder p_ncoefs, int first, int last) throws XPRSprobExceptionReturns the nonzeros in the constraint matrix for the rows in a given range.This function is used in the following examples: - GlobalObjectiveParametrics
- GlobalRHSParametrics
- LoadLP
- Repair
- Tableau
- Trimloss
 - Parameters:
- 
          start- Integer array which will be filled with the indices indicating the starting offsets in thecolindandcolcoefarrays for each requested row. It must be of length at leastlast-first+2. Rowistarts at positionstart[i]in thecolindandcolcoefarrays, and hasstart[i+1]-start[i]elements in it. May benullif not required.
- 
          colind- Integer arrays of lengthmaxcoefswhich will be filled with the column indices of the nonzero elements for each row. May benullif not required.
- 
          colcoef- Double array of lengthmaxcoefswhich will be filled with the nonzero element values. May benullif not required.
- 
          maxcoefs- Maximum number of elements to be retrieved.
- 
          p_ncoefs- Pointer to the integer where the number of nonzero elements in the selected rows will be returned. If the number of nonzero elements is greater thanmaxcoefs, then onlymaxcoefselements will be returned. Ifp_ncoefsis smaller thanmaxcoefs, then onlyp_ncoefswill be returned. May benullif not required.
- 
          first- First row in the range.
- 
          last- Last row in the range.
- Throws:
- 
          XPRSprobException
 
 -  getRowspublic long getRows(long[] start, int[] colind, double[] colcoef, long maxcoefs, int first, int last) throws XPRSprobExceptionConvenience wrapper forgetRows(long[], int[], double[], long, com.dashoptimization.LongHolder, int, int).- Returns:
- 
          The value that would be returned by 
          getRows(long[], int[], double[], long, com.dashoptimization.LongHolder, int, int)as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getRows(long[], int[], double[], long, com.dashoptimization.LongHolder, int, int)
 
 -  getRowFlagspublic void getRowFlags(int[] flags, int first, int last) throws XPRSprobExceptionRetrieve if a range of rows have been set up as special rows.- Parameters:
- 
          flags- Int array of lengthlast-first+1where type of information (see below) will be returned
- 
          first- First row index to be checked
- 
          last- Last row index to be checked
- Throws:
- 
          XPRSprobException
 
 -  getRowFlagspublic int getRowFlags(int x) throws XPRSprobExceptionConvenience wrapper forgetRowFlags(int[], int, int). This overload retrieves and returns the information for only a single element instead of an array.- Parameters:
- 
          x- The index of the element to query.
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getRowFlags(int[],int,int)
 
 -  getRowFlagspublic int[] getRowFlags(int first, int last) throws XPRSprobExceptionConvenience wrapper forgetRowFlags(int[], int, int). This overload retrieves and returns the same information but allocates the required array for you.- Parameters:
- 
          first- First index (inclusive).
- 
          last- Last index (inclusive).
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getRowFlags(int[],int,int)
 
 -  clearRowFlagspublic void clearRowFlags(int[] flags, int first, int last) throws XPRSprobExceptionClears extra information attached to a range of rows.- Parameters:
- 
          flags- Int array of lengthlast-first+1including type of extra information to remove (see below)
- 
          first- First row index to be checked
- 
          last- Last row index to be checked
- Throws:
- 
          XPRSprobException
 
 -  getCoefpublic void getCoef(int row, int col, DoubleHolder p_coef) throws XPRSprobExceptionReturns a single coefficient in the constraint matrix.- Parameters:
- 
          row- Row of the constraint matrix.
- 
          col- Column of the constraint matrix.
- 
          p_coef- Pointer to a double where the coefficient will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getCoefpublic double getCoef(int row, int col)Convenience wrapper forgetCoef(int,int,com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          row- Row of the constraint matrix.
- 
          col- Column of the constraint matrix.
- Returns:
- The value that the wrapped function would return in p_coef.
 
 -  getMQObjpublic void getMQObj(int[] start, int[] colind, double[] objqcoef, int maxcoefs, IntHolder p_ncoefs, int first, int last) throws XPRSprobExceptionReturns the nonzeros in the quadratic objective coefficients matrix for the columns in a given range. To achieve maximum efficiency,getMQObjreturns the lower triangular part of this matrix only.- Parameters:
- 
          start- Integer array which will be filled with indices indicating the starting offsets in thecolindandobjqcoefarrays for each requested column. It must be length of at leastlast-first+2. Columnistarts at positionstart[i]in thecolindandobjqcoefarrays, and hasstart[i+1]-start[i]elements in it. May be null ifmaxcoefsis0.
- 
          colind- Integer array of lengthmaxcoefswhich will be filled with the column indices of the nonzero elements in the lower triangular part ofQ. May benullifmaxcoefsis0.
- 
          objqcoef- Double array of lengthmaxcoefswhich will be filled with the nonzero element values. May benullifmaxcoefsis0.
- 
          maxcoefs- The maximum number of elements to be returned (size of the arrays).
- 
          p_ncoefs- Pointer to an integer where the number of nonzero quadratic objective coefficients will be returned. If the number of nonzero coefficients is greater thanmaxcoefs, then onlymaxcoefselements will be returned. Ifp_ncoefsis smaller thanmaxcoefs, then onlyp_ncoefswill be returned. May benull.
- 
          first- First column in the range.
- 
          last- Last column in the range.
- Throws:
- 
          XPRSprobException
 
 -  getMQObjpublic int getMQObj(int[] start, int[] colind, double[] objqcoef, int maxcoefs, int first, int last) throws XPRSprobExceptionConvenience wrapper forgetMQObj(int[], int[], double[], int, com.dashoptimization.IntHolder, int, int).- Returns:
- 
          The value that would be returned by 
          getMQObj(int[], int[], double[], int, com.dashoptimization.IntHolder, int, int)as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getMQObj(int[], int[], double[], int, com.dashoptimization.IntHolder, int, int)
 
 -  getMQObjpublic void getMQObj(long[] start, int[] colind, double[] objqcoef, long maxcoefs, LongHolder p_ncoefs, int first, int last) throws XPRSprobExceptionReturns the nonzeros in the quadratic objective coefficients matrix for the columns in a given range. To achieve maximum efficiency,getMQObjreturns the lower triangular part of this matrix only.- Parameters:
- 
          start- Integer array which will be filled with indices indicating the starting offsets in thecolindandobjqcoefarrays for each requested column. It must be length of at leastlast-first+2. Columnistarts at positionstart[i]in thecolindandobjqcoefarrays, and hasstart[i+1]-start[i]elements in it. May be null ifmaxcoefsis0.
- 
          colind- Integer array of lengthmaxcoefswhich will be filled with the column indices of the nonzero elements in the lower triangular part ofQ. May benullifmaxcoefsis0.
- 
          objqcoef- Double array of lengthmaxcoefswhich will be filled with the nonzero element values. May benullifmaxcoefsis0.
- 
          maxcoefs- The maximum number of elements to be returned (size of the arrays).
- 
          p_ncoefs- Pointer to an integer where the number of nonzero quadratic objective coefficients will be returned. If the number of nonzero coefficients is greater thanmaxcoefs, then onlymaxcoefselements will be returned. Ifp_ncoefsis smaller thanmaxcoefs, then onlyp_ncoefswill be returned. May benull.
- 
          first- First column in the range.
- 
          last- Last column in the range.
- Throws:
- 
          XPRSprobException
 
 -  getMQObjpublic long getMQObj(long[] start, int[] colind, double[] objqcoef, long maxcoefs, int first, int last) throws XPRSprobExceptionConvenience wrapper forgetMQObj(long[], int[], double[], long, com.dashoptimization.LongHolder, int, int).- Returns:
- 
          The value that would be returned by 
          getMQObj(long[], int[], double[], long, com.dashoptimization.LongHolder, int, int)as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getMQObj(long[], int[], double[], long, com.dashoptimization.LongHolder, int, int)
 
 -  writeBasispublic void writeBasis(java.lang.String filename, java.lang.String flags) throws XPRSprobExceptionWrites the current basis to a file for later input into the Optimizer.This function is used in the following examples: - AddMipSol
 - Parameters:
- 
          filename- A string of up toMAXPROBNAMELENGTHcharacters containing the file name from which the basis is to be written. If omitted, the default problem_name is used with a.bssextension.
- 
          flags- Flags to pass towriteBasis(WRITEBASIS):- i: output the internal presolved basis;
- t: output a compact advanced form of the basis;
- n: output basis file containing current solution values;
- h: output values in single precision;
- p: output values in full precision (obsolete as this is now default behavior);
- v: use the provided filename verbatim, without appending the- .bssextension;
- z: compress the output file.
 
- Throws:
- 
          XPRSprobException
 
 -  writeBasispublic void writeBasis(java.lang.String filename) throws XPRSprobExceptionConvenience wrapper forwriteBasis(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          writeBasis(String, String)
 
 -  writeBasispublic void writeBasis() throws XPRSprobExceptionConvenience wrapper forwriteBasis(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          writeBasis(String, String)
 
 -  writeSolpublic void writeSol(java.lang.String filename, java.lang.String flags) throws XPRSprobExceptionWrites the current solution to a CSV format ASCII file, problem_name.asc(and.hdr).This function is used in the following examples: - Trimloss
 - Parameters:
- 
          filename- A string of up toMAXPROBNAMELENGTHcharacters containing the file name to which the solution is to be written. If omitted, the default problem_name will be used. The extensions.hdrand.ascwill be appended.
- 
          flags- Flags to control which optional fields are output:- s: sequence number;
- n: name;
- t: type;
- b: basis status;
- a: activity;
- c: cost (columns), slack (rows);
- l: lower bound;
- u: upper bound;
- d: dj (column; reduced costs), dual value (rows; shadow prices);
- r: right hand side (rows).
 
 Additional flags:- p: outputs in full precision;
- q: only outputs vectors with nonzero optimum value;
- x: output the current LP solution instead of the MIP solution;
- z: compress the output file.
 
- Throws:
- 
          XPRSprobException
 
 -  writeSolpublic void writeSol(java.lang.String filename) throws XPRSprobExceptionConvenience wrapper forwriteSol(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          writeSol(String, String)
 
 -  writeSolpublic void writeSol() throws XPRSprobExceptionConvenience wrapper forwriteSol(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          writeSol(String, String)
 
 -  writeBinSolpublic void writeBinSol(java.lang.String filename, java.lang.String flags) throws XPRSprobExceptionWrites the current MIP or LP solution to a binary solution file for later input into the Optimizer.- Parameters:
- 
          filename- A string of up toMAXPROBNAMELENGTHcharacters containing the file name to which the solution is to be written. If omitted, the default problem_name is used with a.solextension.
- 
          flags- Flags to pass towriteBinSol(WRITEBINSOL):- m: output the MIP solution;
- x: output the LP solution;
- v: use the provided filename verbatim, without appending the- .solextension;
- z: compress the output file.
 
- Throws:
- 
          XPRSprobException
 
 -  writeBinSolpublic void writeBinSol(java.lang.String filename) throws XPRSprobExceptionConvenience wrapper forwriteBinSol(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          writeBinSol(String, String)
 
 -  writeBinSolpublic void writeBinSol() throws XPRSprobExceptionConvenience wrapper forwriteBinSol(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          writeBinSol(String, String)
 
 -  getSol@Deprecated public void getSol(double[] x, double[] slack, double[] duals, double[] djs) throws XPRSprobExceptionDeprecated.since 41.00- Throws:
- 
          XPRSprobException
 
 -  getSolpublic void getSol(double[] x) throws XPRSprobExceptionConvenience wrapper forgetSol(double[], double[], double[], double[]).- Throws:
- 
          XPRSprobException
- See Also:
- 
          getSol(double[], double[], double[], double[])
 
 -  writePrtSolpublic void writePrtSol(java.lang.String filename, java.lang.String flags) throws XPRSprobExceptionWrites the current solution to a fixed format ASCII file, problem_name.prt.- Parameters:
- 
          filename- A string of up toMAXPROBNAMELENGTHcharacters containing the file name to which the solution is to be written. If omitted, the default problem_name will be used. The extension.prtwill be appended.
- 
          flags- Flags forwritePrtSol(WRITEPRTSOL) are:- x: write the LP solution instead of the current MIP solution;
- v: use the provided filename verbatim, without appending the- .prtextension;
- z: write a compressed output file;
- s: include classical sensitivity analysis.
 
- Throws:
- 
          XPRSprobException
 
 -  writePrtSolpublic void writePrtSol(java.lang.String filename) throws XPRSprobExceptionConvenience wrapper forwritePrtSol(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          writePrtSol(String, String)
 
 -  writePrtSolpublic void writePrtSol() throws XPRSprobExceptionConvenience wrapper forwritePrtSol(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          writePrtSol(String, String)
 
 -  writeSlxSolpublic void writeSlxSol(java.lang.String filename, java.lang.String flags) throws XPRSprobExceptionCreates an ASCII solution file (.slx) using a similar format to MPS files. These files can be read back into the Optimizer using thereadSlxSolfunction.- Parameters:
- 
          filename- A string of up toMAXPROBNAMELENGTHcharacters containing the file name to which the solution is to be written. If omitted, the default problem_name is used with a.slxextension.
- 
          flags- Flags to pass towriteSlxSol(WRITESLXSOL):- l: write the LP solution in case of a MIP problem;
- m: write the MIP solution;
- p: use full precision for numerical values (obsolete as this is now default behavior);
- s: including slack variables;
- d: LP solution only: including dual variables;
- r: LP solution only: including reduced cost;
- v: use the provided filename verbatim, without appending the- .slxextension;
- z: compress the output file.
 
- Throws:
- 
          XPRSprobException
 
 -  writeSlxSolpublic void writeSlxSol(java.lang.String filename) throws XPRSprobExceptionConvenience wrapper forwriteSlxSol(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          writeSlxSol(String, String)
 
 -  writeSlxSolpublic void writeSlxSol() throws XPRSprobExceptionConvenience wrapper forwriteSlxSol(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          writeSlxSol(String, String)
 
 -  getPrimalRaypublic void getPrimalRay(double[] ray, IntHolder p_hasray) throws XPRSprobExceptionRetrieves a primal ray (primal unbounded direction) for the current problem, if the problem is found to be unbounded.- Parameters:
- 
          ray- Double array of lengthCOLSto hold the ray. May be null if not required.
- 
          p_hasray- This variable will be set to 1 if the Optimizer is able to return a primal ray, 0 otherwise.
- Throws:
- 
          XPRSprobException
 
 -  getDualRaypublic void getDualRay(double[] ray, IntHolder p_hasray) throws XPRSprobExceptionRetrieves a dual ray (dual unbounded direction) for the current problem, if the problem is found to be infeasible.- Parameters:
- 
          ray- Double array of lengthROWSto hold the ray. May be null if not required.
- 
          p_hasray- This variable will be set to 1 if the Optimizer is able to return a dual ray, 0 otherwise.
- Throws:
- 
          XPRSprobException
 
 -  strongBranchCBpublic void strongBranchCB(int nbounds, int[] colind, byte[] bndtype, double[] bndval, int iterlim, double[] objval, int[] status, XPRSstrongBranchSolveListener callback, java.lang.Object data) throws XPRSprobExceptionPerforms strong branching iterations on all specified bound changes. For each candidate bound change,strongBranchCBperforms dual simplex iterations starting from the current optimal solution of the base LP, and returns both the status and objective value reached after these iterations.- Parameters:
- 
          nbounds- Number of bound changes to try.
- 
          colind- Integer array of sizenboundscontaining the indices of the columns on which the bounds will change.
- 
          bndtype- Character array of lengthnboundsindicating the type of bound to change:- U: indicates change the upper bound;
- L: indicates change the lower bound;
- B: indicates change both bounds, i.e. fix the column.
 
- 
          bndval- Double array of lengthnboundsgiving the new bound values.
- 
          iterlim- Maximum number of LP iterations to perform for each bound change.
- 
          objval- Objective value of each LP after performing the strong branching iterations.
- 
          status- Status of each LP after performing the strong branching iterations, as detailed for theLPSTATUSattribute.
- 
          callback- Function to be called after each strong branch has been reoptimized. This function returns an integer. Use0to indicate that everything went fine. Use a return value different from0to signal an error. This will terminate the function.
- 
          data- User context to be provided forcallback.
- Throws:
- 
          XPRSprobException
 
 -  loadMipSolpublic void loadMipSol(double[] x, IntHolder p_status) throws XPRSprobExceptionLoads a starting MIP solution for the problem into the Optimizer.- Parameters:
- 
          x- Double array of lengthCOLS(for the original problem and not the presolve problem) containing the values of the variables.
- 
          p_status- Pointer to anintwhere the status will be returned. The status is one of:- -1: Solution rejected because an error occurred;
- 0: Solution accepted.
 
- Throws:
- 
          XPRSprobException
 
 -  loadMipSolpublic int loadMipSol(double[] x) Convenience wrapper forloadMipSol(double[],com.dashoptimization.IntHolder)that returns the output argument.- Parameters:
- 
          x- Double array of lengthCOLS(for the original problem and not the presolve problem) containing the values of the variables.
- Returns:
- The value that the wrapped function would return in p_status.
 
 -  getBasispublic void getBasis(int[] rowstat, int[] colstat) throws XPRSprobExceptionReturns the current basis into the user's data arrays.This function is used in the following examples: - GlobalObjectiveParametrics
- GlobalRHSParametrics
 - Parameters:
- 
          rowstat- Integer array of lengthORIGINALROWSto the basis status of the slack, surplus or artificial variable associated with each row. The status will be one of:- 0: slack, surplus or artificial is non-basic at lower bound;
- 1: slack, surplus or artificial is basic;
- 2: slack or surplus is non-basic at upper bound.
- 3: slack or surplus is super-basic.
 nullif not required.
- 
          colstat- Integer array of lengthORIGINALCOLSto hold the basis status of the columns in the constraint matrix. The status will be one of:- 0: variable is non-basic at lower bound, or superbasic at zero if the variable has no lower bound;
- 1: variable is basic;
- 2: variable is non-basic at upper bound;
- 3: variable is super-basic.
 nullif not required.
- Throws:
- 
          XPRSprobException
 
 -  getBasisValpublic void getBasisVal(int row, int col, IntHolder p_rowstat, IntHolder p_colstat) throws XPRSprobExceptionReturns the current basis status for a specific column or row.- Parameters:
- 
          row- Row index to get the row basis status for.
- 
          col- Column index to get the column basis status for.
- 
          p_rowstat- Integer pointer where the value of the row basis status will be returned. May benullif not required.
- 
          p_colstat- Integer pointer where the value of the column basis status will be returned. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  addCutspublic void addCuts(int ncuts, int[] cuttype, byte[] rowtype, double[] rhs, int[] start, int[] colind, double[] cutcoef) throws XPRSprobExceptionAdds cuts directly to the matrix at the current node. The cuts will automatically be added to the cut pool. Cuts added to a node will automatically be inherited on any descendant node, unless explicitly deleted with a call todelCuts.- Parameters:
- 
          ncuts- Number of cuts to add.
- 
          cuttype- Integer array of lengthncutscontaining the user assigned cut types. The cut types can be any integer chosen by the user, and are used to identify the cuts in other cut manager routines using user supplied parameters. The cut type can be interpreted as an integer or a bitmap - seedelCuts.
- 
          rowtype- Character array of lengthncutscontaining the row types:- L: indicates a <= row;
- G: indicates a >= row;
- E: indicates an = row.
 
- 
          rhs- Double array of lengthncutscontaining the right hand side elements for the cuts.
- 
          start- Integer array containing offset into thecolindandcutcoefarrays indicating the start of each cut. This array is of lengthncuts+1with the last element,start[ncuts], being where cutncuts+1would start.
- 
          colind- Integer array of lengthstart[ncuts]containing the column indices in the cuts.
- 
          cutcoef- Double array of lengthstart[ncuts]containing the matrix values for the cuts.
- Throws:
- 
          XPRSprobException
 
 -  addCutspublic void addCuts(int ncuts, int[] cuttype, byte[] rowtype, double[] rhs, long[] start, int[] colind, double[] cutcoef) throws XPRSprobExceptionAdds cuts directly to the matrix at the current node. The cuts will automatically be added to the cut pool. Cuts added to a node will automatically be inherited on any descendant node, unless explicitly deleted with a call todelCuts.- Parameters:
- 
          ncuts- Number of cuts to add.
- 
          cuttype- Integer array of lengthncutscontaining the user assigned cut types. The cut types can be any integer chosen by the user, and are used to identify the cuts in other cut manager routines using user supplied parameters. The cut type can be interpreted as an integer or a bitmap - seedelCuts.
- 
          rowtype- Character array of lengthncutscontaining the row types:- L: indicates a <= row;
- G: indicates a >= row;
- E: indicates an = row.
 
- 
          rhs- Double array of lengthncutscontaining the right hand side elements for the cuts.
- 
          start- Integer array containing offset into thecolindandcutcoefarrays indicating the start of each cut. This array is of lengthncuts+1with the last element,start[ncuts], being where cutncuts+1would start.
- 
          colind- Integer array of lengthstart[ncuts]containing the column indices in the cuts.
- 
          cutcoef- Double array of lengthstart[ncuts]containing the matrix values for the cuts.
- Throws:
- 
          XPRSprobException
 
 -  delCutspublic void delCuts(int basis, int cuttype, int interp, double delta, int ncuts, XPRScut[] cutind) throws XPRSprobExceptionDeletes cuts from the matrix at the current node. Cuts from the parent node which have been automatically restored may be deleted as well as cuts added to the current node usingaddCutsorloadCuts. The cuts to be deleted can be specified in a number of ways. If a cut is ruled out by any one of the criteria it will not be deleted.- Parameters:
- 
          basis- Ensures the basis will be valid if set to1. If set to0, cuts with non-basic slacks may be deleted.
- 
          cuttype- User defined type of the cut to be deleted.
- 
          interp- Way in which the cutcuttypeis interpreted:- -1: match all cut types;
- 1: treat cut types as numbers;
- 2: treat cut types as bit maps - delete if any bit matches any bit set in- cuttype;
- 3: treat cut types as bit maps - delete if all bits match those set in- cuttype.
 
- 
          delta- Only delete cuts with an absolute slack value greater thandelta. To delete all the cuts, this argument should be set toXPRS_MINUSINFINITY.
- 
          ncuts- Number of cuts to drop if a list of cuts is provided. A value of-1indicates all cuts.
- 
          cutind- Array containing pointers to the cuts which are to be deleted. This array may benullifncutsis set to-1otherwise it has lengthncuts.
- Throws:
- 
          XPRSprobException
 
 -  delCutspublic void delCuts(int basis) throws XPRSprobExceptionConvenience wrapper fordelCuts(int, int, int, double, int, XPRScut[]).- Throws:
- 
          XPRSprobException
- See Also:
- 
          delCuts(int, int, int, double, int, XPRScut[])
 
 -  delCutspublic void delCuts(int basis, int cuttype, int interp) throws XPRSprobExceptionConvenience wrapper fordelCuts(int, int, int, double, int, XPRScut[]).- Throws:
- 
          XPRSprobException
- See Also:
- 
          delCuts(int, int, int, double, int, XPRScut[])
 
 -  delCutspublic void delCuts(int basis, int cuttype, int interp, double delta) throws XPRSprobExceptionConvenience wrapper fordelCuts(int, int, int, double, int, XPRScut[]).- Throws:
- 
          XPRSprobException
- See Also:
- 
          delCuts(int, int, int, double, int, XPRScut[])
 
 -  delCutspublic void delCuts(int basis, int ncuts, XPRScut[] cutind) throws XPRSprobExceptionConvenience wrapper fordelCuts(int, int, int, double, int, XPRScut[]).- Throws:
- 
          XPRSprobException
- See Also:
- 
          delCuts(int, int, int, double, int, XPRScut[])
 
 -  delCPCutspublic void delCPCuts(int cuttype, int interp, int ncuts, XPRScut[] cutind) throws XPRSprobExceptionDuring the branch and bound search, cuts are stored in the cut pool to be applied at descendant nodes. These cuts may be removed from a given node usingdelCuts, but if this is to be applied in a large number of cases, it may be preferable to remove the cut completely from the cut pool. This is achieved usingdelCPCuts.- Parameters:
- 
          cuttype- User defined cut type to match against.
- 
          interp- Way in which the cutcuttypeis interpreted:- -1: match all cut types;
- 1: treat cut types as numbers;
- 2: treat cut types as bit maps - delete if any bit matches any bit set in- cuttype;
- 3: treat cut types as bit maps - delete if all bits match those set in- cuttype.
 
- 
          ncuts- The number of cuts to delete. A value of-1indicates delete all cuts.
- 
          cutind- Array containing pointers to the cuts which are to be deleted. This array may benullifncutsis-1, otherwise it has lengthncuts.
- Throws:
- 
          XPRSprobException
 
 -  delCPCutspublic void delCPCuts() throws XPRSprobExceptionConvenience wrapper fordelCPCuts(int, int, int, XPRScut[]).- Throws:
- 
          XPRSprobException
- See Also:
- 
          delCPCuts(int, int, int, XPRScut[])
 
 -  delCPCutspublic void delCPCuts(int cuttype, int interp) throws XPRSprobExceptionConvenience wrapper fordelCPCuts(int, int, int, XPRScut[]).- Throws:
- 
          XPRSprobException
- See Also:
- 
          delCPCuts(int, int, int, XPRScut[])
 
 -  delCPCutspublic void delCPCuts(int ncuts, XPRScut[] cutind) throws XPRSprobExceptionConvenience wrapper fordelCPCuts(int, int, int, XPRScut[]).- Throws:
- 
          XPRSprobException
- See Also:
- 
          delCPCuts(int, int, int, XPRScut[])
 
 -  getCutListpublic void getCutList(int cuttype, int interp, IntHolder p_ncuts, int maxcuts, XPRScut[] cutind) throws XPRSprobExceptionRetrieves a list of cut pointers for the cuts active at the current node.- Parameters:
- 
          cuttype- User defined type of the cuts to be returned. A value of-1indicates return all active cuts.
- 
          interp- Way in which the cut type is interpreted:- -1: get all cuts;
- 1: treat cut types as numbers;
- 2: treat cut types as bit maps - get cut if any bit matches any bit set in- cuttype;
- 3: treat cut types as bit maps - get cut if all bits match those set in- cuttype.
 
- 
          p_ncuts- Pointer to the integer where the number of active cuts of typecuttypewill be returned.
- 
          maxcuts- Maximum number of cuts to be retrieved.
- 
          cutind- Array of lengthmaxcutswhere the pointers to the cuts will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getCutListpublic int getCutList(int cuttype, int interp, int maxcuts, XPRScut[] cutind) throws XPRSprobExceptionConvenience wrapper forgetCutList(int, int, com.dashoptimization.IntHolder, int, XPRScut[]).- Returns:
- 
          The value that would be returned by 
          getCutList(int, int, com.dashoptimization.IntHolder, int, XPRScut[])as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getCutList(int, int, com.dashoptimization.IntHolder, int, XPRScut[])
 
 -  getCutListpublic int getCutList(int maxcuts, XPRScut[] cutind) throws XPRSprobExceptionConvenience wrapper forgetCutList(int, int, com.dashoptimization.IntHolder, int, XPRScut[]).- Returns:
- 
          The value that would be returned by 
          getCutList(int, int, com.dashoptimization.IntHolder, int, XPRScut[])as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getCutList(int, int, com.dashoptimization.IntHolder, int, XPRScut[])
 
 -  getCPCutListpublic void getCPCutList(int cuttype, int interp, double delta, IntHolder p_ncuts, int maxcuts, XPRScut[] cutind, double[] viol) throws XPRSprobExceptionReturns a list of cut indices from the cut pool.- Parameters:
- 
          cuttype- The user defined type of the cuts to be returned.
- 
          interp- Way in which the cut type is interpreted:- -1: get all cuts;
- 1: treat cut types as numbers;
- 2: treat cut types as bit maps - get cut if any bit matches any bit set in- cuttype;
- 3: treat cut types as bit maps - get cut if all bits match those set in- cuttype.
 
- 
          delta- Only those cuts with a signed violation greater than delta will be returned.
- 
          p_ncuts- Pointer to the integer where the number of cuts of typecuttypein the cut pool will be returned.
- 
          maxcuts- Maximum number of cuts to be returned.
- 
          cutind- Array of lengthmaxcutswhere the pointers to the cuts will be returned.
- 
          viol- Double array of lengthmaxcutswhere the values of the signed violations of the cuts will be returned.
- Throws:
- 
          XPRSprobException
 
 -  getCPCutListpublic int getCPCutList(int cuttype, int interp, double delta, int maxcuts, XPRScut[] cutind, double[] viol) throws XPRSprobExceptionConvenience wrapper forgetCPCutList(int, int, double, com.dashoptimization.IntHolder, int, XPRScut[], double[]).- Returns:
- 
          The value that would be returned by 
          getCPCutList(int, int, double, com.dashoptimization.IntHolder, int, XPRScut[], double[])as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getCPCutList(int, int, double, com.dashoptimization.IntHolder, int, XPRScut[], double[])
 
 -  getCPCutListpublic int getCPCutList(int maxcuts, XPRScut[] cutind, double[] viol) throws XPRSprobExceptionConvenience wrapper forgetCPCutList(int, int, double, com.dashoptimization.IntHolder, int, XPRScut[], double[]).- Returns:
- 
          The value that would be returned by 
          getCPCutList(int, int, double, com.dashoptimization.IntHolder, int, XPRScut[], double[])as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getCPCutList(int, int, double, com.dashoptimization.IntHolder, int, XPRScut[], double[])
 
 -  getCPCutspublic void getCPCuts(XPRScut[] rowind, int ncuts, int maxcoefs, int[] cuttype, byte[] rowtype, int[] start, int[] colind, double[] cutcoef, double[] rhs) throws XPRSprobException Returns cuts from the cut pool. A list of cut pointers in the arrayrowindmust be passed to the routine. The columns and elements of the cut will be returned in the regions pointed to by thecolindandcutcoefparameters. The columns and elements will be stored contiguously and the starting point of each cut will be returned in the region pointed to by thestartparameter.- Parameters:
- 
          rowind- Array of lengthncutscontaining the pointers to the cuts.
- 
          ncuts- Number of cuts to be returned.
- 
          maxcoefs- Maximum number of column indices of the cuts to be returned.
- 
          cuttype- Integer array of length at leastncutswhere the cut types will be returned. May be null if not required.
- 
          rowtype- Character array of length at leastncutswhere the sense of the cuts (L,G, orE) will be returned. May be null if not required.
- 
          start- Integer array of length at leastncuts+1containing the offsets into thecolindandcutcoefarrays. The last element indicates where cutncuts+1would start. May be null if not required.
- 
          colind- Integer array of lengthmaxcoefswhere the column indices of the cuts will be returned. May be null if not required.
- 
          cutcoef- Double array of lengthmaxcoefswhere the matrix values will be returned. May be null if not required.
- 
          rhs- Double array of length at leastncutswhere the right hand side elements for the cuts will be returned. May be null if not required.
- Throws:
- 
          XPRSprobException
 
 -  getCPCutspublic void getCPCuts(XPRScut[] rowind, int ncuts, long maxcoefs, int[] cuttype, byte[] rowtype, long[] start, int[] colind, double[] cutcoef, double[] rhs) throws XPRSprobException Returns cuts from the cut pool. A list of cut pointers in the arrayrowindmust be passed to the routine. The columns and elements of the cut will be returned in the regions pointed to by thecolindandcutcoefparameters. The columns and elements will be stored contiguously and the starting point of each cut will be returned in the region pointed to by thestartparameter.- Parameters:
- 
          rowind- Array of lengthncutscontaining the pointers to the cuts.
- 
          ncuts- Number of cuts to be returned.
- 
          maxcoefs- Maximum number of column indices of the cuts to be returned.
- 
          cuttype- Integer array of length at leastncutswhere the cut types will be returned. May be null if not required.
- 
          rowtype- Character array of length at leastncutswhere the sense of the cuts (L,G, orE) will be returned. May be null if not required.
- 
          start- Integer array of length at leastncuts+1containing the offsets into thecolindandcutcoefarrays. The last element indicates where cutncuts+1would start. May be null if not required.
- 
          colind- Integer array of lengthmaxcoefswhere the column indices of the cuts will be returned. May be null if not required.
- 
          cutcoef- Double array of lengthmaxcoefswhere the matrix values will be returned. May be null if not required.
- 
          rhs- Double array of length at leastncutswhere the right hand side elements for the cuts will be returned. May be null if not required.
- Throws:
- 
          XPRSprobException
 
 -  loadCutspublic void loadCuts(int cuttype, int interp, int ncuts, XPRScut[] cutind) throws XPRSprobExceptionLoads cuts from the cut pool into the matrix. Without callingloadCutsthe cuts will remain in the cut pool but will not be active at the node. Cuts loaded at a node remain active at all descendant nodes unless they are deleted usingdelCuts.- Parameters:
- 
          cuttype- Cut type.
- 
          interp- The way in which the cut type is interpreted:- -1: load all cuts;
- 1: treat cut types as numbers;
- 2: treat cut types as bit maps - load cut if any bit matches any bit set in- cuttype;
- 3: treat cut types as bit maps -- 0load cut if all bits match those set in- cuttype.
 
- 
          ncuts- Number of cuts to load.
- 
          cutind- Array of lengthncutscontaining pointers to the cuts to be loaded into the matrix. These are pointers returned by eitherstoreCutsorgetCPCutList.
- Throws:
- 
          XPRSprobException
 
 -  loadCutspublic void loadCuts(int cuttype, int interp) throws XPRSprobExceptionConvenience wrapper forloadCuts(int, int, int, XPRScut[]).- Throws:
- 
          XPRSprobException
- See Also:
- 
          loadCuts(int, int, int, XPRScut[])
 
 -  loadCutspublic void loadCuts(int ncuts, XPRScut[] cutind) throws XPRSprobExceptionConvenience wrapper forloadCuts(int, int, int, XPRScut[]).- Throws:
- 
          XPRSprobException
- See Also:
- 
          loadCuts(int, int, int, XPRScut[])
 
 -  storeCutspublic void storeCuts(int ncuts, int nodups, int[] cuttype, byte[] rowtype, double[] rhs, int[] start, XPRScut[] cutind, int[] colind, double[] cutcoef) throws XPRSprobExceptionStores cuts into the cut pool, but does not apply them to the current node. These cuts must be explicitly loaded into the matrix usingloadCutsbefore they become active.- Parameters:
- 
          ncuts- Number of cuts to add.
- 
          nodups-- 0: do not exclude duplicates from the cut pool;
- 1: duplicates are to be excluded from the cut pool;
- 2: duplicates are to be excluded from the cut pool, ignoring cut type.
 
- 
          cuttype- Integer array of lengthncutscontaining the cut types. The cut types can be any integer and are used to identify the cuts.
- 
          rowtype- Character array of lengthncutscontaining the row types:- L: indicates a <= row;
- E: indicates an = row;
- G: indicates a >= row.
 
- 
          rhs- Double array of lengthncutscontaining the right hand side elements for the cuts.
- 
          start- Integer array containing offsets into thecolindanddmtvalarrays indicating the start of each cut. This array is of lengthncuts+1with the last elementstart[ncuts]being where cutncuts+1would start.
- 
          cutind- Array of lengthncutswhere the pointers to the cuts will be returned.
- 
          colind- Integer array of lengthstart[ncuts]containing the column indices in the cuts.
- 
          cutcoef- Double array of lengthstart[ncuts]containing the matrix values for the cuts.
- Throws:
- 
          XPRSprobException
 
 -  storeCutspublic void storeCuts(int ncuts, int nodups, int[] cuttype, byte[] rowtype, double[] rhs, long[] start, XPRScut[] cutind, int[] colind, double[] cutcoef) throws XPRSprobExceptionStores cuts into the cut pool, but does not apply them to the current node. These cuts must be explicitly loaded into the matrix usingloadCutsbefore they become active.- Parameters:
- 
          ncuts- Number of cuts to add.
- 
          nodups-- 0: do not exclude duplicates from the cut pool;
- 1: duplicates are to be excluded from the cut pool;
- 2: duplicates are to be excluded from the cut pool, ignoring cut type.
 
- 
          cuttype- Integer array of lengthncutscontaining the cut types. The cut types can be any integer and are used to identify the cuts.
- 
          rowtype- Character array of lengthncutscontaining the row types:- L: indicates a <= row;
- E: indicates an = row;
- G: indicates a >= row.
 
- 
          rhs- Double array of lengthncutscontaining the right hand side elements for the cuts.
- 
          start- Integer array containing offsets into thecolindanddmtvalarrays indicating the start of each cut. This array is of lengthncuts+1with the last elementstart[ncuts]being where cutncuts+1would start.
- 
          cutind- Array of lengthncutswhere the pointers to the cuts will be returned.
- 
          colind- Integer array of lengthstart[ncuts]containing the column indices in the cuts.
- 
          cutcoef- Double array of lengthstart[ncuts]containing the matrix values for the cuts.
- Throws:
- 
          XPRSprobException
 
 -  presolveRowpublic void presolveRow(char rowtype, int norigcoefs, int[] origcolind, double[] origrowcoef, double origrhs, int maxcoefs, IntHolder p_ncoefs, int[] colind, double[] rowcoef, DoubleHolder p_rhs, IntHolder p_status) throws XPRSprobExceptionPresolves a row formulated in terms of the original variables such that it can be added to a presolved matrix.This function is used in the following examples: - TSP
 - Parameters:
- 
          rowtype- The type of the row:- L: indicates a <= row;
- G: indicates a >= row.
 
- 
          norigcoefs- Number of elements in theorigcolindandorigrowcoefarrays.
- 
          origcolind- Integer array of lengthnorigcoefscontaining the column indices of the row to presolve.
- 
          origrowcoef- Double array of lengthnorigcoefscontaining the non-zero coefficients of the row to presolve.
- 
          origrhs- The right-hand side constant of the row to presolve.
- 
          maxcoefs- Maximum number of elements to return in thecolindandrowcoefarrays.
- 
          p_ncoefs- Pointer to the integer where the number of elements in thecolindandrowcoefarrays will be returned.
- 
          colind- Integer array which will be filled with the column indices of the presolved row. It must be allocated to hold at leastCOLSelements.
- 
          rowcoef- Double array which will be filled with the coefficients of the presolved row. It must be allocated to hold at leastCOLSelements.
- 
          p_rhs- Pointer to the double where the presolved right-hand side will be returned.
- 
          p_status- Status of the presolved row:- -3: Failed to presolve the row due to presolve dual reductions;
- -2: Failed to presolve the row due to presolve duplicate column reductions;
- -1: Failed to presolve the row due to an error. Check the Optimizer error code for the cause;
- 0: The row was successfully presolved;
- 1: The row was presolved, but may be relaxed.
 
- Throws:
- 
          XPRSprobException
 
 -  postSolveSolpublic void postSolveSol(double[] prex, double[] origx) throws XPRSprobExceptionPostsolves a primal solution formulated in the presolved space into the corresponding solution formulated in the original space. The problem itself is unchanged.- Parameters:
- 
          prex- Double array of lengthCOLSwith the values of the primal variables in the presolved space. Cannot benull.
- 
          origx- Double array of lengthORIGINALCOLSwhere the values of the primal variables will be returned. Cannot benull.
- Throws:
- 
          XPRSprobException
 
 -  getPivotspublic void getPivots(int enter, int[] outlist, double[] x, DoubleHolder p_objval, IntHolder p_npivots, int maxpivots) throws XPRSprobExceptionReturns a list of potential leaving variables if a specified variable enters the basis.- Parameters:
- 
          enter- Index of the specified row or column to enter basis.
- 
          outlist- Integer array of length at leastmaxpivotsto hold list of potential leaving variables. May benullif not required.
- 
          x- Double array of lengthROWS+SPAREROWS+COLSto hold the values of all the variables that would result ifenterentered the basis. May benullif not required.
- 
          p_objval- Pointer to a double where the objective function value that would result ifenterentered the basis will be returned.
- 
          p_npivots- Pointer to an integer where the actual number of potential leaving variables will be returned.
- 
          maxpivots- Maximum number of potential leaving variables to return.
- Throws:
- 
          XPRSprobException
 
 -  writeProbpublic void writeProb(java.lang.String filename, java.lang.String flags) throws XPRSprobExceptionWrites the current problem to an MPS or LP file.This function is used in the following examples: - LoadLP
- PolygonMap
- PolygonMapDelta
- PolygonVecMap
- PolygonVecMapDelta
- Repair
- TSP
- Trimloss
 - Parameters:
- 
          filename- A string of up toMAXPROBNAMELENGTHcharacters to contain the file name to which the problem is to be written. If omitted, the default problem_name is used with a.mpsextension, unless thelflag is used in which case the extension is.lp.
- 
          flags- Flags, which can be one or more of the following:- o: one element per line;
- n: output the scaled problem;
- s: scrambled vector names;
- l: output in LP format;
- p: output values in full precision (obsolete as this is now default behavior);
- t: omit the Xpress header in LP format;
- v: use the provided filename verbatim, without appending the- .mpsor- .lpextension;
- z: compress the output file.
 
- Throws:
- 
          XPRSprobException
 
 -  writeProbpublic void writeProb(java.lang.String filename) throws XPRSprobExceptionConvenience wrapper forwriteProb(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          writeProb(String, String)
 
 -  writeProbpublic void writeProb() throws XPRSprobExceptionConvenience wrapper forwriteProb(String, String).- Throws:
- 
          XPRSprobException
- See Also:
- 
          writeProb(String, String)
 
 -  calcSlackspublic void calcSlacks(double[] solution, double[] slacks) throws XPRSprobExceptionCalculates the row slack values for a given solution.- Parameters:
- 
          solution- Double array of length COLS that holds the solution to calculate the slacks for.
- 
          slacks- Double array of length ROWS in which the calculated row slacks are returned.
- Throws:
- 
          XPRSprobException
 
 -  calcReducedCostspublic void calcReducedCosts(double[] duals, double[] solution, double[] djs) throws XPRSprobExceptionCalculates the reduced cost values for a given (row) dual solution.- Parameters:
- 
          duals- Double array of length ROWS that holds the dual solution to calculate the reduced costs for.
- 
          solution- Optional double array of length COLS that holds the primal solution. This is necessary for quadratic problems.
- 
          djs- Double array of length COLS in which the calculated reduced costs are returned.
- Throws:
- 
          XPRSprobException
 
 -  calcObjectivepublic void calcObjective(double[] solution, DoubleHolder p_objval) throws XPRSprobExceptionCalculates the objective value of a given solution.- Parameters:
- 
          solution- Double array of length COLS that holds the solution.
- 
          p_objval- Pointer to a double in which the calculated objective value is returned.
- Throws:
- 
          XPRSprobException
 
 -  calcObjectivepublic double calcObjective(double[] solution) Convenience wrapper forcalcObjective(double[],com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          solution- Double array of length COLS that holds the solution.
- Returns:
- The value that the wrapped function would return in p_objval.
 
 -  calcObjNpublic void calcObjN(int objidx, double[] solution, DoubleHolder p_objval) throws XPRSprobExceptionCalculates the objective value of the given objective function in a multi-objective problem.- Parameters:
- 
          objidx- Index of the objective function to calculate.
- 
          solution- Double array of lengthCOLSthat holds the solution, ornullto use the current solution.
- 
          p_objval- Pointer to a double in which the calculated objective value is returned.
- Throws:
- 
          XPRSprobException
 
 -  calcObjNpublic double calcObjN(int objidx, double[] solution)Convenience wrapper forcalcObjN(int,double[],com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          objidx- Index of the objective function to calculate.
- 
          solution- Double array of lengthCOLSthat holds the solution, ornullto use the current solution.
- Returns:
- The value that the wrapped function would return in p_objval.
 
 -  calcSolInfopublic void calcSolInfo(double[] solution, double[] duals, int property, DoubleHolder p_value) throws XPRSprobExceptionCalculates the required property of a solution, like maximum infeasibility of a given primal and dual solution.- Parameters:
- 
          solution- Double array of length COLS that holds the solution. May benullwhen asking for dual infeasibility.
- 
          duals- Double array of length ROWS that holds the dual solution. May benullwhen asking for primal/MIP infeasibility.
- 
          property- Defined the property to be calculated.- XPRS_SOLINFO_ABSPRIMALINFEAS: the calculated maximum absolute primal infeasibility is returned.
- XPRS_SOLINFO_RELPRIMALINFEAS: the calculated maximum relative primal infeasibility is returned.
- XPRS_SOLINFO_ABSDUALINFEAS: the calculated maximum absolute dual infeasibility is returned.
- XPRS_SOLINFO_RELDUALINFEAS: the calculated maximum relative dual infeasibility is returned.
- XPRS_SOLINFO_MAXMIPFRACTIONAL: the calculated maximum absolute MIP fractionality or SOS infeasibility.
- XPRS_SOLINFO_ABSMIPINFEAS: the calculated maximum absolute MIP infeasibility (including delayed rows, indicators, general and piecewise linear constraints) is returned.
- XPRS_SOLINFO_RELMIPINFEAS: the calculated maximum relative MIP infeasibility (including delayed rows, indicators, general and piecewise linear constraints) is returned.
 
- 
          p_value- Pointer to a double where the calculated value is returned.
- Throws:
- 
          XPRSprobException
 
 -  calcSolInfopublic double calcSolInfo(double[] solution, double[] duals, int property)Convenience wrapper forcalcSolInfo(double[],double[],int,com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          solution- Double array of length COLS that holds the solution. May benullwhen asking for dual infeasibility.
- 
          duals- Double array of length ROWS that holds the dual solution. May benullwhen asking for primal/MIP infeasibility.
- 
          property- Defined the property to be calculated.- XPRS_SOLINFO_ABSPRIMALINFEAS: the calculated maximum absolute primal infeasibility is returned.
- XPRS_SOLINFO_RELPRIMALINFEAS: the calculated maximum relative primal infeasibility is returned.
- XPRS_SOLINFO_ABSDUALINFEAS: the calculated maximum absolute dual infeasibility is returned.
- XPRS_SOLINFO_RELDUALINFEAS: the calculated maximum relative dual infeasibility is returned.
- XPRS_SOLINFO_MAXMIPFRACTIONAL: the calculated maximum absolute MIP fractionality or SOS infeasibility.
- XPRS_SOLINFO_ABSMIPINFEAS: the calculated maximum absolute MIP infeasibility (including delayed rows, indicators, general and piecewise linear constraints) is returned.
- XPRS_SOLINFO_RELMIPINFEAS: the calculated maximum relative MIP infeasibility (including delayed rows, indicators, general and piecewise linear constraints) is returned.
 
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  getRowTypepublic void getRowType(byte[] rowtype, int first, int last) throws XPRSprobExceptionReturns the row types for the rows in a given range.This function is used in the following examples: - Repair
 - Parameters:
- 
          rowtype- Character array of lengthlast-first+1characters where the row types will be returned:- N: indicates a free constraint;
- L: indicates a <= constraint;
- E: indicates an = constraint;
- G: indicates a >= constraint;
- R: indicates a range constraint.
 
- 
          first- First row in the range.
- 
          last- Last row in the range.
- Throws:
- 
          XPRSprobException
 
 -  getRowTypepublic byte getRowType(int x) throws XPRSprobExceptionConvenience wrapper forgetRowType(byte[], int, int). This overload retrieves and returns the information for only a single element instead of an array.This function is used in the following examples: - Repair
 - Parameters:
- 
          x- The index of the element to query.
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getRowType(byte[],int,int)
 
 -  getRowTypepublic byte[] getRowType(int first, int last) throws XPRSprobExceptionConvenience wrapper forgetRowType(byte[], int, int). This overload retrieves and returns the same information but allocates the required array for you.This function is used in the following examples: - Repair
 - Parameters:
- 
          first- First index (inclusive).
- 
          last- Last index (inclusive).
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getRowType(byte[],int,int)
 
 -  getPresolveBasispublic void getPresolveBasis(int[] rowstat, int[] colstat) throws XPRSprobExceptionReturns the current basis from memory into the user's data areas. If the problem is presolved, the presolved basis will be returned. Otherwise the original basis will be returned.- Parameters:
- 
          rowstat- Integer array of lengthROWSto the basis status of the stack, surplus or artificial variable associated with each row. The status will be one of:- 0: slack, surplus or artificial is non-basic at lower bound;
- 1: slack, surplus or artificial is basic;
- 2: slack or surplus is non-basic at upper bound.
 nullif not required.
- 
          colstat- Integer array of lengthCOLSto hold the basis status of the columns in the constraint matrix. The status will be one of:- 0: variable is non-basic at lower bound, or superbasic at zero if the variable has no lower bound;
- 1: variable is basic;
- 2: variable is at upper bound;
- 3: variable is super-basic.
 nullif not required.
- Throws:
- 
          XPRSprobException
 
 -  getColTypepublic void getColType(byte[] coltype, int first, int last) throws XPRSprobExceptionReturns the column types for the columns in a given range.This function is used in the following examples: - MostViolated
 - Parameters:
- 
          coltype- Character array of lengthlast-first+1where the column types will be returned:- C: indicates a continuous variable;
- I: indicates an integer variable;
- B: indicates a binary variable;
- S: indicates a semi-continuous variable;
- R: indicates a semi-continuous integer variable;
- P: indicates a partial integer variable.
 
- 
          first- First column in the range.
- 
          last- Last column in the range.
- Throws:
- 
          XPRSprobException
 
 -  getColTypepublic byte getColType(int x) throws XPRSprobExceptionConvenience wrapper forgetColType(byte[], int, int). This overload retrieves and returns the information for only a single element instead of an array.This function is used in the following examples: - MostViolated
 - Parameters:
- 
          x- The index of the element to query.
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getColType(byte[],int,int)
 
 -  getColTypepublic byte[] getColType(int first, int last) throws XPRSprobExceptionConvenience wrapper forgetColType(byte[], int, int). This overload retrieves and returns the same information but allocates the required array for you.This function is used in the following examples: - MostViolated
 - Parameters:
- 
          first- First index (inclusive).
- 
          last- Last index (inclusive).
- Returns:
- The requested information.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getColType(byte[],int,int)
 
 -  getQRowCoeffpublic void getQRowCoeff(int row, int rowqcol1, int rowqcol2, DoubleHolder p_rowqcoef) throws XPRSprobExceptionReturns a single quadratic constraint coefficient corresponding to the variable pair (rowqcol1,rowqcol2) of the Hessian of a given constraint.- Parameters:
- 
          row- The quadratic row where the coefficient is to be looked up.
- 
          rowqcol1- Column index for the first variable in the quadratic term.
- 
          rowqcol2- Column index for the second variable in the quadratic term.
- 
          p_rowqcoef- Pointer to a double value where the objective function coefficient is to be placed.
- Throws:
- 
          XPRSprobException
 
 -  getQRowCoeffpublic double getQRowCoeff(int row, int rowqcol1, int rowqcol2)Convenience wrapper forgetQRowCoeff(int,int,int,com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          row- The quadratic row where the coefficient is to be looked up.
- 
          rowqcol1- Column index for the first variable in the quadratic term.
- 
          rowqcol2- Column index for the second variable in the quadratic term.
- Returns:
- The value that the wrapped function would return in p_rowqcoef.
 
 -  getQRowQMatrixpublic void getQRowQMatrix(int row, int[] start, int[] colind, double[] rowqcoef, int maxcoefs, IntHolder p_ncoefs, int first, int last) throws XPRSprobExceptionReturns the nonzeros in a quadratic constraint coefficients matrix for the columns in a given range. To achieve maximum efficiency,getQRowQMatrixreturns the lower triangular part of this matrix only.- Parameters:
- 
          row- Index of the row for which the quadratic coefficients are to be returned.
- 
          start- Integer array which will be filled with indices indicating the starting offsets in thecolindandrowqcoefarrays for each requested column. It must be length of at leastlast-first+2. Columnistarts at positionstart[i]in thecolindandrowqcoefarrays, and hasstart[i+1]-start[i]elements in it. May benullif maxcoefs is 0.
- 
          colind- Integer array of length maxcoefs which will be filled with the column indices of the nonzero elements in the lower triangular part of Q. May benullif maxcoefs is 0.
- 
          rowqcoef- Double array of length maxcoefs which will be filled with the nonzero element values. May benullif maxcoefs is 0.
- 
          maxcoefs- Number of elements to be saved in colind and rowqcoef. Ifmaxcoefs < *p_ncoefs, onlymaxcoefselements are written.
- 
          p_ncoefs- Pointer to the integer where the number of nonzero elements in the queried columns will be returned. If the number of nonzero elements is greater than maxcoefs, then only maxcoefs elements will be returned. Ifp_ncoefsis smaller than maxcoefs, then onlyp_ncoefswill be returned. May benull.
- 
          first- First column in the range.
- 
          last- Last column in the range.
- Throws:
- 
          XPRSprobException
 
 -  getQRowQMatrixpublic int getQRowQMatrix(int row, int[] start, int[] colind, double[] rowqcoef, int maxcoefs, int first, int last) throws XPRSprobExceptionConvenience wrapper forgetQRowQMatrix(int, int[], int[], double[], int, com.dashoptimization.IntHolder, int, int).- Returns:
- 
          The value that would be returned by 
          getQRowQMatrix(int, int[], int[], double[], int, com.dashoptimization.IntHolder, int, int)as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getQRowQMatrix(int, int[], int[], double[], int, com.dashoptimization.IntHolder, int, int)
 
 -  getQRowQMatrixTripletspublic void getQRowQMatrixTriplets(int row, IntHolder p_ncoefs, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef) throws XPRSprobExceptionReturns the nonzeros in a quadratic constraint coefficients matrix as triplets (index pairs with coefficients). To achieve maximum efficiency,getQRowQMatrixTripletsreturns the lower triangular part of this matrix only.- Parameters:
- 
          row- Index of the row for which the quadratic coefficients are to be returned.
- 
          p_ncoefs- Argument used to return the number of quadratic coefficients in the row. May benullif not required.
- 
          rowqcol1- First index in the triplets. May benullif not required.
- 
          rowqcol2- Second index in the triplets. May benullif not required.
- 
          rowqcoef- Coefficients in the triplets. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  getQRowQMatrixTripletspublic int getQRowQMatrixTriplets(int row, int[] rowqcol1, int[] rowqcol2, double[] rowqcoef) throws XPRSprobExceptionConvenience wrapper forgetQRowQMatrixTriplets(int, com.dashoptimization.IntHolder, int[], int[], double[]).- Returns:
- 
          The value that would be returned by 
          getQRowQMatrixTriplets(int, com.dashoptimization.IntHolder, int[], int[], double[])as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getQRowQMatrixTriplets(int, com.dashoptimization.IntHolder, int[], int[], double[])
 
 -  chgQRowCoeffpublic void chgQRowCoeff(int row, int rowqcol1, int rowqcol2, double rowqcoef) throws XPRSprobExceptionChanges a single quadratic coefficient in a row.- Parameters:
- 
          row- Index of the row where the quadratic matrix is to be changed.
- 
          rowqcol1- First index of the coefficient to be changed.
- 
          rowqcol2- Second index of the coefficient to be changed.
- 
          rowqcoef- The new coefficient.
- Throws:
- 
          XPRSprobException
 
 -  getQRowspublic void getQRows(IntHolder p_nrows, int[] rowind) throws XPRSprobException Returns the list indices of the rows that have quadratic coefficients.- Parameters:
- 
          p_nrows- Used to return the number of quadratic constraints in the matrix.
- 
          rowind- Array of length*p_nrowsused to return the indices of rows with quadratic coefficients in them. May be null if not required.
- Throws:
- 
          XPRSprobException
 
 -  getQRowspublic int getQRows(int[] rowind) throws XPRSprobExceptionConvenience wrapper forgetQRows(com.dashoptimization.IntHolder, int[]).- Returns:
- 
          The value that would be returned by 
          getQRows(com.dashoptimization.IntHolder, int[])as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getQRows(com.dashoptimization.IntHolder, int[])
 
 -  getQRowspublic int getQRows() throws XPRSprobExceptionConvenience wrapper forgetQRows(com.dashoptimization.IntHolder, int[]).- Returns:
- 
          The value that would be returned by 
          getQRows(com.dashoptimization.IntHolder, int[])as output parameter.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          getQRows(com.dashoptimization.IntHolder, int[])
 
 -  chgBoundspublic void chgBounds(int nbounds, int[] colind, byte[] bndtype, double[] bndval) throws XPRSprobExceptionUsed to change the bounds on columns in the matrix.This function is used in the following examples: - AddMipSol
- FixBV
- RoundInt
 - Parameters:
- 
          nbounds- Number of bounds to change.
- 
          colind- Integer array of sizenboundscontaining the indices of the columns on which the bounds will change.
- 
          bndtype- Character array of lengthnboundsindicating the type of bound to change:- U: indicates change the upper bound;
- L: indicates change the lower bound;
- B: indicates change both bounds, i.e. fix the column.
 
- 
          bndval- Double array of lengthnboundsgiving the new bound values.
- Throws:
- 
          XPRSprobException
 
 -  refineMipSol@Deprecated public void refineMipSol(int options, java.lang.String flags, double[] solution, double[] refined, IntHolder p_status) throws XPRSprobExceptionDeprecated.Executes the MIP solution refiner.- Parameters:
- 
          options- Refinement options:- 0: Reducing MIP fractionality is priority (If bit 10 of- REFINEOPSis set, will switch to other mode if unsuccessful).
- 1: Reducing LP infeasibility is priority.
 
- 
          flags- Flags passed to any optimization calls during refinement.
- 
          solution- The MIP solution to refine. Must be a valid MIP solution.
- 
          refined- The refined MIP solution in case of success
- 
          p_status- Refinement results:- 0: An error has occurred
- 1: The solution has been refined
- 2: Current solution meets target criteria
- 3: Solution cannot be refined
- 5: The solution has been refined, but MIP fractionality could not be reduced.
 
- Throws:
- 
          XPRSprobException
 
 -  addMipSolpublic void addMipSol(int length, double[] solval, int[] colind, java.lang.String name) throws XPRSprobExceptionAdds a new feasible, infeasible or partial MIP solution for the problem to the Optimizer.This function is used in the following examples: - AddMipSol
- TSP
 - Parameters:
- 
          length- Number of columns for which a value is provided.
- 
          solval- Double array of lengthlengthcontaining solution values.
- 
          colind- Optional integer array of lengthlengthcontaining the column indices for the solution values provided insolval. Should benullwhenlengthis equal toCOLS, in which case it is assumed thatsolvalprovides a complete solution vector.
- 
          name- An optional name to associate with the solution. Can be null.
- Throws:
- 
          XPRSprobException
 
 -  getCutSlackpublic void getCutSlack(XPRScut cutind, DoubleHolder p_slack) throws XPRSprobException Used to calculate the slack value of a cut with respect to the current LP relaxation solution. The slack is calculated from the cut itself, and might be requested for any cut (even if it is not currently loaded into the problem).- Parameters:
- 
          cutind- Pointer of the cut for which the slack is to be calculated.
- 
          p_slack- Double pointer where the value of the slack is returned.
- Throws:
- 
          XPRSprobException
 
 -  getCutSlackpublic double getCutSlack(XPRScut cutind) Convenience wrapper forgetCutSlack(XPRScut,com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          cutind- Pointer of the cut for which the slack is to be calculated.
- Returns:
- The value that the wrapped function would return in p_slack.
 
 -  getCutMappublic void getCutMap(int ncuts, XPRScut[] cutind, int[] cutmap) throws XPRSprobExceptionUsed to return in which rows a list of cuts are currently loaded into the Optimizer. This is useful for example to retrieve the duals associated with active cuts.- Parameters:
- 
          ncuts- Number of cuts in the cutind array.
- 
          cutind- Pointer array to the cuts for which the row index is requested.
- 
          cutmap- Integer array of lengthncuts, where the row indices are returned.
- Throws:
- 
          XPRSprobException
 
 -  getPresolveSolpublic void getPresolveSol(double[] x, double[] slack, double[] duals, double[] djs) throws XPRSprobExceptionReturns the solution for the presolved problem from memory.This function is used in the following examples: - MostViolated
 - Parameters:
- 
          x- Double array of lengthCOLSwhere the values of the primal variables will be returned. May benullif not required.
- 
          slack- Double array of lengthROWSwhere the values of the slack variables will be returned. May benullif not required.
- 
          duals- Double array of lengthROWSwhere the values of the dual variables will be returned. May benullif not required.
- 
          djs- Double array of lengthCOLSwhere the reduced cost for each variable will be returned. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  getPresolveSolpublic void getPresolveSol(double[] x) throws XPRSprobExceptionConvenience wrapper forgetPresolveSol(double[], double[], double[], double[]).- Throws:
- 
          XPRSprobException
- See Also:
- 
          getPresolveSol(double[], double[], double[], double[])
 
 -  getSolutionpublic void getSolution(IntHolder status, double[] x, int first, int last) throws XPRSprobException Used to obtain the incumbent solution during or after optimization withoptimize,mipOptimize,lpOptimizeornlpOptimize.This function is used in the following examples: - Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Parameters:
- 
          status- Information about the solution returned.
- 
          x- Double pointer where the value of the primal variables will be returned. May benullif not required.
- 
          first- First column in the solution.
- 
          last- Last column in the solution.
- Throws:
- 
          XPRSprobException
 
 -  getSolutionpublic double[] getSolution(IntHolder status, int first, int last) Convenience wrapper forgetSolution(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array.
 -  getSolutionpublic double[] getSolution(int first, int last)Convenience wrapper forgetSolution(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array. Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...
 -  getSolutionpublic double getSolution(IntHolder status, int index) Convenience wrapper forgetSolution(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value.
 -  getSolutionpublic double getSolution(int index) Convenience wrapper forgetSolution(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value./ Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...
 -  getSolutionpublic double[] getSolution(IntHolder status) Convenience wrapper forgetSolution(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements.
 -  getSolutionpublic double[] getSolution() Convenience wrapper forgetSolution(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements. Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...
 -  getSlackspublic void getSlacks(IntHolder status, double[] slacks, int first, int last) throws XPRSprobException Used to obtain the slack values associated with the incumbent solution during or after optimization withoptimize,mipOptimize,lpOptimizeornlpOptimize.- Parameters:
- 
          status- Information about the slacks returned.
- 
          slacks- Double pointer where the value of the slack variables will be returned. May benullif not required.
- 
          first- First row in the slacks.
- 
          last- Last row in the slacks.
- Throws:
- 
          XPRSprobException
 
 -  getSlackspublic double[] getSlacks(IntHolder status, int first, int last) Convenience wrapper forgetSlacks(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array.
 -  getSlackspublic double[] getSlacks(int first, int last)Convenience wrapper forgetSlacks(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array. Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...
 -  getSlackpublic double getSlack(IntHolder status, int index) Convenience wrapper forgetSlacks(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value.
 -  getSlackpublic double getSlack(int index) Convenience wrapper forgetSlacks(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value./ Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...
 -  getSlackspublic double[] getSlacks(IntHolder status) Convenience wrapper forgetSlacks(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements.
 -  getSlackspublic double[] getSlacks() Convenience wrapper forgetSlacks(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements. Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...
 -  getDualspublic void getDuals(IntHolder status, double[] duals, int first, int last) throws XPRSprobException Used to obtain the dual values associated with the incumbent solution during or after optimization withoptimize,mipOptimize,lpOptimizeornlpOptimize.- Parameters:
- 
          status- Information about the dual solution returned.
- 
          duals- Double pointer where the value of the dual variables will be returned. May benullif not required.
- 
          first- First row in the dual solution.
- 
          last- Last row in the dual solution.
- Throws:
- 
          XPRSprobException
 
 -  getDualspublic double[] getDuals(IntHolder status, int first, int last) Convenience wrapper forgetDuals(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array.
 -  getDualspublic double[] getDuals(int first, int last)Convenience wrapper forgetDuals(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array. Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...
 -  getDualpublic double getDual(IntHolder status, int index) Convenience wrapper forgetDuals(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value.
 -  getDualpublic double getDual(int index) Convenience wrapper forgetDuals(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value./ Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...
 -  getDualspublic double[] getDuals(IntHolder status) Convenience wrapper forgetDuals(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements.
 -  getDualspublic double[] getDuals() Convenience wrapper forgetDuals(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements. Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...
 -  getRedCostspublic void getRedCosts(IntHolder status, double[] djs, int first, int last) throws XPRSprobException Used to obtain the reduced costs associated with the incumbent solution during or after optimization withoptimize,mipOptimize,lpOptimizeornlpOptimize.- Parameters:
- 
          status- Information about the reduced costs returned.
- 
          djs- Double pointer where the reduced costs for the variable will be returned. May benullif not required.
- 
          first- First column in the reduced costs.
- 
          last- Last column in the reduced costs.
- Throws:
- 
          XPRSprobException
 
 -  getRedCostspublic double[] getRedCosts(IntHolder status, int first, int last) Convenience wrapper forgetRedCosts(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array.
 -  getRedCostspublic double[] getRedCosts(int first, int last)Convenience wrapper forgetRedCosts(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array. Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...
 -  getRedCostpublic double getRedCost(IntHolder status, int index) Convenience wrapper forgetRedCosts(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value.
 -  getRedCostpublic double getRedCost(int index) Convenience wrapper forgetRedCosts(com.dashoptimization.IntHolder, double[], int, int)that queries only a single value./ Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...
 -  getRedCostspublic double[] getRedCosts(IntHolder status) Convenience wrapper forgetRedCosts(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements.
 -  getRedCostspublic double[] getRedCosts() Convenience wrapper forgetRedCosts(com.dashoptimization.IntHolder, double[], int, int)that allocates the output array and queries all elements. Before calling this function you should make sure that a solution is available and satisfies desired requiresments like feasible, optimal, ...
 -  getLpSolpublic void getLpSol(double[] x, double[] slack, double[] duals, double[] djs) throws XPRSprobExceptionUsed to obtain the LP solution values following optimization.This function is used in the following examples: - Knapsack
- MostViolated
- Repair
- Tableau
 - Parameters:
- 
          x- Double array of lengthORIGINALCOLSwhere the values of the primal variables will be returned. May benullif not required.
- 
          slack- Double array of lengthORIGINALROWSwhere the values of the slack variables will be returned. May benullif not required.
- 
          duals- Double array of lengthORIGINALROWSwhere the values of the dual variables (cBTB-1) will be returned. May benullif not required.
- 
          djs- Double array of lengthORIGINALCOLSwhere the reduced cost for each variable (cT-cBTB-1A) will be returned. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  getLpSolpublic void getLpSol(double[] x) throws XPRSprobExceptionConvenience wrapper forgetLpSol(double[], double[], double[], double[]).- Throws:
- 
          XPRSprobException
- See Also:
- 
          getLpSol(double[], double[], double[], double[])
 
 -  getLpSolValpublic void getLpSolVal(int col, int row, DoubleHolder p_x, DoubleHolder p_slack, DoubleHolder p_dual, DoubleHolder p_dj) throws XPRSprobExceptionUsed to obtain a single LP solution value following optimization.- Parameters:
- 
          col- Column index of the variable for which to return the solution value.
- 
          row- Row index of the constraint for which to return the solution value.
- 
          p_x- Double pointer where the value of the primal variable will be returned. May benullif not required.
- 
          p_slack- Double pointer where the value of the slack variable will be returned. May benullif not required.
- 
          p_dual- Double pointer where the value of the dual variable (cBTB-1) will be returned. May benullif not required.
- 
          p_dj- Double pointer where the reduced costs for the variable (cT-cBTB-1A) will be returned. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  getMipSolpublic void getMipSol(double[] x, double[] slack) throws XPRSprobExceptionUsed to obtain the solution values of the last MIP solution that was found.This function is used in the following examples: - GoalProg
- Repair
- SaveSol
 - Parameters:
- 
          x- Double array of lengthORIGINALCOLSwhere the values of the primal variables will be returned. May benullif not required.
- 
          slack- Double array of lengthORIGINALROWSwhere the values of the slack variables will be returned. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  getMipSolpublic void getMipSol(double[] x) throws XPRSprobExceptionConvenience wrapper forgetMipSol(double[], double[]).- Throws:
- 
          XPRSprobException
- See Also:
- 
          getMipSol(double[], double[])
 
 -  getMipSolValpublic void getMipSolVal(int col, int row, DoubleHolder p_x, DoubleHolder p_slack) throws XPRSprobExceptionUsed to obtain a single solution value of the last MIP solution that was found.- Parameters:
- 
          col- Column index of the variable for which to return the solution value.
- 
          row- Row index of the constraint for which to return the solution value.
- 
          p_x- Double pointer where the value of the primal variable will be returned. May benullif not required.
- 
          p_slack- Double pointer where the value of the slack variable will be returned. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  chgObjpublic void chgObj(int ncols, int[] colind, double[] objcoef) throws XPRSprobExceptionUsed to change the objective function coefficients.This function is used in the following examples: - GlobalObjectiveParametrics
- GoalProg
 - Parameters:
- 
          ncols- Number of objective function coefficient elements to change.
- 
          colind- Integer array of lengthncolscontaining the indices of the columns whose objective coefficients will change. An index of-1indicates that the fixed part of the objective function on the right hand side should change.
- 
          objcoef- Double array of lengthncolsgiving the new objective function coefficients.
- Throws:
- 
          XPRSprobException
 
 -  chgObjpublic void chgObj(int x, double value) throws XPRSprobExceptionConvenience wrapper forchgObj(int, int[], double[]). This function only modifies a single element.This function is used in the following examples: - GlobalObjectiveParametrics
- GoalProg
 - Parameters:
- 
          x- Index of element to modify.
- 
          value- New value forx.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          chgObj(int, int[], double[])
 
 -  chgCoefpublic void chgCoef(int row, int col, double coef) throws XPRSprobExceptionUsed to change a single coefficient in the matrix. If the coefficient does not already exist, a new coefficient will be added to the matrix. If many coefficients are being added to a row of the matrix, it may be more efficient to delete the old row of the matrix and add a new row.- Parameters:
- 
          row- Row index for the coefficient.
- 
          col- Column index for the coefficient.
- 
          coef- New value for the coefficient. Ifcoefis zero, any existing coefficient will be deleted.
- Throws:
- 
          XPRSprobException
 
 -  chgMCoefpublic void chgMCoef(int ncoefs, int[] rowind, int[] colind, double[] rowcoef) throws XPRSprobExceptionUsed to change multiple coefficients in the matrix. If any coefficient does not already exist, it will be added to the matrix. If many coefficients are being added to a row of the matrix, it may be more efficient to delete the old row of the matrix and add a new one.- Parameters:
- 
          ncoefs- Number of new coefficients.
- 
          rowind- Integer array of lengthncoefscontaining the row indices of the coefficients to be changed.
- 
          colind- Integer array of lengthncoefscontaining the column indices of the coefficients to be changed.
- 
          rowcoef- Double array of lengthncoefscontaining the new coefficient values. If an element ofrowcoefis zero, the coefficient will be deleted.
- Throws:
- 
          XPRSprobException
 
 -  chgMCoefpublic void chgMCoef(long ncoefs, int[] rowind, int[] colind, double[] rowcoef) throws XPRSprobExceptionUsed to change multiple coefficients in the matrix. If any coefficient does not already exist, it will be added to the matrix. If many coefficients are being added to a row of the matrix, it may be more efficient to delete the old row of the matrix and add a new one.- Parameters:
- 
          ncoefs- Number of new coefficients.
- 
          rowind- Integer array of lengthncoefscontaining the row indices of the coefficients to be changed.
- 
          colind- Integer array of lengthncoefscontaining the column indices of the coefficients to be changed.
- 
          rowcoef- Double array of lengthncoefscontaining the new coefficient values. If an element ofrowcoefis zero, the coefficient will be deleted.
- Throws:
- 
          XPRSprobException
 
 -  chgMQObjpublic void chgMQObj(int ncoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef) throws XPRSprobExceptionUsed to change multiple quadratic coefficients in the objective function. If any of the coefficients does not exist already, new coefficients will be added to the objective function.- Parameters:
- 
          ncoefs- The number of coefficients to change.
- 
          objqcol1- Integer array of sizencolcontaining the column index of the first variable in each quadratic term.
- 
          objqcol2- Integer array of sizencolcontaining the column index of the second variable in each quadratic term.
- 
          objqcoef- New values for the coefficients. If an entry inobjqcoefis0, the corresponding entry will be deleted. These are the coefficients of the quadratic Hessian matrix.
- Throws:
- 
          XPRSprobException
 
 -  chgMQObjpublic void chgMQObj(long ncoefs, int[] objqcol1, int[] objqcol2, double[] objqcoef) throws XPRSprobExceptionUsed to change multiple quadratic coefficients in the objective function. If any of the coefficients does not exist already, new coefficients will be added to the objective function.- Parameters:
- 
          ncoefs- The number of coefficients to change.
- 
          objqcol1- Integer array of sizencolcontaining the column index of the first variable in each quadratic term.
- 
          objqcol2- Integer array of sizencolcontaining the column index of the second variable in each quadratic term.
- 
          objqcoef- New values for the coefficients. If an entry inobjqcoefis0, the corresponding entry will be deleted. These are the coefficients of the quadratic Hessian matrix.
- Throws:
- 
          XPRSprobException
 
 -  chgQObjpublic void chgQObj(int objqcol1, int objqcol2, double objqcoef) throws XPRSprobExceptionUsed to change a single quadratic coefficient in the objective function corresponding to the variable pair(objqcol1,objqcol2)of the Hessian matrix.- Parameters:
- 
          objqcol1- Column index for the first variable in the quadratic term.
- 
          objqcol2- Column index for the second variable in the quadratic term.
- 
          objqcoef- New value for the coefficient in the quadratic Hessian matrix. If an entry inobjqcoefis0, the corresponding entry will be deleted.
- Throws:
- 
          XPRSprobException
 
 -  chgRHSpublic void chgRHS(int nrows, int[] rowind, double[] rhs) throws XPRSprobExceptionUsed to change right—hand side values of the problem.This function is used in the following examples: - GlobalRHSParametrics
- Repair
 - Parameters:
- 
          nrows- Number of right hand side values to change.
- 
          rowind- Integer array of lengthnrowscontaining the indices of the rows on which the right hand side values will change.
- 
          rhs- Double array of lengthnrowsgiving the right hand side values.
- Throws:
- 
          XPRSprobException
 
 -  chgRHSpublic void chgRHS(int x, double value) throws XPRSprobExceptionConvenience wrapper forchgRHS(int, int[], double[]). This function only modifies a single element.This function is used in the following examples: - GlobalRHSParametrics
- Repair
 - Parameters:
- 
          x- Index of element to modify.
- 
          value- New value forx.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          chgRHS(int, int[], double[])
 
 -  chgRHSrangepublic void chgRHSrange(int nrows, int[] rowind, double[] rng) throws XPRSprobExceptionUsed to change the range for a row of the problem matrix.This function is used in the following examples: - Repair
 - Parameters:
- 
          nrows- Number of range elements to change.
- 
          rowind- Integer array of lengthnrowscontaining the indices of the rows on which the range elements will change.
- 
          rng- Double array of lengthnrowsgiving the range values.
- Throws:
- 
          XPRSprobException
 
 -  chgRHSrangepublic void chgRHSrange(int x, double value) throws XPRSprobExceptionConvenience wrapper forchgRHSrange(int, int[], double[]). This function only modifies a single element.This function is used in the following examples: - Repair
 - Parameters:
- 
          x- Index of element to modify.
- 
          value- New value forx.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          chgRHSrange(int, int[], double[])
 
 -  chgRowTypepublic void chgRowType(int nrows, int[] rowind, byte[] rowtype) throws XPRSprobExceptionUsed to change the type of a row in the matrix.This function is used in the following examples: - Repair
 - Parameters:
- 
          nrows- Number of rows to change.
- 
          rowind- Integer array of lengthnrowscontaining the indices of the rows.
- 
          rowtype- Character array of lengthnrowsgiving the new row types:- L: indicates a <= row;
- E: indicates an = row;
- G: indicates a >= row;
- R: indicates a range row;
- N: indicates a free row.
 
- Throws:
- 
          XPRSprobException
 
 -  chgRowTypepublic void chgRowType(int x, byte value) throws XPRSprobExceptionConvenience wrapper forchgRowType(int, int[], byte[]). This function only modifies a single element.This function is used in the following examples: - Repair
 - Parameters:
- 
          x- Index of element to modify.
- 
          value- New value forx.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          chgRowType(int, int[], byte[])
 
 -  msAddJobpublic void msAddJob(java.lang.String description, int ninitial, int[] colind, double[] initial, int nintcontrols, int[] intcontrolid, int[] intcontrolval, int ndblcontrols, int[] dblcontrolid, double[] dblcontrolval, java.lang.Object data) throws XPRSprobExceptionAdds a multistart job to the multistart pool- Parameters:
- 
          description- Text description of the job. Used for messaging, may be null if not required.
- 
          ninitial- Number of initial values to set.
- 
          colind- Indices of the variables for which to set an initial value. May be null if ninitial is zero.
- 
          initial- Initial values for the variables for which to set an initial value. May be null if ninitial is zero.
- 
          nintcontrols- Number of integer controls to set.
- 
          intcontrolid- The indices of the integer controls to be set. May be null if nintcontrols is zero.
- 
          intcontrolval- The values of the integer controls to be set. May be null if nintcontrols is zero.
- 
          ndblcontrols- Number of double controls to set.
- 
          dblcontrolid- The indices of the double controls to be set. May be null if ndblcontrols is zero.
- 
          dblcontrolval- The values of the double controls to be set. May be null if ndblcontrols is zero.
- 
          data- Job specific user context pointer to be passed to the multistart callbacks.
- Throws:
- 
          XPRSprobException
 
 -  msAddPresetpublic void msAddPreset(java.lang.String description, int preset, int maxjobs, java.lang.Object data) throws XPRSprobExceptionLoads a preset of jobs into the multistart job pool.- Parameters:
- 
          description- Text description of the preset. Used for messaging, may be null if not required.
- 
          preset- Which preset to load.
- 
          maxjobs- Maximum number of jobs to be added to the multistart pool.
- 
          data- Job specific user context pointer to be passed to the multistart callbacks.
- Throws:
- 
          XPRSprobException
 
 -  msAddCustomPresetpublic void msAddCustomPreset(java.lang.String description, int preset, int maxjobs, int ninitial, int[] colind, double[] initial, int nintcontrols, int[] intcontrolid, int[] intcontrolval, int ndblcontrols, int[] dblcontrolid, double[] dblcontrolval, java.lang.Object data) throws XPRSprobExceptionA combined version of XSLPmsaddjob and XSLPmsaddpreset. The preset described is loaded, topped up with the specific settings supplied- Parameters:
- 
          description- Text description of the job. Used for messaging, may be null if not required.
- 
          preset- Which preset to load.
- 
          maxjobs- Maximum number of jobs to be added to the multistart pool.
- 
          ninitial- Number of initial values to set.
- 
          colind- Indices of the variables for which to set an initial value. May be null if ninitial is zero.
- 
          initial- Initial values for the variables for which to set an initial value. May be null if ninitial is zero.
- 
          nintcontrols- Number of integer controls to set.
- 
          intcontrolid- The indices of the integer controls to be set. May be null if nintcontrols is zero.
- 
          intcontrolval- The values of the integer controls to be set. May be null if nintcontrols is zero.
- 
          ndblcontrols- Number of double controls to set.
- 
          dblcontrolid- The indices of the double controls to be set. May be null if ndblcontrols is zero.
- 
          dblcontrolval- The values of the double controls to be set. May be null if ndblcontrols is zero.
- 
          data- Job specific user context pointer to be passed to the multistart callbacks.
- Throws:
- 
          XPRSprobException
 
 -  nlpSetFunctionErrorpublic void nlpSetFunctionError() throws XPRSprobExceptionSet the function error flag for the problem- Throws:
- 
          XPRSprobException
 
 -  nlpPrintEvalInfopublic void nlpPrintEvalInfo() throws XPRSprobExceptionPrint a summary of any evaluation errors that may have occurred during solving a problem- Throws:
- 
          XPRSprobException
 
 -  nlpValidatepublic void nlpValidate() throws XPRSprobExceptionValidate the feasibility of constraints in a converged solution- Throws:
- 
          XPRSprobException
 
 -  nlpOptimizepublic void nlpOptimize(java.lang.String flags) throws XPRSprobExceptionMaximize or minimize an SLP problem- Parameters:
- 
          flags- These have the same meaning as formaximandminim.
- Throws:
- 
          XPRSprobException
 
 -  getNlpsolpublic void getNlpsol(double[] x, double[] slack, double[] duals, double[] djs) throws XPRSprobExceptionObtain the current SLP solution values- Parameters:
- 
          x- Double array of lengthXSLP_ORIGINALCOLSto hold the values of the primal variables. May benullif not required.
- 
          slack- Double array of lengthXSLP_ORIGINALROWSto hold the values of the slack variables. May benullif not required.
- 
          duals- Double array of lengthXSLP_ORIGINALROWSto hold the values of the dual variables. May benullif not required.
- 
          djs- Double array of lengthXSLP_ORIGINALCOLSto hold the reduced costs of the primal variables. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  nlpCurrentIVpublic void nlpCurrentIV() throws XPRSprobExceptionTransfer the current solution to initial values- Throws:
- 
          XPRSprobException
 
 -  nlpValidateRowpublic void nlpValidateRow(int row) throws XPRSprobExceptionPrints an extensive analysis on a given constraint of the SLP problem- Parameters:
- 
          row- The index of the row to be analyzed
- Throws:
- 
          XPRSprobException
 
 -  nlpValidateKKTpublic void nlpValidateKKT(int mode, int respectbasis, int updatemult, double violtarget) throws XPRSprobExceptionValidates the first order optimality conditions also known as the Karush-Kuhn-Tucker (KKT) conditions versus the currect solution- Parameters:
- 
          mode- The calculation mode can be:- 0: recalculate the reduced costs at the current solution using the current dual solution.
- 1: minimize the sum of KKT violations by adjusting the dual solution.
- 2: perform both.
 
- 
          respectbasis- The following ways are defined to assess if a constraint is active:- 0: evaluate the recalculated slack activity versus- XSLP_ECFTOL_R.
- 1: use the basis status of the slack in the linearized problem if available.
- 2: use both.
 
- 
          updatemult- The calculated values can be:- 0: only used to calculate the- XSLP_VALIDATIONINDEX_Kmeasure.
- 1: used to update the current dual solution and reduced costs.
 
- 
          violtarget- When calculating the best KKT multipliers, it is possible to enforce an even distribution of reduced costs violations by enforcing a bound on them.
- Throws:
- 
          XPRSprobException
 
 -  msClearpublic void msClear() throws XPRSprobExceptionRemoves all scheduled jobs from the multistart job pool- Throws:
- 
          XPRSprobException
 
 -  nlpEvaluateFormulapublic void nlpEvaluateFormula(int parsed, int[] type, double[] values, DoubleHolder p_value) throws XPRSprobExceptionEvaluate a formula using the current values of the variables- Parameters:
- 
          parsed- integer indicating whether the formula of the item is in internal unparsed format (parsed=0) or parsed (reverse Polish) format (parsed=1).
- 
          type- Integer array of token types for the formula.
- 
          values- Double array of values corresponding totype.
- 
          p_value- Address of a double precision value to receive the result of the calculation.
- Throws:
- 
          XPRSprobException
 
 -  nlpEvaluateFormulapublic double nlpEvaluateFormula(int parsed, int[] type, double[] values)Convenience wrapper fornlpEvaluateFormula(int,int[],double[],com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          parsed- integer indicating whether the formula of the item is in internal unparsed format (parsed=0) or parsed (reverse Polish) format (parsed=1).
- 
          type- Integer array of token types for the formula.
- 
          values- Double array of values corresponding totype.
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  nlpValidateVectorpublic void nlpValidateVector(double[] solution, DoubleHolder p_suminf, DoubleHolder p_sumscaledinf, DoubleHolder p_objval) throws XPRSprobExceptionValidate the feasibility of constraints for a given solution- Parameters:
- 
          solution- A vector of lengthXPRS_COLScontaining the solution vector to be checked.
- 
          p_suminf- Pointer to double in which the sum of infeasibility will be returned. May be null if not required.
- 
          p_sumscaledinf- Pointer to double in which the sum of scaled (relative) infeasibility will be returned. May be null if not required.
- 
          p_objval- Pointer to double in which the net objective will be returned. May be null if not required.
- Throws:
- 
          XPRSprobException
 
 -  nlpAddUserFunctionpublic XPRSprob.MapFunction nlpAddUserFunction(java.lang.String funcname, int options, XPRSprob.MapFunctor function) throws XPRSprobException - Throws:
- 
          XPRSprobException
 
 -  nlpAddUserFunctionpublic XPRSprob.VecMapFunction nlpAddUserFunction(java.lang.String funcname, int nin, int options, XPRSprob.VecMapFunctor function) throws XPRSprobException - Throws:
- 
          XPRSprobException
 
 -  nlpAddUserFunctionpublic XPRSprob.MultiMapFunction nlpAddUserFunction(java.lang.String funcname, int nin, int nout, int options, XPRSprob.MultiMapFunctor function) throws XPRSprobException - Throws:
- 
          XPRSprobException
 
 -  nlpAddUserFunctionpublic XPRSprob.MapDeltaFunction nlpAddUserFunction(java.lang.String funcname, int options, XPRSprob.MapDeltaFunctor function) throws XPRSprobException - Throws:
- 
          XPRSprobException
 
 -  nlpAddUserFunctionpublic XPRSprob.VecMapDeltaFunction nlpAddUserFunction(java.lang.String funcname, int nin, int options, XPRSprob.VecMapDeltaFunctor function) throws XPRSprobException - Throws:
- 
          XPRSprobException
 
 -  nlpAddUserFunctionpublic XPRSprob.MultiMapDeltaFunction nlpAddUserFunction(java.lang.String funcname, int nin, int nout, int options, XPRSprob.MultiMapDeltaFunctor function) throws XPRSprobException - Throws:
- 
          XPRSprobException
 
 -  nlpDelUserFunctionpublic void nlpDelUserFunction(int type) throws XPRSprobExceptionDelete a user function from the current problem- Parameters:
- 
          type- The identifier of the user function as returned byXSLPadduserfunction.
- Throws:
- 
          XPRSprobException
 
 -  nlpImportLibFuncpublic void nlpImportLibFunc(java.lang.String libname, java.lang.String funcname, LongHolder p_function, IntHolder p_status) throws XPRSprobExceptionImports a function from a library file to be called as a user function- Parameters:
- 
          libname- Filename of the library.
- 
          funcname- Fucntion name inside the library.
- 
          p_function- Function pointer to return the loaded function.
- 
          p_status- Outcome of the load operation- 0: success.
- 1: library file not found.
- 2: library function in library file not found.
 
- Throws:
- 
          XPRSprobException
 
 -  nlpAddFormulaspublic void nlpAddFormulas(int ncoefs, int[] rowind, int[] formulastart, int parsed, int[] type, double[] value) throws XPRSprobExceptionAdd non-linear formulas to the SLP problem.- Parameters:
- 
          ncoefs- Number of non-linear coefficients to be added.
- 
          rowind- Integer array holding index of row for the coefficient.
- 
          formulastart- Integer array of lengthncoefs+1holding the start position in the arraystypeandvalueof the formula for the coefficients.formulastart[ncoefs]should be set to the next position after the end of the last formula.
- 
          parsed- Integer indicating whether the token arrays are formatted as internal unparsed (parsed=0) or internal parsed reverse Polish (parsed=1).
- 
          type- Array of token types providing the formula for each coefficient.
- 
          value- Array of values corresponding to the types intype.
- Throws:
- 
          XPRSprobException
 
 -  nlpChgFormulaString@Deprecated public void nlpChgFormulaString(int row, java.lang.String formula) throws XPRSprobExceptionDeprecated.Add or replace a single matrix formula using a character string for the formula.- Parameters:
- 
          row- The index of the matrix row for the coefficient.
- 
          formula- Character string holding the formula with the tokens separated by spaces.
- Throws:
- 
          XPRSprobException
 
 -  nlpChgFormulaStrpublic void nlpChgFormulaStr(int row, java.lang.String formula) throws XPRSprobExceptionAdd or replace a single matrix formula using a character string for the formula.This function is used in the following examples: - Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Parameters:
- 
          row- The index of the matrix row for the coefficient.
- 
          formula- Character string holding the formula with the tokens separated by spaces.
- Throws:
- 
          XPRSprobException
 
 -  nlpChgFormulapublic void nlpChgFormula(int row, int parsed, int[] type, double[] value) throws XPRSprobExceptionAdd or replace a single matrix formula using a parsed or unparsed formulaThis function is used in the following examples: - Polygon
- PolygonMap
- PolygonMapDelta
- PolygonMultiMap
- PolygonMultiMapDelta
- PolygonVecMap
- PolygonVecMapDelta
 - Parameters:
- 
          row- The index of the matrix row for the coefficient.
- 
          parsed- Integer indicating the whether the token arrays are formatted as internal unparsed (parsed=0) or internal parsed reverse Polish (parsed=1).
- 
          type- Array of token types providing the description and formula for each item.
- 
          value- Array of values corresponding to the types intype.
- Throws:
- 
          XPRSprobException
 
 -  nlpGetFormulapublic void nlpGetFormula(int row, int parsed, int maxtypes, IntHolder p_ntypes, int[] type, double[] value) throws XPRSprobExceptionRetrieve a single matrix formula as a formula split into tokens.- Parameters:
- 
          row- Integer holding the row index for the formula.
- 
          parsed- Integer indicating whether the formula of the row is to be returned in internal unparsed format (parsed=0) or parsed (reverse Polish) format (parsed=1).
- 
          maxtypes- Maximum number of tokens to return, i.e., the length of the type and value arrays.
- 
          p_ntypes- Will be set to the length of the formula, including theXSLP_EOFtoken.
- 
          type- Integer array to hold the token types for the formula. May benullifmaxtypesis zero.
- 
          value- Double array of values corresponding totype. May benullifmaxtypesis zero.
- Throws:
- 
          XPRSprobException
 
 -  nlpGetFormulaRowspublic void nlpGetFormulaRows(IntHolder p_nformulas, int[] rowind) throws XPRSprobException Retrieve the list of positions of the nonlinear formulas in the problem- Parameters:
- 
          p_nformulas- Integer used to return the total number of nonlinear formulas in the problem.
- 
          rowind- Integer array used for returning the row positions of the nonlinear formulas. May be null if not required.
- Throws:
- 
          XPRSprobException
 
 -  nlpLoadFormulaspublic void nlpLoadFormulas(int nnlpcoefs, int[] rowind, int[] formulastart, int parsed, int[] type, double[] value) throws XPRSprobExceptionLoad non-linear formulas into the SLP problem- Parameters:
- 
          nnlpcoefs- Number of non-linear coefficients to be loaded.
- 
          rowind- Integer array holding index of row for the coefficient.
- 
          formulastart- Integer array of lengthnnlpcoefs+1holding the start position in the arraystypeandvalueof the formula for the coefficients.formulastart[nnlpcoefs]should be set to the next position after the end of the last formula.
- 
          parsed- Integer indicating whether the token arrays are formatted as internal unparsed (parsed=0) or internal parsed reverse Polish (parsed=1).
- 
          type- Array of token types providing the formula for each coefficient.
- 
          value- Array of values corresponding to the types intype.
- Throws:
- 
          XPRSprobException
 
 -  nlpDelFormulaspublic void nlpDelFormulas(int nformulas, int[] rowind) throws XPRSprobExceptionDelete nonlinear formulas from the current problem- Parameters:
- 
          nformulas- Number of SLP nonlinear formulas to delete.
- 
          rowind- Row indices of the SLP nonlinear formulas to delete.
- Throws:
- 
          XPRSprobException
 
 -  nlpGetFormulaString@Deprecated public void nlpGetFormulaString(int row, StringHolder formula, int maxbytes) throws XPRSprobExceptionDeprecated.Retrieve a single matrix formula in a character string.- Parameters:
- 
          row- Integer holding the row index for the formula.
- 
          formula- Character buffer in which the formula will be placed in the same format as used for input from a file. The formula will be null terminated.
- 
          maxbytes- Maximum length of returned formula.
- Throws:
- 
          XPRSprobException
 
 -  nlpGetFormulaStrpublic void nlpGetFormulaStr(int row, StringHolder formula, int maxbytes, IntHolder p_nbytes) throws XPRSprobExceptionRetrieve a single matrix formula in a character string.- Parameters:
- 
          row- Integer holding the row index for the formula.
- 
          formula- Character buffer in which the formula will be placed in the same format as used for input from a file. The formula will be null terminated. This argument may benullifmaxbytesis zero.
- 
          maxbytes- Length of theformulabuffer.
- 
          p_nbytes- Will be set to the length of the formula, not including the null terminator.
- Throws:
- 
          XPRSprobException
 
 -  nlpSetInitValpublic void nlpSetInitVal(int nvars, int[] colind, double[] initial) throws XPRSprobExceptionSet the initial value of a variable- Parameters:
- 
          nvars- Number of variables for which the initial value is to be set.
- 
          colind- Array of lengthnvarswith index of the column for which the initial value is provided.
- 
          initial- Array of lengthnvarswith the initial value.
- Throws:
- 
          XPRSprobException
 
 -  nlpSetInitValpublic void nlpSetInitVal(int x, double value) throws XPRSprobExceptionConvenience wrapper fornlpSetInitVal(int, int[], double[]). This function only modifies a single element.- Parameters:
- 
          x- Index of element to modify.
- 
          value- New value forx.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          nlpSetInitVal(int, int[], double[])
 
 -  slpGetCoefFormulapublic void slpGetCoefFormula(int row, int col, DoubleHolder p_factor, int parsed, int maxtypes, IntHolder p_ntypes, int[] type, double[] value) throws XPRSprobExceptionRetrieve a single matrix coefficient as a formula split into tokens. For a simpler version of this function seeXSLPchgformula.- Parameters:
- 
          row- Integer holding the row index for the coefficient.
- 
          col- Integer holding the column index for the coefficient.
- 
          p_factor- Address of a double precision variable to receive the value of the constant factor multiplying the formula in the coefficient.
- 
          parsed- Integer indicating whether the formula of the item is to be returned in internal unparsed format (parsed=0) or parsed (reverse Polish) format (parsed=1).
- 
          maxtypes- Maximum number of tokens to return, i.e. length of thetypeandvaluearrays.
- 
          p_ntypes- Number of tokens returned in type and value.
- 
          type- Integer array to hold the token types for the formula.
- 
          value- Double array of values corresponding totype.
- Throws:
- 
          XPRSprobException
 
 -  slpGetCoefspublic void slpGetCoefs(IntHolder p_ncoefs, int[] rowind, int[] colind) throws XPRSprobException Retrieve the list of positions of the nonlinear coefficients in the problem. For a simpler version of this function seeXSLPgetformularows.- Parameters:
- 
          p_ncoefs- Integer used to return the total number of nonlinear coefficients in the problem.
- 
          rowind- Integer array used for returning the row positions of the coefficients. May be null if not required.
- 
          colind- Integer array used for returning the column positions of the coefficients. May be null if not required.
- Throws:
- 
          XPRSprobException
 
 -  slpLoadCoefspublic void slpLoadCoefs(int ncoefs, int[] rowind, int[] colind, double[] factor, int[] formulastart, int parsed, int[] type, double[] coef) throws XPRSprobExceptionLoad non-linear coefficients into the SLP problem. For a simpler version of this function seeXSLPloadformulas.- Parameters:
- 
          ncoefs- Number of non-linear coefficients to be loaded.
- 
          rowind- Integer array holding index of row for the coefficient.
- 
          colind- Integer array holding index of column for the coefficient.
- 
          factor- Double array holding factor by which formula is scaled. If this isnull, then a value of 1.0 will be used.
- 
          formulastart- Integer array of lengthncoefs+1holding the start position in the arraystypeandcoefof the formula for the coefficients.formulastart[ncoefs]should be set to the next position after the end of the last formula.
- 
          parsed- Integer indicating whether the token arrays are formatted as internal unparsed (parsed=0) or internal parsed reverse Polish (parsed=1).
- 
          type- Array of token types providing the formula for each coefficient.
- 
          coef- Array of values corresponding to the types intype.
- Throws:
- 
          XPRSprobException
 
 -  slpDelCoefspublic void slpDelCoefs(int ncoefs, int[] rowind, int[] colind) throws XPRSprobExceptionDelete coefficients from the current problem. For a simpler version of this function seeXSLPdelformulas.- Parameters:
- 
          ncoefs- Number of SLP coefficients to delete.
- 
          rowind- Row indices of the SLP coefficients to delete.
- 
          colind- Column indices of the SLP coefficients to delete.
- Throws:
- 
          XPRSprobException
 
 -  slpDelCoefspublic void slpDelCoefs(int x, int value) throws XPRSprobExceptionConvenience wrapper forslpDelCoefs(int, int[], int[]). This function only modifies a single element.- Parameters:
- 
          x- Index of element to modify.
- 
          value- New value forx.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          slpDelCoefs(int, int[], int[])
 
 -  slpGetCCoef@Deprecated public void slpGetCCoef(int row, int col, DoubleHolder p_factor, StringHolder formula, int maxbytes) throws XPRSprobExceptionDeprecated.Retrieve a single matrix coefficient as a formula in a character string. For a simpler version of this function seenlpGetFormulaStr.- Parameters:
- 
          row- Integer holding the row index for the coefficient.
- 
          col- Integer holding the column index for the coefficient.
- 
          p_factor- Address of a double precision variable to receive the value of the constant factor multiplying the formula in the coefficient.
- 
          formula- Character buffer in which the formula will be placed in the same format as used for input from a file. The formula will be null terminated.
- 
          maxbytes- Maximum length of returned formula.
- Throws:
- 
          XPRSprobException
 
 -  slpGetCoefStrpublic void slpGetCoefStr(int row, int col, DoubleHolder p_factor, StringHolder formula, int maxbytes, IntHolder p_nbytes) throws XPRSprobExceptionRetrieve a single matrix coefficient as a formula in a character string. For a simpler version of this function seenlpGetFormulaStr.- Parameters:
- 
          row- Integer holding the row index for the coefficient.
- 
          col- Integer holding the column index for the coefficient.
- 
          p_factor- Address of a double precision variable to receive the value of the constant factor multiplying the formula in the coefficient.
- 
          formula- Character buffer in which the formula will be placed in the same format as used for input from a file. The formula will be null terminated. This argument may benullifmaxbytesis zero.
- 
          maxbytes- Length of theformulabuffer.
- 
          p_nbytes- Will be set to the length of the formula, not including the null terminator.
- Throws:
- 
          XPRSprobException
 
 -  slpSetDetRowpublic void slpSetDetRow(int nvars, int[] colind, int[] rowind) throws XPRSprobExceptionSet the determining row of a variable- Parameters:
- 
          nvars- The number of variables for which determining rows are set.
- 
          colind- Array of lengthnvarswith the index of the column for which the determining row is set.
- 
          rowind- Array of lengthnvarswith the index of the determining row.
- Throws:
- 
          XPRSprobException
 
 -  slpSetDetRowpublic void slpSetDetRow(int x, int value) throws XPRSprobExceptionConvenience wrapper forslpSetDetRow(int, int[], int[]). This function only modifies a single element.- Parameters:
- 
          x- Index of element to modify.
- 
          value- New value forx.
- Throws:
- 
          XPRSprobException
- See Also:
- 
          slpSetDetRow(int, int[], int[])
 
 -  slpAddCoefspublic void slpAddCoefs(int ncoefs, int[] rowind, int[] colind, double[] factor, int[] formulastart, int parsed, int[] type, double[] value) throws XPRSprobExceptionAdd non-linear coefficients to the SLP problem. For a simpler version of this function seeXSLPaddformulas.- Parameters:
- 
          ncoefs- Number of non-linear coefficients to be added.
- 
          rowind- Integer array holding index of row for the coefficient.
- 
          colind- Integer array holding index of column for the coefficient.
- 
          factor- Double array holding factor by which formula is scaled. If this isnull, then a value of 1.0 will be used.
- 
          formulastart- Integer array of lengthncoefs+1holding the start position in the arraystypeandvalueof the formula for the coefficients.formulastart[ncoefs]should be set to the next position after the end of the last formula.
- 
          parsed- Integer indicating whether the token arrays are formatted as internal unparsed (parsed=0) or internal parsed reverse Polish (parsed=1).
- 
          type- Array of token types providing the formula for each coefficient.
- 
          value- Array of values corresponding to the types intype.
- Throws:
- 
          XPRSprobException
 
 -  slpChgCCoef@Deprecated public void slpChgCCoef(int row, int col, DoubleHolder factor, java.lang.String formula) throws XPRSprobExceptionDeprecated.Add or change a single matrix coefficient using a character string for the formula. For a simpler version of this function seenlpChgFormulaStr.- Parameters:
- 
          row- The index of the matrix row for the coefficient.
- 
          col- The index of the matrix column for the coefficient.
- 
          factor- Address of a double precision variable holding the constant multiplier for the formula. Iffactorisnull, a value of 1.0 will be used.
- 
          formula- Character string holding the formula with the tokens separated by spaces.
- Throws:
- 
          XPRSprobException
 
 -  slpChgCoefStrpublic void slpChgCoefStr(int row, int col, DoubleHolder factor, java.lang.String formula) throws XPRSprobExceptionAdd or change a single matrix coefficient using a character string for the formula. For a simpler version of this function seenlpChgFormulaStr.- Parameters:
- 
          row- The index of the matrix row for the coefficient.
- 
          col- The index of the matrix column for the coefficient.
- 
          factor- Address of a double precision variable holding the constant multiplier for the formula. Iffactorisnull, a value of 1.0 will be used.
- 
          formula- Character string holding the formula with the tokens separated by spaces.
- Throws:
- 
          XPRSprobException
 
 -  slpChgCoefpublic void slpChgCoef(int row, int col, DoubleHolder factor, int parsed, int[] type, double[] value) throws XPRSprobExceptionAdd or change a single matrix coefficient using a parsed or unparsed formula. For a simpler version of this function seeXSLPchgformula.- Parameters:
- 
          row- The index of the matrix row for the coefficient.
- 
          col- The index of the matrix column for the coefficient.
- 
          factor- Address of a double precision variable holding the constant multiplier for the formula. Iffactorisnull, a value of 1.0 will be used.
- 
          parsed- Integer indicating the whether the token arrays are formatted as internal unparsed (parsed=0) or internal parsed reverse Polish (parsed=1).
- 
          type- Array of token types providing the description and formula for each item.
- 
          value- Array of values corresponding to the types intype.
- Throws:
- 
          XPRSprobException
 
 -  slpCascadeSolpublic void slpCascadeSol() throws XPRSprobExceptionRe-calculate consistent values for SLP variables based on the current values of the remaining variables.- Throws:
- 
          XPRSprobException
 
 -  slpCascadeOrderpublic void slpCascadeOrder() throws XPRSprobExceptionEstablish a re-calculation sequence for SLP variables with determining rows.- Throws:
- 
          XPRSprobException
 
 -  slpChgRowStatuspublic void slpChgRowStatus(int row, IntHolder status) throws XPRSprobExceptionChange the status setting of a constraint- Parameters:
- 
          row- The index of the matrix row to be changed.
- 
          status- Address of an integer holding a bitmap with the new status settings. If the status is to be changed, always get the current status first (useXSLPgetrowstatus) and then change settings as required. The only settings likely to be changed are:- Bit 11: Set if row must not have a penalty error vector. This is the equivalent of an enforced constraint (SLPDATA type EC).
 
- Throws:
- 
          XPRSprobException
 
 -  slpChgRowStatuspublic int slpChgRowStatus(int row) Convenience wrapper forslpChgRowStatus(int,com.dashoptimization.IntHolder)that returns the output argument.- Parameters:
- 
          row- The index of the matrix row to be changed.
- Returns:
- The value that the wrapped function would return in status.
 
 -  slpChgRowWtpublic void slpChgRowWt(int row, DoubleHolder weight) throws XPRSprobExceptionSet or change the initial penalty error weight for a row- Parameters:
- 
          row- The index of the row whose weight is to be set or changed.
- 
          weight- Address of a double precision variable holding the new value of the weight. May benullif not required.
- Throws:
- 
          XPRSprobException
 
 -  slpChgDeltaTypepublic void slpChgDeltaType(int nvars, int[] varind, int[] deltatypes, double[] values) throws XPRSprobExceptionChanges the type of the delta assigned to a nonlinear variable- Parameters:
- 
          nvars- The number of SLP variables to change the delta type for.
- 
          varind- Indices of the variables to change the deltas for.
- 
          deltatypes- Type if the delta variable:- 0: Differentiable variable, default.
- 1: Variable defined over the grid size given in- values.
- 2: Variable where a minimum perturbation size given in- valuesmay be required before a significant change in the problem is achieved.
- 3: Variable where a meaningful step size should automatically be detected, with an upper limit given in- values.
 
- 
          values- Grid or minimum step sizes for the variables.
- Throws:
- 
          XPRSprobException
 
 -  slpChgCascadeNLimitpublic void slpChgCascadeNLimit(int col, int limit) throws XPRSprobExceptionSet a variable specific cascade iteration limit- Parameters:
- 
          col- The index of the column corresponding to the SLP variable for which the cascading limit is to be imposed.
- 
          limit- The new cascading iteration limit.
- Throws:
- 
          XPRSprobException
 
 -  slpConstructpublic void slpConstruct() throws XPRSprobExceptionCreate the full augmented SLP matrix and data structures, ready for optimization- Throws:
- 
          XPRSprobException
 
 -  slpGetRowStatuspublic void slpGetRowStatus(int row, IntHolder p_status) throws XPRSprobExceptionRetrieve the status setting of a constraint- Parameters:
- 
          row- The index of the matrix row whose data is to be obtained.
- 
          p_status- Address of an integer holding a bitmap to receive the status settings.
- Throws:
- 
          XPRSprobException
 
 -  slpGetRowWTpublic void slpGetRowWT(int row, DoubleHolder p_weight) throws XPRSprobExceptionGet the initial penalty error weight for a row- Parameters:
- 
          row- The index of the row whose weight is to be retrieved.
- 
          p_weight- Address of a double precision variable to receive the value of the weight.
- Throws:
- 
          XPRSprobException
 
 -  slpGetRowWTpublic double slpGetRowWT(int row) Convenience wrapper forslpGetRowWT(int,com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          row- The index of the row whose weight is to be retrieved.
- Returns:
- The value that the wrapped function would return in p_weight.
 
 -  slpEvaluateCoefpublic void slpEvaluateCoef(int row, int col, DoubleHolder p_value) throws XPRSprobExceptionEvaluate a coefficient using the current values of the variables- Parameters:
- 
          row- Integer index of the row.
- 
          col- Integer index of the column.
- 
          p_value- Address of a double precision value to receive the result of the calculation.
- Throws:
- 
          XPRSprobException
 
 -  slpEvaluateCoefpublic double slpEvaluateCoef(int row, int col)Convenience wrapper forslpEvaluateCoef(int,int,com.dashoptimization.DoubleHolder)that returns the output argument.- Parameters:
- 
          row- Integer index of the row.
- 
          col- Integer index of the column.
- Returns:
- The value that the wrapped function would return in p_value.
 
 -  slpReInitializepublic void slpReInitialize() throws XPRSprobExceptionReset the SLP problem to match a just augmented system- Throws:
- 
          XPRSprobException
 
 -  slpUnConstructpublic void slpUnConstruct() throws XPRSprobExceptionRemoves the augmentation and returns the problem to its pre-linearization state- Throws:
- 
          XPRSprobException
 
 -  slpUpdateLinearizationpublic void slpUpdateLinearization() throws XPRSprobExceptionUpdates the current linearization- Throws:
- 
          XPRSprobException
 
 -  slpFixPenaltiespublic void slpFixPenalties(IntHolder p_status) throws XPRSprobException Fixe the values of the error vectors- Parameters:
- 
          p_status- Return status after fixing the penalty variables: 0 is successful, nonzero otherwise.
- Throws:
- 
          XPRSprobException
 
 -  nlpPostsolveProbpublic void nlpPostsolveProb() throws XPRSprobExceptionRestores the problem to its pre-solve state- Throws:
- 
          XPRSprobException
 
 -  nlpCalcSlackspublic void nlpCalcSlacks(double[] solution, double[] slack) throws XPRSprobExceptionCalculate the slack values for the provided solution in the non-linear problem- Parameters:
- 
          solution- The solution for which the slacks are requested for.
- 
          slack- Vector of length NROWS to return the slack in.
- Throws:
- 
          XPRSprobException
 
 -  addLpLogListenerpublic void addLpLogListener(XPRSlpLogListener listener) throws XPRSexception Add a listener for the LpLog callback. Note that an object can have multiple LpLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all LpLog listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addLpLogListenerpublic void addLpLogListener(XPRSlpLogListener listener, java.lang.Object data) throws XPRSexception Add a listener for the LpLog callback. Note that an object can have multiple LpLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all LpLog listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addLpLogListenerpublic void addLpLogListener(XPRSlpLogListener listener, int priority) throws XPRSexception Add a listener for the LpLog callback. Note that an object can have multiple LpLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all LpLog listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addLpLogListenerpublic void addLpLogListener(XPRSlpLogListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the LpLog callback. Note that an object can have multiple LpLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all LpLog listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeLpLogListenerpublic void removeLpLogListener(XPRSlpLogListener listener) throws XPRSexception Removes the given LpLog listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeLpLogListenerpublic void removeLpLogListener(XPRSlpLogListener listener, java.lang.Object data) throws XPRSexception Removes the given LpLog listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeLpLogListener@Deprecated public void removeLpLogListener() throws XPRSexceptionDeprecated.Removes all LpLog listeners from the object. @deprecated as of Xpress 7.1, please useremoveLpLogListener(XPRSlpLogListener)orremoveLpLogListeners()- Throws:
- 
          XPRSexception
 
 -  removeLpLogListenerspublic void removeLpLogListeners() throws XPRSexceptionRemove all listeners for the LpLog callback- Throws:
- 
          XPRSexception
 
 -  addMipLogListenerpublic void addMipLogListener(XPRSmipLogListener listener) throws XPRSexception Add a listener for the MipLog callback. Note that an object can have multiple MipLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MipLog listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addMipLogListenerpublic void addMipLogListener(XPRSmipLogListener listener, java.lang.Object data) throws XPRSexception Add a listener for the MipLog callback. Note that an object can have multiple MipLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MipLog listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addMipLogListenerpublic void addMipLogListener(XPRSmipLogListener listener, int priority) throws XPRSexception Add a listener for the MipLog callback. Note that an object can have multiple MipLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MipLog listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addMipLogListenerpublic void addMipLogListener(XPRSmipLogListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the MipLog callback. Note that an object can have multiple MipLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MipLog listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeMipLogListenerpublic void removeMipLogListener(XPRSmipLogListener listener) throws XPRSexception Removes the given MipLog listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeMipLogListenerpublic void removeMipLogListener(XPRSmipLogListener listener, java.lang.Object data) throws XPRSexception Removes the given MipLog listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeMipLogListener@Deprecated public void removeMipLogListener() throws XPRSexceptionDeprecated.Removes all MipLog listeners from the object. @deprecated as of Xpress 7.1, please useremoveMipLogListener(XPRSmipLogListener)orremoveMipLogListeners()- Throws:
- 
          XPRSexception
 
 -  removeMipLogListenerspublic void removeMipLogListeners() throws XPRSexceptionRemove all listeners for the MipLog callback- Throws:
- 
          XPRSexception
 
 -  addCutLogListenerpublic void addCutLogListener(XPRScutLogListener listener) throws XPRSexception Add a listener for the CutLog callback. Note that an object can have multiple CutLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all CutLog listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addCutLogListenerpublic void addCutLogListener(XPRScutLogListener listener, java.lang.Object data) throws XPRSexception Add a listener for the CutLog callback. Note that an object can have multiple CutLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all CutLog listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addCutLogListenerpublic void addCutLogListener(XPRScutLogListener listener, int priority) throws XPRSexception Add a listener for the CutLog callback. Note that an object can have multiple CutLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all CutLog listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addCutLogListenerpublic void addCutLogListener(XPRScutLogListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the CutLog callback. Note that an object can have multiple CutLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all CutLog listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeCutLogListenerpublic void removeCutLogListener(XPRScutLogListener listener) throws XPRSexception Removes the given CutLog listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeCutLogListenerpublic void removeCutLogListener(XPRScutLogListener listener, java.lang.Object data) throws XPRSexception Removes the given CutLog listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeCutLogListener@Deprecated public void removeCutLogListener() throws XPRSexceptionDeprecated.Removes all CutLog listeners from the object. @deprecated as of Xpress 7.1, please useremoveCutLogListener(XPRScutLogListener)orremoveCutLogListeners()- Throws:
- 
          XPRSexception
 
 -  removeCutLogListenerspublic void removeCutLogListeners() throws XPRSexceptionRemove all listeners for the CutLog callback- Throws:
- 
          XPRSexception
 
 -  addBarLogListenerpublic void addBarLogListener(XPRSbarLogListener listener) throws XPRSexception Add a listener for the BarLog callback. Note that an object can have multiple BarLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BarLog listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addBarLogListenerpublic void addBarLogListener(XPRSbarLogListener listener, java.lang.Object data) throws XPRSexception Add a listener for the BarLog callback. Note that an object can have multiple BarLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BarLog listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addBarLogListenerpublic void addBarLogListener(XPRSbarLogListener listener, int priority) throws XPRSexception Add a listener for the BarLog callback. Note that an object can have multiple BarLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BarLog listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addBarLogListenerpublic void addBarLogListener(XPRSbarLogListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the BarLog callback. Note that an object can have multiple BarLog listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BarLog listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeBarLogListenerpublic void removeBarLogListener(XPRSbarLogListener listener) throws XPRSexception Removes the given BarLog listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeBarLogListenerpublic void removeBarLogListener(XPRSbarLogListener listener, java.lang.Object data) throws XPRSexception Removes the given BarLog listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeBarLogListener@Deprecated public void removeBarLogListener() throws XPRSexceptionDeprecated.Removes all BarLog listeners from the object. @deprecated as of Xpress 7.1, please useremoveBarLogListener(XPRSbarLogListener)orremoveBarLogListeners()- Throws:
- 
          XPRSexception
 
 -  removeBarLogListenerspublic void removeBarLogListeners() throws XPRSexceptionRemove all listeners for the BarLog callback- Throws:
- 
          XPRSexception
 
 -  addCutMgrListener@Deprecated public void addCutMgrListener(XPRScutMgrListener listener) throws XPRSexception Deprecated.since 37.00Add a listener for the CutMgr callback. Note that an object can have multiple CutMgr listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all CutMgr listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addCutMgrListener@Deprecated public void addCutMgrListener(XPRScutMgrListener listener, java.lang.Object data) throws XPRSexception Deprecated.since 37.00Add a listener for the CutMgr callback. Note that an object can have multiple CutMgr listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all CutMgr listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addCutMgrListener@Deprecated public void addCutMgrListener(XPRScutMgrListener listener, int priority) throws XPRSexception Deprecated.since 37.00Add a listener for the CutMgr callback. Note that an object can have multiple CutMgr listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all CutMgr listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addCutMgrListener@Deprecated public void addCutMgrListener(XPRScutMgrListener listener, java.lang.Object data, int priority) throws XPRSexception Deprecated.since 37.00Add a listener for the CutMgr callback. Note that an object can have multiple CutMgr listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all CutMgr listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeCutMgrListener@Deprecated public void removeCutMgrListener(XPRScutMgrListener listener) throws XPRSexception Deprecated.since 37.00Removes the given CutMgr listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeCutMgrListener@Deprecated public void removeCutMgrListener(XPRScutMgrListener listener, java.lang.Object data) throws XPRSexception Deprecated.since 37.00Removes the given CutMgr listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeCutMgrListener@Deprecated public void removeCutMgrListener() throws XPRSexceptionDeprecated.Removes all CutMgr listeners from the object. @deprecated as of Xpress 7.1, please useremoveCutMgrListener(XPRScutMgrListener)orremoveCutMgrListeners()- Throws:
- 
          XPRSexception
 
 -  removeCutMgrListeners@Deprecated public void removeCutMgrListeners() throws XPRSexceptionDeprecated.since 37.00Remove all listeners for the CutMgr callback- Throws:
- 
          XPRSexception
 
 -  addChgNodeListener@Deprecated public void addChgNodeListener(XPRSchgNodeListener listener) throws XPRSexception Deprecated.since 37.00Add a listener for the ChgNode callback. Note that an object can have multiple ChgNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ChgNode listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addChgNodeListener@Deprecated public void addChgNodeListener(XPRSchgNodeListener listener, java.lang.Object data) throws XPRSexception Deprecated.since 37.00Add a listener for the ChgNode callback. Note that an object can have multiple ChgNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ChgNode listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addChgNodeListener@Deprecated public void addChgNodeListener(XPRSchgNodeListener listener, int priority) throws XPRSexception Deprecated.since 37.00Add a listener for the ChgNode callback. Note that an object can have multiple ChgNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ChgNode listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addChgNodeListener@Deprecated public void addChgNodeListener(XPRSchgNodeListener listener, java.lang.Object data, int priority) throws XPRSexception Deprecated.since 37.00Add a listener for the ChgNode callback. Note that an object can have multiple ChgNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ChgNode listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeChgNodeListener@Deprecated public void removeChgNodeListener(XPRSchgNodeListener listener) throws XPRSexception Deprecated.since 37.00Removes the given ChgNode listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeChgNodeListener@Deprecated public void removeChgNodeListener(XPRSchgNodeListener listener, java.lang.Object data) throws XPRSexception Deprecated.since 37.00Removes the given ChgNode listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeChgNodeListener@Deprecated public void removeChgNodeListener() throws XPRSexceptionDeprecated.Removes all ChgNode listeners from the object. @deprecated as of Xpress 7.1, please useremoveChgNodeListener(XPRSchgNodeListener)orremoveChgNodeListeners()- Throws:
- 
          XPRSexception
 
 -  removeChgNodeListeners@Deprecated public void removeChgNodeListeners() throws XPRSexceptionDeprecated.since 37.00Remove all listeners for the ChgNode callback- Throws:
- 
          XPRSexception
 
 -  addOptNodeListenerpublic void addOptNodeListener(XPRSoptNodeListener listener) throws XPRSexception Add a listener for the OptNode callback. Note that an object can have multiple OptNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all OptNode listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addOptNodeListenerpublic void addOptNodeListener(XPRSoptNodeListener listener, java.lang.Object data) throws XPRSexception Add a listener for the OptNode callback. Note that an object can have multiple OptNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all OptNode listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addOptNodeListenerpublic void addOptNodeListener(XPRSoptNodeListener listener, int priority) throws XPRSexception Add a listener for the OptNode callback. Note that an object can have multiple OptNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all OptNode listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addOptNodeListenerpublic void addOptNodeListener(XPRSoptNodeListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the OptNode callback. Note that an object can have multiple OptNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all OptNode listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeOptNodeListenerpublic void removeOptNodeListener(XPRSoptNodeListener listener) throws XPRSexception Removes the given OptNode listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeOptNodeListenerpublic void removeOptNodeListener(XPRSoptNodeListener listener, java.lang.Object data) throws XPRSexception Removes the given OptNode listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeOptNodeListener@Deprecated public void removeOptNodeListener() throws XPRSexceptionDeprecated.Removes all OptNode listeners from the object. @deprecated as of Xpress 7.1, please useremoveOptNodeListener(XPRSoptNodeListener)orremoveOptNodeListeners()- Throws:
- 
          XPRSexception
 
 -  removeOptNodeListenerspublic void removeOptNodeListeners() throws XPRSexceptionRemove all listeners for the OptNode callback- Throws:
- 
          XPRSexception
 
 -  addPreNodeListenerpublic void addPreNodeListener(XPRSpreNodeListener listener) throws XPRSexception Add a listener for the PreNode callback. Note that an object can have multiple PreNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all PreNode listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addPreNodeListenerpublic void addPreNodeListener(XPRSpreNodeListener listener, java.lang.Object data) throws XPRSexception Add a listener for the PreNode callback. Note that an object can have multiple PreNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all PreNode listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addPreNodeListenerpublic void addPreNodeListener(XPRSpreNodeListener listener, int priority) throws XPRSexception Add a listener for the PreNode callback. Note that an object can have multiple PreNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all PreNode listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addPreNodeListenerpublic void addPreNodeListener(XPRSpreNodeListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the PreNode callback. Note that an object can have multiple PreNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all PreNode listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removePreNodeListenerpublic void removePreNodeListener(XPRSpreNodeListener listener) throws XPRSexception Removes the given PreNode listener from the object.- Throws:
- 
          XPRSexception
 
 -  removePreNodeListenerpublic void removePreNodeListener(XPRSpreNodeListener listener, java.lang.Object data) throws XPRSexception Removes the given PreNode listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removePreNodeListener@Deprecated public void removePreNodeListener() throws XPRSexceptionDeprecated.Removes all PreNode listeners from the object. @deprecated as of Xpress 7.1, please useremovePreNodeListener(XPRSpreNodeListener)orremovePreNodeListeners()- Throws:
- 
          XPRSexception
 
 -  removePreNodeListenerspublic void removePreNodeListeners() throws XPRSexceptionRemove all listeners for the PreNode callback- Throws:
- 
          XPRSexception
 
 -  addInfNodeListenerpublic void addInfNodeListener(XPRSinfNodeListener listener) throws XPRSexception Add a listener for the InfNode callback. Note that an object can have multiple InfNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all InfNode listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addInfNodeListenerpublic void addInfNodeListener(XPRSinfNodeListener listener, java.lang.Object data) throws XPRSexception Add a listener for the InfNode callback. Note that an object can have multiple InfNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all InfNode listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addInfNodeListenerpublic void addInfNodeListener(XPRSinfNodeListener listener, int priority) throws XPRSexception Add a listener for the InfNode callback. Note that an object can have multiple InfNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all InfNode listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addInfNodeListenerpublic void addInfNodeListener(XPRSinfNodeListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the InfNode callback. Note that an object can have multiple InfNode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all InfNode listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeInfNodeListenerpublic void removeInfNodeListener(XPRSinfNodeListener listener) throws XPRSexception Removes the given InfNode listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeInfNodeListenerpublic void removeInfNodeListener(XPRSinfNodeListener listener, java.lang.Object data) throws XPRSexception Removes the given InfNode listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeInfNodeListener@Deprecated public void removeInfNodeListener() throws XPRSexceptionDeprecated.Removes all InfNode listeners from the object. @deprecated as of Xpress 7.1, please useremoveInfNodeListener(XPRSinfNodeListener)orremoveInfNodeListeners()- Throws:
- 
          XPRSexception
 
 -  removeInfNodeListenerspublic void removeInfNodeListeners() throws XPRSexceptionRemove all listeners for the InfNode callback- Throws:
- 
          XPRSexception
 
 -  addNodeCutoffListenerpublic void addNodeCutoffListener(XPRSnodeCutoffListener listener) throws XPRSexception Add a listener for the NodeCutoff callback. Note that an object can have multiple NodeCutoff listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all NodeCutoff listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addNodeCutoffListenerpublic void addNodeCutoffListener(XPRSnodeCutoffListener listener, java.lang.Object data) throws XPRSexception Add a listener for the NodeCutoff callback. Note that an object can have multiple NodeCutoff listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all NodeCutoff listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addNodeCutoffListenerpublic void addNodeCutoffListener(XPRSnodeCutoffListener listener, int priority) throws XPRSexception Add a listener for the NodeCutoff callback. Note that an object can have multiple NodeCutoff listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all NodeCutoff listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addNodeCutoffListenerpublic void addNodeCutoffListener(XPRSnodeCutoffListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the NodeCutoff callback. Note that an object can have multiple NodeCutoff listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all NodeCutoff listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeNodeCutoffListenerpublic void removeNodeCutoffListener(XPRSnodeCutoffListener listener) throws XPRSexception Removes the given NodeCutoff listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeNodeCutoffListenerpublic void removeNodeCutoffListener(XPRSnodeCutoffListener listener, java.lang.Object data) throws XPRSexception Removes the given NodeCutoff listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeNodeCutoffListener@Deprecated public void removeNodeCutoffListener() throws XPRSexceptionDeprecated.Removes all NodeCutoff listeners from the object. @deprecated as of Xpress 7.1, please useremoveNodeCutoffListener(XPRSnodeCutoffListener)orremoveNodeCutoffListeners()- Throws:
- 
          XPRSexception
 
 -  removeNodeCutoffListenerspublic void removeNodeCutoffListeners() throws XPRSexceptionRemove all listeners for the NodeCutoff callback- Throws:
- 
          XPRSexception
 
 -  addIntSolListenerpublic void addIntSolListener(XPRSintSolListener listener) throws XPRSexception Add a listener for the IntSol callback. Note that an object can have multiple IntSol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all IntSol listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addIntSolListenerpublic void addIntSolListener(XPRSintSolListener listener, java.lang.Object data) throws XPRSexception Add a listener for the IntSol callback. Note that an object can have multiple IntSol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all IntSol listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addIntSolListenerpublic void addIntSolListener(XPRSintSolListener listener, int priority) throws XPRSexception Add a listener for the IntSol callback. Note that an object can have multiple IntSol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all IntSol listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addIntSolListenerpublic void addIntSolListener(XPRSintSolListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the IntSol callback. Note that an object can have multiple IntSol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all IntSol listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeIntSolListenerpublic void removeIntSolListener(XPRSintSolListener listener) throws XPRSexception Removes the given IntSol listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeIntSolListenerpublic void removeIntSolListener(XPRSintSolListener listener, java.lang.Object data) throws XPRSexception Removes the given IntSol listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeIntSolListener@Deprecated public void removeIntSolListener() throws XPRSexceptionDeprecated.Removes all IntSol listeners from the object. @deprecated as of Xpress 7.1, please useremoveIntSolListener(XPRSintSolListener)orremoveIntSolListeners()- Throws:
- 
          XPRSexception
 
 -  removeIntSolListenerspublic void removeIntSolListeners() throws XPRSexceptionRemove all listeners for the IntSol callback- Throws:
- 
          XPRSexception
 
 -  addPreIntsolListenerpublic void addPreIntsolListener(XPRSpreIntsolListener listener) throws XPRSexception Add a listener for the PreIntsol callback. Note that an object can have multiple PreIntsol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all PreIntsol listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addPreIntsolListenerpublic void addPreIntsolListener(XPRSpreIntsolListener listener, java.lang.Object data) throws XPRSexception Add a listener for the PreIntsol callback. Note that an object can have multiple PreIntsol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all PreIntsol listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addPreIntsolListenerpublic void addPreIntsolListener(XPRSpreIntsolListener listener, int priority) throws XPRSexception Add a listener for the PreIntsol callback. Note that an object can have multiple PreIntsol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all PreIntsol listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addPreIntsolListenerpublic void addPreIntsolListener(XPRSpreIntsolListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the PreIntsol callback. Note that an object can have multiple PreIntsol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all PreIntsol listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removePreIntsolListenerpublic void removePreIntsolListener(XPRSpreIntsolListener listener) throws XPRSexception Removes the given PreIntsol listener from the object.- Throws:
- 
          XPRSexception
 
 -  removePreIntsolListenerpublic void removePreIntsolListener(XPRSpreIntsolListener listener, java.lang.Object data) throws XPRSexception Removes the given PreIntsol listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removePreIntsolListener@Deprecated public void removePreIntsolListener() throws XPRSexceptionDeprecated.Removes all PreIntsol listeners from the object. @deprecated as of Xpress 7.1, please useremovePreIntsolListener(XPRSpreIntsolListener)orremovePreIntsolListeners()- Throws:
- 
          XPRSexception
 
 -  removePreIntsolListenerspublic void removePreIntsolListeners() throws XPRSexceptionRemove all listeners for the PreIntsol callback- Throws:
- 
          XPRSexception
 
 -  addChgBranchListener@Deprecated public void addChgBranchListener(XPRSchgBranchListener listener) throws XPRSexception Deprecated.since 37.00Add a listener for the ChgBranch callback. Note that an object can have multiple ChgBranch listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ChgBranch listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addChgBranchListener@Deprecated public void addChgBranchListener(XPRSchgBranchListener listener, java.lang.Object data) throws XPRSexception Deprecated.since 37.00Add a listener for the ChgBranch callback. Note that an object can have multiple ChgBranch listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ChgBranch listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addChgBranchListener@Deprecated public void addChgBranchListener(XPRSchgBranchListener listener, int priority) throws XPRSexception Deprecated.since 37.00Add a listener for the ChgBranch callback. Note that an object can have multiple ChgBranch listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ChgBranch listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addChgBranchListener@Deprecated public void addChgBranchListener(XPRSchgBranchListener listener, java.lang.Object data, int priority) throws XPRSexception Deprecated.since 37.00Add a listener for the ChgBranch callback. Note that an object can have multiple ChgBranch listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ChgBranch listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeChgBranchListener@Deprecated public void removeChgBranchListener(XPRSchgBranchListener listener) throws XPRSexception Deprecated.since 37.00Removes the given ChgBranch listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeChgBranchListener@Deprecated public void removeChgBranchListener(XPRSchgBranchListener listener, java.lang.Object data) throws XPRSexception Deprecated.since 37.00Removes the given ChgBranch listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeChgBranchListener@Deprecated public void removeChgBranchListener() throws XPRSexceptionDeprecated.Removes all ChgBranch listeners from the object. @deprecated as of Xpress 7.1, please useremoveChgBranchListener(XPRSchgBranchListener)orremoveChgBranchListeners()- Throws:
- 
          XPRSexception
 
 -  removeChgBranchListeners@Deprecated public void removeChgBranchListeners() throws XPRSexceptionDeprecated.since 37.00Remove all listeners for the ChgBranch callback- Throws:
- 
          XPRSexception
 
 -  addMessageListenerpublic void addMessageListener(XPRSmessageListener listener) throws XPRSexception Add a listener for the Message callback. Note that an object can have multiple Message listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all Message listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addMessageListenerpublic void addMessageListener(XPRSmessageListener listener, java.lang.Object data) throws XPRSexception Add a listener for the Message callback. Note that an object can have multiple Message listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all Message listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addMessageListenerpublic void addMessageListener(XPRSmessageListener listener, int priority) throws XPRSexception Add a listener for the Message callback. Note that an object can have multiple Message listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all Message listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addMessageListenerpublic void addMessageListener(XPRSmessageListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the Message callback. Note that an object can have multiple Message listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all Message listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeMessageListenerpublic void removeMessageListener(XPRSmessageListener listener) throws XPRSexception Removes the given Message listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeMessageListenerpublic void removeMessageListener(XPRSmessageListener listener, java.lang.Object data) throws XPRSexception Removes the given Message listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeMessageListener@Deprecated public void removeMessageListener() throws XPRSexceptionDeprecated.Removes all Message listeners from the object. @deprecated as of Xpress 7.1, please useremoveMessageListener(XPRSmessageListener)orremoveMessageListeners()- Throws:
- 
          XPRSexception
 
 -  removeMessageListenerspublic void removeMessageListeners() throws XPRSexceptionRemove all listeners for the Message callback- Throws:
- 
          XPRSexception
 
 -  addMipThreadListenerpublic void addMipThreadListener(XPRSmipThreadListener listener) throws XPRSexception Add a listener for the MipThread callback. Note that an object can have multiple MipThread listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MipThread listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addMipThreadListenerpublic void addMipThreadListener(XPRSmipThreadListener listener, java.lang.Object data) throws XPRSexception Add a listener for the MipThread callback. Note that an object can have multiple MipThread listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MipThread listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addMipThreadListenerpublic void addMipThreadListener(XPRSmipThreadListener listener, int priority) throws XPRSexception Add a listener for the MipThread callback. Note that an object can have multiple MipThread listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MipThread listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addMipThreadListenerpublic void addMipThreadListener(XPRSmipThreadListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the MipThread callback. Note that an object can have multiple MipThread listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MipThread listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeMipThreadListenerpublic void removeMipThreadListener(XPRSmipThreadListener listener) throws XPRSexception Removes the given MipThread listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeMipThreadListenerpublic void removeMipThreadListener(XPRSmipThreadListener listener, java.lang.Object data) throws XPRSexception Removes the given MipThread listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeMipThreadListener@Deprecated public void removeMipThreadListener() throws XPRSexceptionDeprecated.Removes all MipThread listeners from the object. @deprecated as of Xpress 7.1, please useremoveMipThreadListener(XPRSmipThreadListener)orremoveMipThreadListeners()- Throws:
- 
          XPRSexception
 
 -  removeMipThreadListenerspublic void removeMipThreadListeners() throws XPRSexceptionRemove all listeners for the MipThread callback- Throws:
- 
          XPRSexception
 
 -  addDestroyMTListenerpublic void addDestroyMTListener(XPRSdestroyMTListener listener) throws XPRSexception Add a listener for the DestroyMT callback. Note that an object can have multiple DestroyMT listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all DestroyMT listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addDestroyMTListenerpublic void addDestroyMTListener(XPRSdestroyMTListener listener, java.lang.Object data) throws XPRSexception Add a listener for the DestroyMT callback. Note that an object can have multiple DestroyMT listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all DestroyMT listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addDestroyMTListenerpublic void addDestroyMTListener(XPRSdestroyMTListener listener, int priority) throws XPRSexception Add a listener for the DestroyMT callback. Note that an object can have multiple DestroyMT listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all DestroyMT listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addDestroyMTListenerpublic void addDestroyMTListener(XPRSdestroyMTListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the DestroyMT callback. Note that an object can have multiple DestroyMT listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all DestroyMT listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeDestroyMTListenerpublic void removeDestroyMTListener(XPRSdestroyMTListener listener) throws XPRSexception Removes the given DestroyMT listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeDestroyMTListenerpublic void removeDestroyMTListener(XPRSdestroyMTListener listener, java.lang.Object data) throws XPRSexception Removes the given DestroyMT listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeDestroyMTListener@Deprecated public void removeDestroyMTListener() throws XPRSexceptionDeprecated.Removes all DestroyMT listeners from the object. @deprecated as of Xpress 7.1, please useremoveDestroyMTListener(XPRSdestroyMTListener)orremoveDestroyMTListeners()- Throws:
- 
          XPRSexception
 
 -  removeDestroyMTListenerspublic void removeDestroyMTListeners() throws XPRSexceptionRemove all listeners for the DestroyMT callback- Throws:
- 
          XPRSexception
 
 -  addNewnodeListenerpublic void addNewnodeListener(XPRSnewnodeListener listener) throws XPRSexception Add a listener for the Newnode callback. Note that an object can have multiple Newnode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all Newnode listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addNewnodeListenerpublic void addNewnodeListener(XPRSnewnodeListener listener, java.lang.Object data) throws XPRSexception Add a listener for the Newnode callback. Note that an object can have multiple Newnode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all Newnode listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addNewnodeListenerpublic void addNewnodeListener(XPRSnewnodeListener listener, int priority) throws XPRSexception Add a listener for the Newnode callback. Note that an object can have multiple Newnode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all Newnode listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addNewnodeListenerpublic void addNewnodeListener(XPRSnewnodeListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the Newnode callback. Note that an object can have multiple Newnode listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all Newnode listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeNewnodeListenerpublic void removeNewnodeListener(XPRSnewnodeListener listener) throws XPRSexception Removes the given Newnode listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeNewnodeListenerpublic void removeNewnodeListener(XPRSnewnodeListener listener, java.lang.Object data) throws XPRSexception Removes the given Newnode listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeNewnodeListener@Deprecated public void removeNewnodeListener() throws XPRSexceptionDeprecated.Removes all Newnode listeners from the object. @deprecated as of Xpress 7.1, please useremoveNewnodeListener(XPRSnewnodeListener)orremoveNewnodeListeners()- Throws:
- 
          XPRSexception
 
 -  removeNewnodeListenerspublic void removeNewnodeListeners() throws XPRSexceptionRemove all listeners for the Newnode callback- Throws:
- 
          XPRSexception
 
 -  addBarIterationListenerpublic void addBarIterationListener(XPRSbarIterationListener listener) throws XPRSexception Add a listener for the BarIteration callback. Note that an object can have multiple BarIteration listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BarIteration listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addBarIterationListenerpublic void addBarIterationListener(XPRSbarIterationListener listener, java.lang.Object data) throws XPRSexception Add a listener for the BarIteration callback. Note that an object can have multiple BarIteration listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BarIteration listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addBarIterationListenerpublic void addBarIterationListener(XPRSbarIterationListener listener, int priority) throws XPRSexception Add a listener for the BarIteration callback. Note that an object can have multiple BarIteration listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BarIteration listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addBarIterationListenerpublic void addBarIterationListener(XPRSbarIterationListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the BarIteration callback. Note that an object can have multiple BarIteration listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BarIteration listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeBarIterationListenerpublic void removeBarIterationListener(XPRSbarIterationListener listener) throws XPRSexception Removes the given BarIteration listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeBarIterationListenerpublic void removeBarIterationListener(XPRSbarIterationListener listener, java.lang.Object data) throws XPRSexception Removes the given BarIteration listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeBarIterationListener@Deprecated public void removeBarIterationListener() throws XPRSexceptionDeprecated.Removes all BarIteration listeners from the object. @deprecated as of Xpress 7.1, please useremoveBarIterationListener(XPRSbarIterationListener)orremoveBarIterationListeners()- Throws:
- 
          XPRSexception
 
 -  removeBarIterationListenerspublic void removeBarIterationListeners() throws XPRSexceptionRemove all listeners for the BarIteration callback- Throws:
- 
          XPRSexception
 
 -  addPresolveListenerpublic void addPresolveListener(XPRSpresolveListener listener) throws XPRSexception Add a listener for the Presolve callback. Note that an object can have multiple Presolve listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all Presolve listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addPresolveListenerpublic void addPresolveListener(XPRSpresolveListener listener, java.lang.Object data) throws XPRSexception Add a listener for the Presolve callback. Note that an object can have multiple Presolve listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all Presolve listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addPresolveListenerpublic void addPresolveListener(XPRSpresolveListener listener, int priority) throws XPRSexception Add a listener for the Presolve callback. Note that an object can have multiple Presolve listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all Presolve listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addPresolveListenerpublic void addPresolveListener(XPRSpresolveListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the Presolve callback. Note that an object can have multiple Presolve listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all Presolve listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removePresolveListenerpublic void removePresolveListener(XPRSpresolveListener listener) throws XPRSexception Removes the given Presolve listener from the object.- Throws:
- 
          XPRSexception
 
 -  removePresolveListenerpublic void removePresolveListener(XPRSpresolveListener listener, java.lang.Object data) throws XPRSexception Removes the given Presolve listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removePresolveListener@Deprecated public void removePresolveListener() throws XPRSexceptionDeprecated.Removes all Presolve listeners from the object. @deprecated as of Xpress 7.1, please useremovePresolveListener(XPRSpresolveListener)orremovePresolveListeners()- Throws:
- 
          XPRSexception
 
 -  removePresolveListenerspublic void removePresolveListeners() throws XPRSexceptionRemove all listeners for the Presolve callback- Throws:
- 
          XPRSexception
 
 -  addChangeBranchObjectListenerpublic void addChangeBranchObjectListener(XPRSchangeBranchObjectListener listener) throws XPRSexception Add a listener for the ChangeBranchObject callback. Note that an object can have multiple ChangeBranchObject listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ChangeBranchObject listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addChangeBranchObjectListenerpublic void addChangeBranchObjectListener(XPRSchangeBranchObjectListener listener, java.lang.Object data) throws XPRSexception Add a listener for the ChangeBranchObject callback. Note that an object can have multiple ChangeBranchObject listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ChangeBranchObject listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addChangeBranchObjectListenerpublic void addChangeBranchObjectListener(XPRSchangeBranchObjectListener listener, int priority) throws XPRSexception Add a listener for the ChangeBranchObject callback. Note that an object can have multiple ChangeBranchObject listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ChangeBranchObject listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addChangeBranchObjectListenerpublic void addChangeBranchObjectListener(XPRSchangeBranchObjectListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the ChangeBranchObject callback. Note that an object can have multiple ChangeBranchObject listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ChangeBranchObject listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeChangeBranchObjectListenerpublic void removeChangeBranchObjectListener(XPRSchangeBranchObjectListener listener) throws XPRSexception Removes the given ChangeBranchObject listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeChangeBranchObjectListenerpublic void removeChangeBranchObjectListener(XPRSchangeBranchObjectListener listener, java.lang.Object data) throws XPRSexception Removes the given ChangeBranchObject listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeChangeBranchObjectListener@Deprecated public void removeChangeBranchObjectListener() throws XPRSexceptionDeprecated.Removes all ChangeBranchObject listeners from the object. @deprecated as of Xpress 7.1, please useremoveChangeBranchObjectListener(XPRSchangeBranchObjectListener)orremoveChangeBranchObjectListeners()- Throws:
- 
          XPRSexception
 
 -  removeChangeBranchObjectListenerspublic void removeChangeBranchObjectListeners() throws XPRSexceptionRemove all listeners for the ChangeBranchObject callback- Throws:
- 
          XPRSexception
 
 -  addComputeRestartListenerpublic void addComputeRestartListener(XPRScomputeRestartListener listener) throws XPRSexception Add a listener for the ComputeRestart callback. Note that an object can have multiple ComputeRestart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ComputeRestart listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addComputeRestartListenerpublic void addComputeRestartListener(XPRScomputeRestartListener listener, java.lang.Object data) throws XPRSexception Add a listener for the ComputeRestart callback. Note that an object can have multiple ComputeRestart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ComputeRestart listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addComputeRestartListenerpublic void addComputeRestartListener(XPRScomputeRestartListener listener, int priority) throws XPRSexception Add a listener for the ComputeRestart callback. Note that an object can have multiple ComputeRestart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ComputeRestart listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addComputeRestartListenerpublic void addComputeRestartListener(XPRScomputeRestartListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the ComputeRestart callback. Note that an object can have multiple ComputeRestart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all ComputeRestart listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeComputeRestartListenerpublic void removeComputeRestartListener(XPRScomputeRestartListener listener) throws XPRSexception Removes the given ComputeRestart listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeComputeRestartListenerpublic void removeComputeRestartListener(XPRScomputeRestartListener listener, java.lang.Object data) throws XPRSexception Removes the given ComputeRestart listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeComputeRestartListener@Deprecated public void removeComputeRestartListener() throws XPRSexceptionDeprecated.Removes all ComputeRestart listeners from the object. @deprecated as of Xpress 7.1, please useremoveComputeRestartListener(XPRScomputeRestartListener)orremoveComputeRestartListeners()- Throws:
- 
          XPRSexception
 
 -  removeComputeRestartListenerspublic void removeComputeRestartListeners() throws XPRSexceptionRemove all listeners for the ComputeRestart callback- Throws:
- 
          XPRSexception
 
 -  addNodeLPSolvedListenerpublic void addNodeLPSolvedListener(XPRSnodeLPSolvedListener listener) throws XPRSexception Add a listener for the NodeLPSolved callback. Note that an object can have multiple NodeLPSolved listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all NodeLPSolved listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addNodeLPSolvedListenerpublic void addNodeLPSolvedListener(XPRSnodeLPSolvedListener listener, java.lang.Object data) throws XPRSexception Add a listener for the NodeLPSolved callback. Note that an object can have multiple NodeLPSolved listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all NodeLPSolved listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addNodeLPSolvedListenerpublic void addNodeLPSolvedListener(XPRSnodeLPSolvedListener listener, int priority) throws XPRSexception Add a listener for the NodeLPSolved callback. Note that an object can have multiple NodeLPSolved listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all NodeLPSolved listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addNodeLPSolvedListenerpublic void addNodeLPSolvedListener(XPRSnodeLPSolvedListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the NodeLPSolved callback. Note that an object can have multiple NodeLPSolved listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all NodeLPSolved listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeNodeLPSolvedListenerpublic void removeNodeLPSolvedListener(XPRSnodeLPSolvedListener listener) throws XPRSexception Removes the given NodeLPSolved listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeNodeLPSolvedListenerpublic void removeNodeLPSolvedListener(XPRSnodeLPSolvedListener listener, java.lang.Object data) throws XPRSexception Removes the given NodeLPSolved listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeNodeLPSolvedListener@Deprecated public void removeNodeLPSolvedListener() throws XPRSexceptionDeprecated.Removes all NodeLPSolved listeners from the object. @deprecated as of Xpress 7.1, please useremoveNodeLPSolvedListener(XPRSnodeLPSolvedListener)orremoveNodeLPSolvedListeners()- Throws:
- 
          XPRSexception
 
 -  removeNodeLPSolvedListenerspublic void removeNodeLPSolvedListeners() throws XPRSexceptionRemove all listeners for the NodeLPSolved callback- Throws:
- 
          XPRSexception
 
 -  addGapNotifyListenerpublic void addGapNotifyListener(XPRSgapNotifyListener listener) throws XPRSexception Add a listener for the GapNotify callback. Note that an object can have multiple GapNotify listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all GapNotify listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addGapNotifyListenerpublic void addGapNotifyListener(XPRSgapNotifyListener listener, java.lang.Object data) throws XPRSexception Add a listener for the GapNotify callback. Note that an object can have multiple GapNotify listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all GapNotify listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addGapNotifyListenerpublic void addGapNotifyListener(XPRSgapNotifyListener listener, int priority) throws XPRSexception Add a listener for the GapNotify callback. Note that an object can have multiple GapNotify listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all GapNotify listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addGapNotifyListenerpublic void addGapNotifyListener(XPRSgapNotifyListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the GapNotify callback. Note that an object can have multiple GapNotify listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all GapNotify listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeGapNotifyListenerpublic void removeGapNotifyListener(XPRSgapNotifyListener listener) throws XPRSexception Removes the given GapNotify listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeGapNotifyListenerpublic void removeGapNotifyListener(XPRSgapNotifyListener listener, java.lang.Object data) throws XPRSexception Removes the given GapNotify listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeGapNotifyListener@Deprecated public void removeGapNotifyListener() throws XPRSexceptionDeprecated.Removes all GapNotify listeners from the object. @deprecated as of Xpress 7.1, please useremoveGapNotifyListener(XPRSgapNotifyListener)orremoveGapNotifyListeners()- Throws:
- 
          XPRSexception
 
 -  removeGapNotifyListenerspublic void removeGapNotifyListeners() throws XPRSexceptionRemove all listeners for the GapNotify callback- Throws:
- 
          XPRSexception
 
 -  addUserSolNotifyListenerpublic void addUserSolNotifyListener(XPRSuserSolNotifyListener listener) throws XPRSexception Add a listener for the UserSolNotify callback. Note that an object can have multiple UserSolNotify listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all UserSolNotify listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addUserSolNotifyListenerpublic void addUserSolNotifyListener(XPRSuserSolNotifyListener listener, java.lang.Object data) throws XPRSexception Add a listener for the UserSolNotify callback. Note that an object can have multiple UserSolNotify listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all UserSolNotify listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addUserSolNotifyListenerpublic void addUserSolNotifyListener(XPRSuserSolNotifyListener listener, int priority) throws XPRSexception Add a listener for the UserSolNotify callback. Note that an object can have multiple UserSolNotify listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all UserSolNotify listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addUserSolNotifyListenerpublic void addUserSolNotifyListener(XPRSuserSolNotifyListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the UserSolNotify callback. Note that an object can have multiple UserSolNotify listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all UserSolNotify listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeUserSolNotifyListenerpublic void removeUserSolNotifyListener(XPRSuserSolNotifyListener listener) throws XPRSexception Removes the given UserSolNotify listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeUserSolNotifyListenerpublic void removeUserSolNotifyListener(XPRSuserSolNotifyListener listener, java.lang.Object data) throws XPRSexception Removes the given UserSolNotify listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeUserSolNotifyListener@Deprecated public void removeUserSolNotifyListener() throws XPRSexceptionDeprecated.Removes all UserSolNotify listeners from the object. @deprecated as of Xpress 7.1, please useremoveUserSolNotifyListener(XPRSuserSolNotifyListener)orremoveUserSolNotifyListeners()- Throws:
- 
          XPRSexception
 
 -  removeUserSolNotifyListenerspublic void removeUserSolNotifyListeners() throws XPRSexceptionRemove all listeners for the UserSolNotify callback- Throws:
- 
          XPRSexception
 
 -  addBeforeSolveListenerpublic void addBeforeSolveListener(XPRSbeforeSolveListener listener) throws XPRSexception Add a listener for the BeforeSolve callback. Note that an object can have multiple BeforeSolve listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BeforeSolve listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addBeforeSolveListenerpublic void addBeforeSolveListener(XPRSbeforeSolveListener listener, java.lang.Object data) throws XPRSexception Add a listener for the BeforeSolve callback. Note that an object can have multiple BeforeSolve listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BeforeSolve listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addBeforeSolveListenerpublic void addBeforeSolveListener(XPRSbeforeSolveListener listener, int priority) throws XPRSexception Add a listener for the BeforeSolve callback. Note that an object can have multiple BeforeSolve listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BeforeSolve listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addBeforeSolveListenerpublic void addBeforeSolveListener(XPRSbeforeSolveListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the BeforeSolve callback. Note that an object can have multiple BeforeSolve listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BeforeSolve listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeBeforeSolveListenerpublic void removeBeforeSolveListener(XPRSbeforeSolveListener listener) throws XPRSexception Removes the given BeforeSolve listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeBeforeSolveListenerpublic void removeBeforeSolveListener(XPRSbeforeSolveListener listener, java.lang.Object data) throws XPRSexception Removes the given BeforeSolve listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeBeforeSolveListener@Deprecated public void removeBeforeSolveListener() throws XPRSexceptionDeprecated.Removes all BeforeSolve listeners from the object. @deprecated as of Xpress 7.1, please useremoveBeforeSolveListener(XPRSbeforeSolveListener)orremoveBeforeSolveListeners()- Throws:
- 
          XPRSexception
 
 -  removeBeforeSolveListenerspublic void removeBeforeSolveListeners() throws XPRSexceptionRemove all listeners for the BeforeSolve callback- Throws:
- 
          XPRSexception
 
 -  addBeforeObjectiveListenerpublic void addBeforeObjectiveListener(XPRSbeforeObjectiveListener listener) throws XPRSexception Add a listener for the BeforeObjective callback. Note that an object can have multiple BeforeObjective listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BeforeObjective listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addBeforeObjectiveListenerpublic void addBeforeObjectiveListener(XPRSbeforeObjectiveListener listener, java.lang.Object data) throws XPRSexception Add a listener for the BeforeObjective callback. Note that an object can have multiple BeforeObjective listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BeforeObjective listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addBeforeObjectiveListenerpublic void addBeforeObjectiveListener(XPRSbeforeObjectiveListener listener, int priority) throws XPRSexception Add a listener for the BeforeObjective callback. Note that an object can have multiple BeforeObjective listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BeforeObjective listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addBeforeObjectiveListenerpublic void addBeforeObjectiveListener(XPRSbeforeObjectiveListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the BeforeObjective callback. Note that an object can have multiple BeforeObjective listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all BeforeObjective listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeBeforeObjectiveListenerpublic void removeBeforeObjectiveListener(XPRSbeforeObjectiveListener listener) throws XPRSexception Removes the given BeforeObjective listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeBeforeObjectiveListenerpublic void removeBeforeObjectiveListener(XPRSbeforeObjectiveListener listener, java.lang.Object data) throws XPRSexception Removes the given BeforeObjective listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeBeforeObjectiveListener@Deprecated public void removeBeforeObjectiveListener() throws XPRSexceptionDeprecated.Removes all BeforeObjective listeners from the object. @deprecated as of Xpress 7.1, please useremoveBeforeObjectiveListener(XPRSbeforeObjectiveListener)orremoveBeforeObjectiveListeners()- Throws:
- 
          XPRSexception
 
 -  removeBeforeObjectiveListenerspublic void removeBeforeObjectiveListeners() throws XPRSexceptionRemove all listeners for the BeforeObjective callback- Throws:
- 
          XPRSexception
 
 -  addAfterObjectiveListenerpublic void addAfterObjectiveListener(XPRSafterObjectiveListener listener) throws XPRSexception Add a listener for the AfterObjective callback. Note that an object can have multiple AfterObjective listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all AfterObjective listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addAfterObjectiveListenerpublic void addAfterObjectiveListener(XPRSafterObjectiveListener listener, java.lang.Object data) throws XPRSexception Add a listener for the AfterObjective callback. Note that an object can have multiple AfterObjective listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all AfterObjective listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addAfterObjectiveListenerpublic void addAfterObjectiveListener(XPRSafterObjectiveListener listener, int priority) throws XPRSexception Add a listener for the AfterObjective callback. Note that an object can have multiple AfterObjective listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all AfterObjective listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addAfterObjectiveListenerpublic void addAfterObjectiveListener(XPRSafterObjectiveListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the AfterObjective callback. Note that an object can have multiple AfterObjective listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all AfterObjective listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeAfterObjectiveListenerpublic void removeAfterObjectiveListener(XPRSafterObjectiveListener listener) throws XPRSexception Removes the given AfterObjective listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeAfterObjectiveListenerpublic void removeAfterObjectiveListener(XPRSafterObjectiveListener listener, java.lang.Object data) throws XPRSexception Removes the given AfterObjective listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeAfterObjectiveListener@Deprecated public void removeAfterObjectiveListener() throws XPRSexceptionDeprecated.Removes all AfterObjective listeners from the object. @deprecated as of Xpress 7.1, please useremoveAfterObjectiveListener(XPRSafterObjectiveListener)orremoveAfterObjectiveListeners()- Throws:
- 
          XPRSexception
 
 -  removeAfterObjectiveListenerspublic void removeAfterObjectiveListeners() throws XPRSexceptionRemove all listeners for the AfterObjective callback- Throws:
- 
          XPRSexception
 
 -  addCheckTimeListenerpublic void addCheckTimeListener(XPRScheckTimeListener listener) throws XPRSexception Add a listener for the CheckTime callback. Note that an object can have multiple CheckTime listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all CheckTime listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addCheckTimeListenerpublic void addCheckTimeListener(XPRScheckTimeListener listener, java.lang.Object data) throws XPRSexception Add a listener for the CheckTime callback. Note that an object can have multiple CheckTime listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all CheckTime listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addCheckTimeListenerpublic void addCheckTimeListener(XPRScheckTimeListener listener, int priority) throws XPRSexception Add a listener for the CheckTime callback. Note that an object can have multiple CheckTime listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all CheckTime listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addCheckTimeListenerpublic void addCheckTimeListener(XPRScheckTimeListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the CheckTime callback. Note that an object can have multiple CheckTime listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all CheckTime listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeCheckTimeListenerpublic void removeCheckTimeListener(XPRScheckTimeListener listener) throws XPRSexception Removes the given CheckTime listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeCheckTimeListenerpublic void removeCheckTimeListener(XPRScheckTimeListener listener, java.lang.Object data) throws XPRSexception Removes the given CheckTime listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeCheckTimeListener@Deprecated public void removeCheckTimeListener() throws XPRSexceptionDeprecated.Removes all CheckTime listeners from the object. @deprecated as of Xpress 7.1, please useremoveCheckTimeListener(XPRScheckTimeListener)orremoveCheckTimeListeners()- Throws:
- 
          XPRSexception
 
 -  removeCheckTimeListenerspublic void removeCheckTimeListeners() throws XPRSexceptionRemove all listeners for the CheckTime callback- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeEndListenerpublic void addSlpCascadeEndListener(XPRSslpCascadeEndListener listener) throws XPRSexception Add a listener for the SlpCascadeEnd callback. Note that an object can have multiple SlpCascadeEnd listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeEnd listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeEndListenerpublic void addSlpCascadeEndListener(XPRSslpCascadeEndListener listener, java.lang.Object data) throws XPRSexception Add a listener for the SlpCascadeEnd callback. Note that an object can have multiple SlpCascadeEnd listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeEnd listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeEndListenerpublic void addSlpCascadeEndListener(XPRSslpCascadeEndListener listener, int priority) throws XPRSexception Add a listener for the SlpCascadeEnd callback. Note that an object can have multiple SlpCascadeEnd listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeEnd listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeEndListenerpublic void addSlpCascadeEndListener(XPRSslpCascadeEndListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the SlpCascadeEnd callback. Note that an object can have multiple SlpCascadeEnd listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeEnd listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeEndListenerpublic void removeSlpCascadeEndListener(XPRSslpCascadeEndListener listener) throws XPRSexception Removes the given SlpCascadeEnd listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeEndListenerpublic void removeSlpCascadeEndListener(XPRSslpCascadeEndListener listener, java.lang.Object data) throws XPRSexception Removes the given SlpCascadeEnd listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeEndListener@Deprecated public void removeSlpCascadeEndListener() throws XPRSexceptionDeprecated.Removes all SlpCascadeEnd listeners from the object. @deprecated as of Xpress 7.1, please useremoveSlpCascadeEndListener(XPRSslpCascadeEndListener)orremoveSlpCascadeEndListeners()- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeEndListenerspublic void removeSlpCascadeEndListeners() throws XPRSexceptionRemove all listeners for the SlpCascadeEnd callback- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeStartListenerpublic void addSlpCascadeStartListener(XPRSslpCascadeStartListener listener) throws XPRSexception Add a listener for the SlpCascadeStart callback. Note that an object can have multiple SlpCascadeStart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeStart listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeStartListenerpublic void addSlpCascadeStartListener(XPRSslpCascadeStartListener listener, java.lang.Object data) throws XPRSexception Add a listener for the SlpCascadeStart callback. Note that an object can have multiple SlpCascadeStart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeStart listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeStartListenerpublic void addSlpCascadeStartListener(XPRSslpCascadeStartListener listener, int priority) throws XPRSexception Add a listener for the SlpCascadeStart callback. Note that an object can have multiple SlpCascadeStart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeStart listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeStartListenerpublic void addSlpCascadeStartListener(XPRSslpCascadeStartListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the SlpCascadeStart callback. Note that an object can have multiple SlpCascadeStart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeStart listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeStartListenerpublic void removeSlpCascadeStartListener(XPRSslpCascadeStartListener listener) throws XPRSexception Removes the given SlpCascadeStart listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeStartListenerpublic void removeSlpCascadeStartListener(XPRSslpCascadeStartListener listener, java.lang.Object data) throws XPRSexception Removes the given SlpCascadeStart listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeStartListener@Deprecated public void removeSlpCascadeStartListener() throws XPRSexceptionDeprecated.Removes all SlpCascadeStart listeners from the object. @deprecated as of Xpress 7.1, please useremoveSlpCascadeStartListener(XPRSslpCascadeStartListener)orremoveSlpCascadeStartListeners()- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeStartListenerspublic void removeSlpCascadeStartListeners() throws XPRSexceptionRemove all listeners for the SlpCascadeStart callback- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeVarListenerpublic void addSlpCascadeVarListener(XPRSslpCascadeVarListener listener) throws XPRSexception Add a listener for the SlpCascadeVar callback. Note that an object can have multiple SlpCascadeVar listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeVar listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeVarListenerpublic void addSlpCascadeVarListener(XPRSslpCascadeVarListener listener, java.lang.Object data) throws XPRSexception Add a listener for the SlpCascadeVar callback. Note that an object can have multiple SlpCascadeVar listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeVar listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeVarListenerpublic void addSlpCascadeVarListener(XPRSslpCascadeVarListener listener, int priority) throws XPRSexception Add a listener for the SlpCascadeVar callback. Note that an object can have multiple SlpCascadeVar listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeVar listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeVarListenerpublic void addSlpCascadeVarListener(XPRSslpCascadeVarListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the SlpCascadeVar callback. Note that an object can have multiple SlpCascadeVar listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeVar listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeVarListenerpublic void removeSlpCascadeVarListener(XPRSslpCascadeVarListener listener) throws XPRSexception Removes the given SlpCascadeVar listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeVarListenerpublic void removeSlpCascadeVarListener(XPRSslpCascadeVarListener listener, java.lang.Object data) throws XPRSexception Removes the given SlpCascadeVar listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeVarListener@Deprecated public void removeSlpCascadeVarListener() throws XPRSexceptionDeprecated.Removes all SlpCascadeVar listeners from the object. @deprecated as of Xpress 7.1, please useremoveSlpCascadeVarListener(XPRSslpCascadeVarListener)orremoveSlpCascadeVarListeners()- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeVarListenerspublic void removeSlpCascadeVarListeners() throws XPRSexceptionRemove all listeners for the SlpCascadeVar callback- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeVarFailListenerpublic void addSlpCascadeVarFailListener(XPRSslpCascadeVarFailListener listener) throws XPRSexception Add a listener for the SlpCascadeVarFail callback. Note that an object can have multiple SlpCascadeVarFail listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeVarFail listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeVarFailListenerpublic void addSlpCascadeVarFailListener(XPRSslpCascadeVarFailListener listener, java.lang.Object data) throws XPRSexception Add a listener for the SlpCascadeVarFail callback. Note that an object can have multiple SlpCascadeVarFail listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeVarFail listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeVarFailListenerpublic void addSlpCascadeVarFailListener(XPRSslpCascadeVarFailListener listener, int priority) throws XPRSexception Add a listener for the SlpCascadeVarFail callback. Note that an object can have multiple SlpCascadeVarFail listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeVarFail listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addSlpCascadeVarFailListenerpublic void addSlpCascadeVarFailListener(XPRSslpCascadeVarFailListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the SlpCascadeVarFail callback. Note that an object can have multiple SlpCascadeVarFail listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpCascadeVarFail listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeVarFailListenerpublic void removeSlpCascadeVarFailListener(XPRSslpCascadeVarFailListener listener) throws XPRSexception Removes the given SlpCascadeVarFail listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeVarFailListenerpublic void removeSlpCascadeVarFailListener(XPRSslpCascadeVarFailListener listener, java.lang.Object data) throws XPRSexception Removes the given SlpCascadeVarFail listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeVarFailListener@Deprecated public void removeSlpCascadeVarFailListener() throws XPRSexceptionDeprecated.Removes all SlpCascadeVarFail listeners from the object. @deprecated as of Xpress 7.1, please useremoveSlpCascadeVarFailListener(XPRSslpCascadeVarFailListener)orremoveSlpCascadeVarFailListeners()- Throws:
- 
          XPRSexception
 
 -  removeSlpCascadeVarFailListenerspublic void removeSlpCascadeVarFailListeners() throws XPRSexceptionRemove all listeners for the SlpCascadeVarFail callback- Throws:
- 
          XPRSexception
 
 -  addSlpConstructListenerpublic void addSlpConstructListener(XPRSslpConstructListener listener) throws XPRSexception Add a listener for the SlpConstruct callback. Note that an object can have multiple SlpConstruct listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpConstruct listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addSlpConstructListenerpublic void addSlpConstructListener(XPRSslpConstructListener listener, java.lang.Object data) throws XPRSexception Add a listener for the SlpConstruct callback. Note that an object can have multiple SlpConstruct listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpConstruct listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addSlpConstructListenerpublic void addSlpConstructListener(XPRSslpConstructListener listener, int priority) throws XPRSexception Add a listener for the SlpConstruct callback. Note that an object can have multiple SlpConstruct listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpConstruct listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addSlpConstructListenerpublic void addSlpConstructListener(XPRSslpConstructListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the SlpConstruct callback. Note that an object can have multiple SlpConstruct listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpConstruct listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeSlpConstructListenerpublic void removeSlpConstructListener(XPRSslpConstructListener listener) throws XPRSexception Removes the given SlpConstruct listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpConstructListenerpublic void removeSlpConstructListener(XPRSslpConstructListener listener, java.lang.Object data) throws XPRSexception Removes the given SlpConstruct listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpConstructListener@Deprecated public void removeSlpConstructListener() throws XPRSexceptionDeprecated.Removes all SlpConstruct listeners from the object. @deprecated as of Xpress 7.1, please useremoveSlpConstructListener(XPRSslpConstructListener)orremoveSlpConstructListeners()- Throws:
- 
          XPRSexception
 
 -  removeSlpConstructListenerspublic void removeSlpConstructListeners() throws XPRSexceptionRemove all listeners for the SlpConstruct callback- Throws:
- 
          XPRSexception
 
 -  addSlpIntSolListenerpublic void addSlpIntSolListener(XPRSslpIntSolListener listener) throws XPRSexception Add a listener for the SlpIntSol callback. Note that an object can have multiple SlpIntSol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIntSol listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addSlpIntSolListenerpublic void addSlpIntSolListener(XPRSslpIntSolListener listener, java.lang.Object data) throws XPRSexception Add a listener for the SlpIntSol callback. Note that an object can have multiple SlpIntSol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIntSol listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addSlpIntSolListenerpublic void addSlpIntSolListener(XPRSslpIntSolListener listener, int priority) throws XPRSexception Add a listener for the SlpIntSol callback. Note that an object can have multiple SlpIntSol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIntSol listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addSlpIntSolListenerpublic void addSlpIntSolListener(XPRSslpIntSolListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the SlpIntSol callback. Note that an object can have multiple SlpIntSol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIntSol listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeSlpIntSolListenerpublic void removeSlpIntSolListener(XPRSslpIntSolListener listener) throws XPRSexception Removes the given SlpIntSol listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpIntSolListenerpublic void removeSlpIntSolListener(XPRSslpIntSolListener listener, java.lang.Object data) throws XPRSexception Removes the given SlpIntSol listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpIntSolListener@Deprecated public void removeSlpIntSolListener() throws XPRSexceptionDeprecated.Removes all SlpIntSol listeners from the object. @deprecated as of Xpress 7.1, please useremoveSlpIntSolListener(XPRSslpIntSolListener)orremoveSlpIntSolListeners()- Throws:
- 
          XPRSexception
 
 -  removeSlpIntSolListenerspublic void removeSlpIntSolListeners() throws XPRSexceptionRemove all listeners for the SlpIntSol callback- Throws:
- 
          XPRSexception
 
 -  addSlpIterEndListenerpublic void addSlpIterEndListener(XPRSslpIterEndListener listener) throws XPRSexception Add a listener for the SlpIterEnd callback. Note that an object can have multiple SlpIterEnd listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIterEnd listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addSlpIterEndListenerpublic void addSlpIterEndListener(XPRSslpIterEndListener listener, java.lang.Object data) throws XPRSexception Add a listener for the SlpIterEnd callback. Note that an object can have multiple SlpIterEnd listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIterEnd listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addSlpIterEndListenerpublic void addSlpIterEndListener(XPRSslpIterEndListener listener, int priority) throws XPRSexception Add a listener for the SlpIterEnd callback. Note that an object can have multiple SlpIterEnd listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIterEnd listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addSlpIterEndListenerpublic void addSlpIterEndListener(XPRSslpIterEndListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the SlpIterEnd callback. Note that an object can have multiple SlpIterEnd listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIterEnd listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeSlpIterEndListenerpublic void removeSlpIterEndListener(XPRSslpIterEndListener listener) throws XPRSexception Removes the given SlpIterEnd listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpIterEndListenerpublic void removeSlpIterEndListener(XPRSslpIterEndListener listener, java.lang.Object data) throws XPRSexception Removes the given SlpIterEnd listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpIterEndListener@Deprecated public void removeSlpIterEndListener() throws XPRSexceptionDeprecated.Removes all SlpIterEnd listeners from the object. @deprecated as of Xpress 7.1, please useremoveSlpIterEndListener(XPRSslpIterEndListener)orremoveSlpIterEndListeners()- Throws:
- 
          XPRSexception
 
 -  removeSlpIterEndListenerspublic void removeSlpIterEndListeners() throws XPRSexceptionRemove all listeners for the SlpIterEnd callback- Throws:
- 
          XPRSexception
 
 -  addSlpIterStartListenerpublic void addSlpIterStartListener(XPRSslpIterStartListener listener) throws XPRSexception Add a listener for the SlpIterStart callback. Note that an object can have multiple SlpIterStart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIterStart listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addSlpIterStartListenerpublic void addSlpIterStartListener(XPRSslpIterStartListener listener, java.lang.Object data) throws XPRSexception Add a listener for the SlpIterStart callback. Note that an object can have multiple SlpIterStart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIterStart listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addSlpIterStartListenerpublic void addSlpIterStartListener(XPRSslpIterStartListener listener, int priority) throws XPRSexception Add a listener for the SlpIterStart callback. Note that an object can have multiple SlpIterStart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIterStart listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addSlpIterStartListenerpublic void addSlpIterStartListener(XPRSslpIterStartListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the SlpIterStart callback. Note that an object can have multiple SlpIterStart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIterStart listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeSlpIterStartListenerpublic void removeSlpIterStartListener(XPRSslpIterStartListener listener) throws XPRSexception Removes the given SlpIterStart listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpIterStartListenerpublic void removeSlpIterStartListener(XPRSslpIterStartListener listener, java.lang.Object data) throws XPRSexception Removes the given SlpIterStart listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpIterStartListener@Deprecated public void removeSlpIterStartListener() throws XPRSexceptionDeprecated.Removes all SlpIterStart listeners from the object. @deprecated as of Xpress 7.1, please useremoveSlpIterStartListener(XPRSslpIterStartListener)orremoveSlpIterStartListeners()- Throws:
- 
          XPRSexception
 
 -  removeSlpIterStartListenerspublic void removeSlpIterStartListeners() throws XPRSexceptionRemove all listeners for the SlpIterStart callback- Throws:
- 
          XPRSexception
 
 -  addSlpIterVarListenerpublic void addSlpIterVarListener(XPRSslpIterVarListener listener) throws XPRSexception Add a listener for the SlpIterVar callback. Note that an object can have multiple SlpIterVar listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIterVar listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addSlpIterVarListenerpublic void addSlpIterVarListener(XPRSslpIterVarListener listener, java.lang.Object data) throws XPRSexception Add a listener for the SlpIterVar callback. Note that an object can have multiple SlpIterVar listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIterVar listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addSlpIterVarListenerpublic void addSlpIterVarListener(XPRSslpIterVarListener listener, int priority) throws XPRSexception Add a listener for the SlpIterVar callback. Note that an object can have multiple SlpIterVar listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIterVar listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addSlpIterVarListenerpublic void addSlpIterVarListener(XPRSslpIterVarListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the SlpIterVar callback. Note that an object can have multiple SlpIterVar listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpIterVar listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeSlpIterVarListenerpublic void removeSlpIterVarListener(XPRSslpIterVarListener listener) throws XPRSexception Removes the given SlpIterVar listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpIterVarListenerpublic void removeSlpIterVarListener(XPRSslpIterVarListener listener, java.lang.Object data) throws XPRSexception Removes the given SlpIterVar listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpIterVarListener@Deprecated public void removeSlpIterVarListener() throws XPRSexceptionDeprecated.Removes all SlpIterVar listeners from the object. @deprecated as of Xpress 7.1, please useremoveSlpIterVarListener(XPRSslpIterVarListener)orremoveSlpIterVarListeners()- Throws:
- 
          XPRSexception
 
 -  removeSlpIterVarListenerspublic void removeSlpIterVarListeners() throws XPRSexceptionRemove all listeners for the SlpIterVar callback- Throws:
- 
          XPRSexception
 
 -  addSlpDrColListenerpublic void addSlpDrColListener(XPRSslpDrColListener listener) throws XPRSexception Add a listener for the SlpDrCol callback. Note that an object can have multiple SlpDrCol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpDrCol listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addSlpDrColListenerpublic void addSlpDrColListener(XPRSslpDrColListener listener, java.lang.Object data) throws XPRSexception Add a listener for the SlpDrCol callback. Note that an object can have multiple SlpDrCol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpDrCol listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addSlpDrColListenerpublic void addSlpDrColListener(XPRSslpDrColListener listener, int priority) throws XPRSexception Add a listener for the SlpDrCol callback. Note that an object can have multiple SlpDrCol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpDrCol listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addSlpDrColListenerpublic void addSlpDrColListener(XPRSslpDrColListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the SlpDrCol callback. Note that an object can have multiple SlpDrCol listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpDrCol listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeSlpDrColListenerpublic void removeSlpDrColListener(XPRSslpDrColListener listener) throws XPRSexception Removes the given SlpDrCol listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpDrColListenerpublic void removeSlpDrColListener(XPRSslpDrColListener listener, java.lang.Object data) throws XPRSexception Removes the given SlpDrCol listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpDrColListener@Deprecated public void removeSlpDrColListener() throws XPRSexceptionDeprecated.Removes all SlpDrCol listeners from the object. @deprecated as of Xpress 7.1, please useremoveSlpDrColListener(XPRSslpDrColListener)orremoveSlpDrColListeners()- Throws:
- 
          XPRSexception
 
 -  removeSlpDrColListenerspublic void removeSlpDrColListeners() throws XPRSexceptionRemove all listeners for the SlpDrCol callback- Throws:
- 
          XPRSexception
 
 -  addMsJobStartListenerpublic void addMsJobStartListener(XPRSmsJobStartListener listener) throws XPRSexception Add a listener for the MsJobStart callback. Note that an object can have multiple MsJobStart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsJobStart listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addMsJobStartListenerpublic void addMsJobStartListener(XPRSmsJobStartListener listener, java.lang.Object data) throws XPRSexception Add a listener for the MsJobStart callback. Note that an object can have multiple MsJobStart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsJobStart listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addMsJobStartListenerpublic void addMsJobStartListener(XPRSmsJobStartListener listener, int priority) throws XPRSexception Add a listener for the MsJobStart callback. Note that an object can have multiple MsJobStart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsJobStart listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addMsJobStartListenerpublic void addMsJobStartListener(XPRSmsJobStartListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the MsJobStart callback. Note that an object can have multiple MsJobStart listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsJobStart listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeMsJobStartListenerpublic void removeMsJobStartListener(XPRSmsJobStartListener listener) throws XPRSexception Removes the given MsJobStart listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeMsJobStartListenerpublic void removeMsJobStartListener(XPRSmsJobStartListener listener, java.lang.Object data) throws XPRSexception Removes the given MsJobStart listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeMsJobStartListener@Deprecated public void removeMsJobStartListener() throws XPRSexceptionDeprecated.Removes all MsJobStart listeners from the object. @deprecated as of Xpress 7.1, please useremoveMsJobStartListener(XPRSmsJobStartListener)orremoveMsJobStartListeners()- Throws:
- 
          XPRSexception
 
 -  removeMsJobStartListenerspublic void removeMsJobStartListeners() throws XPRSexceptionRemove all listeners for the MsJobStart callback- Throws:
- 
          XPRSexception
 
 -  addMsJobEndListenerpublic void addMsJobEndListener(XPRSmsJobEndListener listener) throws XPRSexception Add a listener for the MsJobEnd callback. Note that an object can have multiple MsJobEnd listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsJobEnd listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addMsJobEndListenerpublic void addMsJobEndListener(XPRSmsJobEndListener listener, java.lang.Object data) throws XPRSexception Add a listener for the MsJobEnd callback. Note that an object can have multiple MsJobEnd listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsJobEnd listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addMsJobEndListenerpublic void addMsJobEndListener(XPRSmsJobEndListener listener, int priority) throws XPRSexception Add a listener for the MsJobEnd callback. Note that an object can have multiple MsJobEnd listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsJobEnd listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addMsJobEndListenerpublic void addMsJobEndListener(XPRSmsJobEndListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the MsJobEnd callback. Note that an object can have multiple MsJobEnd listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsJobEnd listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeMsJobEndListenerpublic void removeMsJobEndListener(XPRSmsJobEndListener listener) throws XPRSexception Removes the given MsJobEnd listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeMsJobEndListenerpublic void removeMsJobEndListener(XPRSmsJobEndListener listener, java.lang.Object data) throws XPRSexception Removes the given MsJobEnd listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeMsJobEndListener@Deprecated public void removeMsJobEndListener() throws XPRSexceptionDeprecated.Removes all MsJobEnd listeners from the object. @deprecated as of Xpress 7.1, please useremoveMsJobEndListener(XPRSmsJobEndListener)orremoveMsJobEndListeners()- Throws:
- 
          XPRSexception
 
 -  removeMsJobEndListenerspublic void removeMsJobEndListeners() throws XPRSexceptionRemove all listeners for the MsJobEnd callback- Throws:
- 
          XPRSexception
 
 -  addMsWinnerListenerpublic void addMsWinnerListener(XPRSmsWinnerListener listener) throws XPRSexception Add a listener for the MsWinner callback. Note that an object can have multiple MsWinner listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsWinner listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addMsWinnerListenerpublic void addMsWinnerListener(XPRSmsWinnerListener listener, java.lang.Object data) throws XPRSexception Add a listener for the MsWinner callback. Note that an object can have multiple MsWinner listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsWinner listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addMsWinnerListenerpublic void addMsWinnerListener(XPRSmsWinnerListener listener, int priority) throws XPRSexception Add a listener for the MsWinner callback. Note that an object can have multiple MsWinner listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsWinner listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addMsWinnerListenerpublic void addMsWinnerListener(XPRSmsWinnerListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the MsWinner callback. Note that an object can have multiple MsWinner listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsWinner listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeMsWinnerListenerpublic void removeMsWinnerListener(XPRSmsWinnerListener listener) throws XPRSexception Removes the given MsWinner listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeMsWinnerListenerpublic void removeMsWinnerListener(XPRSmsWinnerListener listener, java.lang.Object data) throws XPRSexception Removes the given MsWinner listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeMsWinnerListener@Deprecated public void removeMsWinnerListener() throws XPRSexceptionDeprecated.Removes all MsWinner listeners from the object. @deprecated as of Xpress 7.1, please useremoveMsWinnerListener(XPRSmsWinnerListener)orremoveMsWinnerListeners()- Throws:
- 
          XPRSexception
 
 -  removeMsWinnerListenerspublic void removeMsWinnerListeners() throws XPRSexceptionRemove all listeners for the MsWinner callback- Throws:
- 
          XPRSexception
 
 -  addNlpCoefEvalErrorListenerpublic void addNlpCoefEvalErrorListener(XPRSnlpCoefEvalErrorListener listener) throws XPRSexception Add a listener for the NlpCoefEvalError callback. Note that an object can have multiple NlpCoefEvalError listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all NlpCoefEvalError listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addNlpCoefEvalErrorListenerpublic void addNlpCoefEvalErrorListener(XPRSnlpCoefEvalErrorListener listener, java.lang.Object data) throws XPRSexception Add a listener for the NlpCoefEvalError callback. Note that an object can have multiple NlpCoefEvalError listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all NlpCoefEvalError listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addNlpCoefEvalErrorListenerpublic void addNlpCoefEvalErrorListener(XPRSnlpCoefEvalErrorListener listener, int priority) throws XPRSexception Add a listener for the NlpCoefEvalError callback. Note that an object can have multiple NlpCoefEvalError listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all NlpCoefEvalError listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addNlpCoefEvalErrorListenerpublic void addNlpCoefEvalErrorListener(XPRSnlpCoefEvalErrorListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the NlpCoefEvalError callback. Note that an object can have multiple NlpCoefEvalError listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all NlpCoefEvalError listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeNlpCoefEvalErrorListenerpublic void removeNlpCoefEvalErrorListener(XPRSnlpCoefEvalErrorListener listener) throws XPRSexception Removes the given NlpCoefEvalError listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeNlpCoefEvalErrorListenerpublic void removeNlpCoefEvalErrorListener(XPRSnlpCoefEvalErrorListener listener, java.lang.Object data) throws XPRSexception Removes the given NlpCoefEvalError listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeNlpCoefEvalErrorListener@Deprecated public void removeNlpCoefEvalErrorListener() throws XPRSexceptionDeprecated.Removes all NlpCoefEvalError listeners from the object. @deprecated as of Xpress 7.1, please useremoveNlpCoefEvalErrorListener(XPRSnlpCoefEvalErrorListener)orremoveNlpCoefEvalErrorListeners()- Throws:
- 
          XPRSexception
 
 -  removeNlpCoefEvalErrorListenerspublic void removeNlpCoefEvalErrorListeners() throws XPRSexceptionRemove all listeners for the NlpCoefEvalError callback- Throws:
- 
          XPRSexception
 
 -  addSlpPreUpdateLinearizationListenerpublic void addSlpPreUpdateLinearizationListener(XPRSslpPreUpdateLinearizationListener listener) throws XPRSexception Add a listener for the SlpPreUpdateLinearization callback. Note that an object can have multiple SlpPreUpdateLinearization listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpPreUpdateLinearization listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addSlpPreUpdateLinearizationListenerpublic void addSlpPreUpdateLinearizationListener(XPRSslpPreUpdateLinearizationListener listener, java.lang.Object data) throws XPRSexception Add a listener for the SlpPreUpdateLinearization callback. Note that an object can have multiple SlpPreUpdateLinearization listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpPreUpdateLinearization listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addSlpPreUpdateLinearizationListenerpublic void addSlpPreUpdateLinearizationListener(XPRSslpPreUpdateLinearizationListener listener, int priority) throws XPRSexception Add a listener for the SlpPreUpdateLinearization callback. Note that an object can have multiple SlpPreUpdateLinearization listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpPreUpdateLinearization listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addSlpPreUpdateLinearizationListenerpublic void addSlpPreUpdateLinearizationListener(XPRSslpPreUpdateLinearizationListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the SlpPreUpdateLinearization callback. Note that an object can have multiple SlpPreUpdateLinearization listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all SlpPreUpdateLinearization listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeSlpPreUpdateLinearizationListenerpublic void removeSlpPreUpdateLinearizationListener(XPRSslpPreUpdateLinearizationListener listener) throws XPRSexception Removes the given SlpPreUpdateLinearization listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpPreUpdateLinearizationListenerpublic void removeSlpPreUpdateLinearizationListener(XPRSslpPreUpdateLinearizationListener listener, java.lang.Object data) throws XPRSexception Removes the given SlpPreUpdateLinearization listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeSlpPreUpdateLinearizationListener@Deprecated public void removeSlpPreUpdateLinearizationListener() throws XPRSexceptionDeprecated.Removes all SlpPreUpdateLinearization listeners from the object. @deprecated as of Xpress 7.1, please useremoveSlpPreUpdateLinearizationListener(XPRSslpPreUpdateLinearizationListener)orremoveSlpPreUpdateLinearizationListeners()- Throws:
- 
          XPRSexception
 
 -  removeSlpPreUpdateLinearizationListenerspublic void removeSlpPreUpdateLinearizationListeners() throws XPRSexceptionRemove all listeners for the SlpPreUpdateLinearization callback- Throws:
- 
          XPRSexception
 
 -  addMsgHandlerListenerpublic void addMsgHandlerListener(XPRSmsgHandlerListener listener) throws XPRSexception Add a listener for the MsgHandler callback. Note that an object can have multiple MsgHandler listeners.- Specified by:
- 
          addMsgHandlerListenerin classXPRSobject
- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsgHandler listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addMsgHandlerListenerpublic void addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data) throws XPRSexception Add a listener for the MsgHandler callback. Note that an object can have multiple MsgHandler listeners.- Specified by:
- 
          addMsgHandlerListenerin classXPRSobject
- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsgHandler listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addMsgHandlerListenerpublic void addMsgHandlerListener(XPRSmsgHandlerListener listener, int priority) throws XPRSexception Add a listener for the MsgHandler callback. Note that an object can have multiple MsgHandler listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsgHandler listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addMsgHandlerListenerpublic void addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the MsgHandler callback. Note that an object can have multiple MsgHandler listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all MsgHandler listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  removeMsgHandlerListenerpublic void removeMsgHandlerListener(XPRSmsgHandlerListener listener) throws XPRSexception Removes the given MsgHandler listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeMsgHandlerListenerpublic void removeMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data) throws XPRSexception Removes the given MsgHandler listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeMsgHandlerListener@Deprecated public void removeMsgHandlerListener() throws XPRSexceptionDeprecated.Removes all MsgHandler listeners from the object. @deprecated as of Xpress 7.1, please useremoveMsgHandlerListener(XPRSmsgHandlerListener)orremoveMsgHandlerListeners()- Specified by:
- 
          removeMsgHandlerListenerin classXPRSobject
- Throws:
- 
          XPRSexception
 
 -  removeMsgHandlerListenerspublic void removeMsgHandlerListeners() throws XPRSexceptionRemove all listeners for the MsgHandler callback- Throws:
- 
          XPRSexception
 
 -  attributespublic XPRSprob.Attributes attributes() Access the attributes of this instance.- Returns:
- an object that allows accessing the attributes of this instance.
 
 -  controlspublic XPRSprob.Controls controls() Access the controls of this instance.- Returns:
- an object that allows accessing the controls of this instance.
 
 -  getSolXpublic double[] getSolX() throws XPRSprobExceptionGet the x values of a solution. This is a convenience wrapper forgetSol(double[],double[],double[],double[])that allocates and returns only thexarray.- Throws:
- 
          XPRSprobException
- See Also:
- 
          getSol(double[], double[], double[], double[])
 
 -  getSolSlackpublic double[] getSolSlack() throws XPRSprobExceptionGet the slack values of a solution. This is a convenience wrapper forgetSol(double[],double[],double[],double[])that allocates and returns only theslackarray.- Throws:
- 
          XPRSprobException
- See Also:
- 
          getSol(double[], double[], double[], double[])
 
 -  getSolDualspublic double[] getSolDuals() throws XPRSprobExceptionGet the duals values of a solution. This is a convenience wrapper forgetSol(double[],double[],double[],double[])that allocates and returns only thedualsarray.- Throws:
- 
          XPRSprobException
- See Also:
- 
          getSol(double[], double[], double[], double[])
 
 -  getSolDjspublic double[] getSolDjs() throws XPRSprobExceptionGet the djs values of a solution. This is a convenience wrapper forgetSol(double[],double[],double[],double[])that allocates and returns only thedjsarray.- Throws:
- 
          XPRSprobException
- See Also:
- 
          getSol(double[], double[], double[], double[])
 
 -  getSolpublic XPRSprob.Solution getSol() throws XPRSprobException Get a solution. This is a convenience wrapper forgetSol(double[],double[],double[],double[])that allocates and returns all arrays in a single object. * @see #getSol(double[], double[], double[], double[])- Throws:
- 
          XPRSprobException
 
 -  getPresolveSolXpublic double[] getPresolveSolX() throws XPRSprobExceptionGet the x values of a solution. This is a convenience wrapper forgetPresolveSol(double[],double[],double[],double[])that allocates and returns only thexarray.- Throws:
- 
          XPRSprobException
- See Also:
- 
          getPresolveSol(double[], double[], double[], double[])
 
 -  getPresolveSolSlackpublic double[] getPresolveSolSlack() throws XPRSprobExceptionGet the slack values of a solution. This is a convenience wrapper forgetPresolveSol(double[],double[],double[],double[])that allocates and returns only theslackarray.- Throws:
- 
          XPRSprobException
- See Also:
- 
          getPresolveSol(double[], double[], double[], double[])
 
 -  getPresolveSolDualspublic double[] getPresolveSolDuals() throws XPRSprobExceptionGet the duals values of a solution. This is a convenience wrapper forgetPresolveSol(double[],double[],double[],double[])that allocates and returns only thedualsarray.- Throws:
- 
          XPRSprobException
- See Also:
- 
          getPresolveSol(double[], double[], double[], double[])
 
 -  getPresolveSolDjspublic double[] getPresolveSolDjs() throws XPRSprobExceptionGet the djs values of a solution. This is a convenience wrapper forgetPresolveSol(double[],double[],double[],double[])that allocates and returns only thedjsarray.- Throws:
- 
          XPRSprobException
- See Also:
- 
          getPresolveSol(double[], double[], double[], double[])
 
 -  getPresolveSolpublic XPRSprob.Solution getPresolveSol() throws XPRSprobException Get a solution. This is a convenience wrapper forgetPresolveSol(double[],double[],double[],double[])that allocates and returns all arrays in a single object. * @see #getPresolveSol(double[], double[], double[], double[])- Throws:
- 
          XPRSprobException
 
 -  getLpSolXpublic double[] getLpSolX() throws XPRSprobExceptionGet the x values of a solution. This is a convenience wrapper forgetLpSol(double[],double[],double[],double[])that allocates and returns only thexarray.This function is used in the following examples: - AddMipSol
- FixBV
- RoundInt
- TSP
 - Throws:
- 
          XPRSprobException
- See Also:
- 
          getLpSol(double[], double[], double[], double[])
 
 -  getLpSolSlackpublic double[] getLpSolSlack() throws XPRSprobExceptionGet the slack values of a solution. This is a convenience wrapper forgetLpSol(double[],double[],double[],double[])that allocates and returns only theslackarray.- Throws:
- 
          XPRSprobException
- See Also:
- 
          getLpSol(double[], double[], double[], double[])
 
 -  getLpSolDualspublic double[] getLpSolDuals() throws XPRSprobExceptionGet the duals values of a solution. This is a convenience wrapper forgetLpSol(double[],double[],double[],double[])that allocates and returns only thedualsarray.- Throws:
- 
          XPRSprobException
- See Also:
- 
          getLpSol(double[], double[], double[], double[])
 
 -  getLpSolDjspublic double[] getLpSolDjs() throws XPRSprobExceptionGet the djs values of a solution. This is a convenience wrapper forgetLpSol(double[],double[],double[],double[])that allocates and returns only thedjsarray.- Throws:
- 
          XPRSprobException
- See Also:
- 
          getLpSol(double[], double[], double[], double[])
 
 -  getLpSolpublic XPRSprob.Solution getLpSol() throws XPRSprobException Get a solution. This is a convenience wrapper forgetLpSol(double[],double[],double[],double[])that allocates and returns all arrays in a single object. * @see #getLpSol(double[], double[], double[], double[])- Throws:
- 
          XPRSprobException
 
 -  getMipSolXpublic double[] getMipSolX() throws XPRSprobExceptionGet the x values of a solution. This is a convenience wrapper forgetMipSol(double[],double[])that allocates and returns only thexarray.This function is used in the following examples: - AddMipSol
- RoundInt
- TSP
- Trimloss
 - Throws:
- 
          XPRSprobException
- See Also:
- 
          getMipSol(double[], double[])
 
 -  getMipSolSlackpublic double[] getMipSolSlack() throws XPRSprobExceptionGet the slack values of a solution. This is a convenience wrapper forgetMipSol(double[],double[])that allocates and returns only theslackarray.- Throws:
- 
          XPRSprobException
- See Also:
- 
          getMipSol(double[], double[])
 
 -  getMipSolpublic XPRSprob.Solution getMipSol() throws XPRSprobException Get a solution. This is a convenience wrapper forgetMipSol(double[],double[])that allocates and returns all arrays in a single object. * @see #getMipSol(double[], double[])- Throws:
- 
          XPRSprobException
 
 -  getLastBarSolXpublic double[] getLastBarSolX() throws XPRSprobExceptionGet the x values of a solution. This is a convenience wrapper forgetLastBarSol(double[],double[],double[],double[],com.dashoptimization.IntHolder)that allocates and returns only thexarray.
 -  getLastBarSolSlackpublic double[] getLastBarSolSlack() throws XPRSprobExceptionGet the slack values of a solution. This is a convenience wrapper forgetLastBarSol(double[],double[],double[],double[],com.dashoptimization.IntHolder)that allocates and returns only theslackarray.
 -  getLastBarSolDualspublic double[] getLastBarSolDuals() throws XPRSprobExceptionGet the duals values of a solution. This is a convenience wrapper forgetLastBarSol(double[],double[],double[],double[],com.dashoptimization.IntHolder)that allocates and returns only thedualsarray.
 -  getLastBarSolDjspublic double[] getLastBarSolDjs() throws XPRSprobExceptionGet the djs values of a solution. This is a convenience wrapper forgetLastBarSol(double[],double[],double[],double[],com.dashoptimization.IntHolder)that allocates and returns only thedjsarray.
 -  getLastBarSolpublic XPRSprob.StatusSolution getLastBarSol() throws XPRSprobException Get a solution. This is a convenience wrapper forgetLastBarSol(double[],double[],double[],double[],com.dashoptimization.IntHolder)that allocates and returns all arrays in a single object. * @see #getLastBarSol(double[], double[], double[], double[], IntHolder)- Throws:
- 
          XPRSprobException
 
 
-  
 
-  
         
© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
 
