Initializing help system before first use

Reference Manual

Topics covered in this chapter:

Using this chapter

This chapter provides a list of functions available through the Xpress Python interface. For each function, the synopsis and an example are given.

In keeping with the Xpress Optimizer's C API, the name and order of the parameters used in these functions has been retained. However, in order to make optimal use of the greater flexibility provided by Python, the argument lists and the return value of some functions has been modified so as to obtain a more compact notation.

For example, for functions with a list as an argument, the number of elements of the list is not part of the arguments. Compare the call to the C function XPRSaddRows, where the parameters newrow and newnz must be passed, to its Python counterpart:

(C)      result = XPRSaddrows (prob, n, nnz, type,
                               rhs, NULL, mstart, indices, values);
(Python) p.addRows(type, rhs, None, mstart, indices, values)

In the Python version, the prob pointer is not provided as obviously addRows is a method of the problem class. The C variables n and nnz, which are assigned to arguments newrow and newnz, respectively, of the call to XPRSaddrows, are not necessary in the Python call as the length of rhs, mstart, etc. is inferred from the passed lists. If the lengths of all lists passed as arguments are not consistent with one another, an error will be returned.

Because lists (or tuples, generators, iterators, sequences) can be used as parameters of all functions in this manual, their size does not need to be passed explicitly as it is detected from the parameter itself. The interface will check the consistency and the content if the vector is referred to the variables or constraints, and will return an error in case of a mismatch.

When passing (lists, arrays, dictionaries of) variables, constraints, or SOSs, there are three ways of referring to these entities: by numerical index, by Python object, and by name. For instance, consider the problem.getSolution method, which admits both an empty argument and one or a list of variables. If we define a variable with a name as follows

p = xpress.problem()
x = p.addVariable(name='myvar')

then we can refer to its index (which will be 0 here as it is the first variable added to the problem), by its object name, i.e., x, and by its given name "myvar", in the three following (equivalent) ways:

print('x is ', p.getSolution(x))
print('x is ', p.getSolution(0))
print('x is ', p.getSolution('myvar'))

Another difference between the Python methods and their C API counterpart is that some output arguments are no longer passed (by reference) as arguments to the Python functions but rather are (part of) the value returned by the function. Where multiple scalar output parameters are returned by the C API function, some Python functions return a tuple containing all such output values.

The non-scalar parameters can instead be specified as lists, NumPy arrays, sequences, or generators when applicable. The output non-scalar parameters are stored as lists.

Optional parameters can be specified as None or skipped, provided the subsequent arguments are explicitly declared with their parameter name as Python allows:

p.addRows(rowtype=type, rhs=rhs, start=mstart,
           colind=indices, rowcoef=values)

Because the Python interface relies on the Xpress Optimizer C Application Program Interface, it is advisable to complement the knowledge in this reference manual with that of the Xpress Optimizer reference manual.

Format of the reference

The descriptions in the following pages report, for each function:

  • Name;
  • A short description of its purpose;
  • Its synopsis, i.e., how it must be called. If it returns a value, then it will be presented as a Python assignment statement, otherwise it will be just shown as a call without a returned value; also, if it is a module function rather than a problem-specific function, it will be prefixed by xpress;
  • A description of its arguments and whether each argument is optional;
  • Error values;
  • Associated controls;
  • A sample usage of the function;
  • Further useful information about the function;
  • Related functions, parameters.

Note that all arguments defined in the remainder of this chapter as "array" or "vector" can be many other Python non-scalar objects: lists, generators, and NumPy arrays are admissible as parameters, except when specified (e.g. getControl). However, for simplicity we refer to non-scalar arguments as array.

Finally, some attributes and controls are referred to as uppercase words for clarity. For example, ROWS indicates the attribute "rows" of a problem, hence it is equivalent to problem.attributes.rows.

Classes of the Xpress module

Below is a list of classes used in all operations of the xpress module. While for a few of these classes an explicit constructor exists (for instance, xpress.problem and xpress.sos), objects of other classes, like xpress.linterm and xpress.expression, cannot be created with a constructor methods but are created using algebraic operators applied to constants, variables, and other expressions.

xpress.attr xpress.branchobj xpress.ctrl
xpress.constraint xpress.expression xpress.linterm
xpress.nonlin xpress.problem xpress.poolcut
xpress.quadterm xpress.sos xpress.var
xpress.voidstar xpress.xprsobject

Methods to be used within a callback of a problem object

The following methods can be called from within a callback function that has been passed in one of the problem.add*Callback methods. Calling these functions outside of a callback may result in an error and trigger termination of the optimization process.

problem.copycallbacks problem.delCPCuts problem.delCuts
problem.getCPCutList problem.getCPCuts problem.getCutList
problem.getCutMap problem.getCutSlack problem.loadCuts
problem.storeCuts problem.strongBranchCB problem.addCuts

Deprecated functionality

The following functions are deprecated or have been removed.

branchobj.addbounds
(Removed) Use branchobj.addBounds instead.
branchobj.addbranches
(Removed) Use branchobj.addBranches instead.
branchobj.addcuts
(Removed) Use branchobj.addCuts instead.
branchobj.addrows
(Removed) Use branchobj.addRows instead.
branchobj.getbounds
(Removed) Use branchobj.getBounds instead.
branchobj.getbranches
(Removed) Use branchobj.getBranches instead.
branchobj.getid
(Removed) Use branchobj.getID instead.
branchobj.getlasterror
(Removed)
branchobj.getrows
(Removed) Use branchobj.getRows instead.
branchobj.setpreferredbranch
(Removed) Use branchobj.setPreferredBranch instead.
branchobj.setpriority
(Removed) Use branchobj.setPriority instead.
problem.addcbafterobjective
(Removed) Use problem.addAfterObjectiveCallback instead.
problem.addcbbariteration
(Removed) Use problem.addBarIterationCallback instead.
problem.addcbbarlog
(Removed) Use problem.addBarlogCallback instead.
problem.addcbbeforeobjective
(Removed) Use problem.addBeforeObjectiveCallback instead.
problem.addcbchecktime
(Removed) Use problem.addCheckTimeCallback instead.
problem.addcbchgbranchobject
(Removed) Use problem.addChangeBranchObjectCallback instead.
problem.addcbcutlog
(Removed) Use problem.addCutlogCallback instead.
problem.addcbcutround
(Removed) Use problem.addCutRoundCallback instead.
problem.addcbdestroymt
(Removed) Use problem.addMipThreadDestroyCallback instead.
problem.addcbgapnotify
(Removed) Use problem.addGapNotifyCallback instead.
problem.addcbinfnode
(Removed) Use problem.addInfnodeCallback instead.
problem.addcbintsol
(Removed) Use problem.addIntsolCallback instead.
problem.addcblplog
(Removed) Use problem.addLplogCallback instead.
problem.addcbmessage
(Removed) Use problem.addMessageCallback instead.
problem.addcbmiplog
(Removed) Use problem.addMiplogCallback instead.
problem.addcbmipthread
(Removed) Use problem.addMipThreadCallback instead.
problem.addcbnewnode
(Removed) Use problem.addNewnodeCallback instead.
problem.addcbnodecutoff
(Removed) Use problem.addNodecutoffCallback instead.
problem.addcbnodelpsolved
(Removed) Use problem.addNodeLPSolvedCallback instead.
problem.addcboptnode
(Removed) Use problem.addOptnodeCallback instead.
problem.addcbpreintsol
(Removed) Use problem.addPreIntsolCallback instead.
problem.addcbprenode
(Removed) Use problem.addPrenodeCallback instead.
problem.addcbpresolve
(Removed) Use problem.addPresolveCallback instead.
problem.addcbusersolnotify
(Removed) Use problem.addUserSolNotifyCallback instead.
problem.addcoefs
(Removed) Use problem.slpAddCoefs instead.
problem.addcols
(Removed) Use problem.addCols instead.
problem.addcuts
(Removed) Use problem.addCuts instead.
problem.adddfs
(Removed)
problem.addgencons
(Removed) Use problem.addGenCons instead.
problem.addmipsol
(Removed) Use problem.addMipSol instead.
problem.addnames
(Removed) Use problem.addNames instead.
problem.addobj
(Removed) Use problem.addObj instead.
problem.addpwlcons
(Removed) Use problem.addPwlCons instead.
problem.addqmatrix
(Removed) Use problem.addQMatrix instead.
problem.addrows
(Removed) Use problem.addRows instead.
problem.addtolsets
(Removed)
problem.addvars
(Removed)
problem.basisstability
(Removed) Use problem.basisStability instead.
problem.bndsa
(Removed) Use problem.bndSA instead.
problem.btran
(Removed) Use problem.BTran instead.
problem.calcobjective
(Removed) Use problem.calcObjective instead.
problem.calcobjn
(Removed) Use problem.calcObjN instead.
problem.calcreducedcosts
(Removed) Use problem.calcReducedCosts instead.
problem.calcslacks
(Removed) Use problem.calcSlacks instead.
problem.calcsolinfo
(Removed) Use problem.calcSolInfo instead.
problem.cascade
(Removed) Use problem.slpCascadeSol instead.
problem.cascadeorder
(Removed) Use problem.slpCascadeOrder instead.
problem.chgbounds
(Removed) Use problem.chgBounds instead.
problem.chgcascadenlimit
(Removed) Use problem.slpChgCascadeNLimit instead.
problem.chgccoef
(Removed) Use problem.slpChgCoefStr instead.
problem.chgcoef
(Removed) Use problem.chgCoef instead.
problem.chgcoltype
(Removed) Use problem.chgColType instead.
problem.chgdeltatype
(Removed) Use problem.slpChgDeltaType instead.
problem.chgdf
(Removed)
problem.chgglblimit
(Removed) Use problem.chgGlbLimit instead.
problem.chgmcoef
(Removed) Use problem.chgMCoef instead.
problem.chgmqobj
(Removed) Use problem.chgMQObj instead.
problem.chgnlcoef
(Removed) Use problem.slpChgCoef instead.
problem.chgobj
(Removed) Use problem.chgObj instead.
problem.chgobjn
(Removed) Use problem.chgObjN instead.
problem.chgobjsense
(Removed) Use problem.chgObjSense instead.
problem.chgqobj
(Removed) Use problem.chgQObj instead.
problem.chgqrowcoeff
(Removed) Use problem.chgQRowCoeff instead.
problem.chgrhs
(Removed) Use problem.chgRHS instead.
problem.chgrhsrange
(Removed) Use problem.chgRHSRange instead.
problem.chgrowstatus
(Removed) Use problem.slpChgRowStatus instead.
problem.chgrowtype
(Removed) Use problem.chgRowType instead.
problem.chgrowwt
(Removed) Use problem.slpChgRowWt instead.
problem.chgtolset
(Removed)
problem.chgvar
(Removed)
problem.construct
(Removed) Use problem.slpConstruct instead.
problem.copycontrols
(Removed) Use problem.copyControls instead.
problem.crossoverlpsol
(Removed) Use problem.crossoverLpSol instead.
problem.delcoefs
(Removed) Use problem.slpDelCoefs instead.
problem.delcpcuts
(Removed) Use problem.delCPCuts instead.
problem.delcuts
(Removed) Use problem.delCuts instead.
problem.delgencons
(Removed) Use problem.delGenCons instead.
problem.delindicators
(Removed) Use problem.delIndicators instead.
problem.delobj
(Removed) Use problem.delObj instead.
problem.delpwlcons
(Removed) Use problem.delPwlCons instead.
problem.delqmatrix
(Removed) Use problem.delQMatrix instead.
problem.deltolsets
(Removed)
problem.delvars
(Removed)
problem.dumpcontrols
(Removed) Use problem.dumpControls instead.
problem.estimaterowdualranges
(Removed) Use problem.estimateRowDualRanges instead.
problem.evaluatecoef
(Removed) Use problem.slpEvaluateCoef instead.
problem.evaluateformula
(Removed) Use problem.nlpEvaluateFormula instead.
problem.fixmipentities
(Removed) Use problem.fixMIPEntities instead.
problem.fixpenalties
(Removed) Use problem.slpFixPenalties instead.
problem.ftran
(Removed) Use problem.FTran instead.
problem.getattribinfo
(Removed) Use problem.getAttribInfo instead.
problem.getbasis
(Removed) Use problem.getBasis instead.
problem.getbasisval
(Removed)
problem.getccoef
(Removed) Use problem.slpGetCoefStr instead.
problem.getcoef
(Removed) Use problem.getCoef instead.
problem.getcoefformula
(Removed) Use problem.slpGetCoefStr instead.
problem.getcoefs
(Removed) Use problem.slpGetCoefs instead.
problem.getcolinfo
(Removed) Use problem.slpGetColInfo instead.
problem.getcols
(Removed) Use problem.getCols instead.
problem.getcoltype
(Removed) Use problem.getColType instead.
problem.getcontrolinfo
(Removed) Use problem.getControlInfo instead.
problem.getcpcutlist
(Removed) Use problem.getCPCutList instead.
problem.getcpcuts
(Removed) Use problem.getCPCuts instead.
problem.getcutlist
(Removed) Use problem.getCutList instead.
problem.getcutmap
(Removed) Use problem.getCutMap instead.
problem.getcutslack
(Removed) Use problem.getCutSlack instead.
problem.getdf
(Removed)
problem.getdirs
(Removed) Use problem.getDirs instead.
problem.getDual
(Removed) See problem.getDuals.
problem.getdualray
(Removed) Use problem.getDualRay instead.
problem.getgencons
(Removed) Use problem.getGenCons instead.
problem.getiisdata
(Removed) Use problem.getIISData instead.
problem.getIndexFromName
(Removed) Use problem.getIndex instead.
problem.getindicators
(Removed) Use problem.getIndicators instead.
problem.getinfeas
(Removed) Use problem.getInfeas instead.
problem.getlastbarsol
(Removed) Use problem.getLastBarSol instead.
problem.getlasterror
(Removed)
problem.getlb
(Removed) Use problem.getLB instead.
problem.getlpsol
(Removed) Use problem.getLpSol instead.
problem.getmessagestatus
(Removed) Use problem.getMessageStatus instead.
problem.getmipentities
(Removed) Use problem.getMIPEntities instead.
problem.getmipsol
(Removed) Use problem.getSolution and problem.getSlacks instead.
problem.getmqobj
(Removed) Use problem.getMQObj instead.
problem.getnamelist
(Removed) Use problem.getNameList instead.
problem.getobj
(Removed) Use problem.getObj instead.
problem.getobjn
(Removed) Use problem.getObjN instead.
problem.getObjVal
(Removed) Use problem.attributes.objval instead.
problem.getpivotorder
(Removed) Use problem.getPivotOrder instead.
problem.getpivots
(Removed) Use problem.getPivots instead.
problem.getpresolvebasis
(Removed) Use problem.getPresolveBasis instead.
problem.getpresolvemap
(Removed) Use problem.getPresolveMap instead.
problem.getpresolvesol
(Removed) Use problem.getPresolveSol instead.
problem.getprimalray
(Removed) Use problem.getPrimalRay instead.
problem.getProbStatus
(Removed) Use problem.attributes.solvestatus and problem.attributes.solstatus instead.
problem.getProbStatusString
(Removed) Use problem.attributes.solvestatus and problem.attributes.solstatus instead.
problem.getpwlcons
(Removed) Use problem.getPwlCons instead.
problem.getqobj
(Removed) Use problem.getQObj instead.
problem.getqrowcoeff
(Removed) Use problem.getQRowCoeff instead.
problem.getqrowqmatrix
(Removed) Use problem.getQRowQMatrix instead.
problem.getqrowqmatrixtriplets
(Removed) Use problem.getQRowQMatrixTriplets instead.
problem.getqrows
(Removed) Use problem.getQRows instead.
problem.getRCost
(Removed) See problem.getRedCosts.
problem.getrhs
(Removed) Use problem.getRHS instead.
problem.getrhsrange
(Removed) Use problem.getRHSRange instead.
problem.getrowinfo
(Removed) Use problem.slpGetRowInfo instead.
problem.getrows
(Removed) Use problem.getRows instead.
problem.getrowstatus
(Removed) Use problem.slpGetRowStatus instead.
problem.getrowtype
(Removed) Use problem.getRowType instead.
problem.getrowwt
(Removed) Use problem.slpGetRowWT instead.
problem.getscaledinfeas
(Removed) Use problem.getScaledInfeas instead.
problem.getSlack
(Removed) See problem.getSlacks.
problem.getslpsol
(Removed) Use problem.getSolution and related functions instead.
problem.gettolset
(Removed)
problem.getub
(Removed) Use problem.getUB instead.
problem.getunbvec
(Removed) Use problem.getUnbVec instead.
problem.getvar
(Removed)
problem.hasdualray
(Removed) Use problem.getDualRay instead.
problem.hasprimalray
(Removed) Use problem.getPrimalRay instead.
problem.iisall
(Removed) Use problem.IISAll instead.
problem.iisclear
(Removed) Use problem.clearIIS instead.
problem.iisfirst
(Removed) Use problem.firstIIS instead.
problem.iisisolations
(Removed) Use problem.IISIsolations instead.
problem.iisnext
(Removed) Use problem.nextIIS instead.
problem.iisstatus
(Removed) Use problem.IISStatus instead.
problem.iiswrite
(Removed) Use problem.writeIIS instead.
problem.loadbasis
(Removed) Use problem.loadBasis instead.
problem.loadbranchdirs
(Removed) Use problem.loadBranchDirs instead.
problem.loadcoefs
(Removed) Use problem.slpLoadCoefs instead.
problem.loadcuts
(Removed) Use problem.loadCuts instead.
problem.loaddelayedrows
(Removed) Use problem.loadDelayedRows instead.
problem.loaddfs
(Removed)
problem.loaddirs
(Removed) Use problem.loadDirs instead.
problem.loadlpsol
(Removed) Use problem.loadLPSol instead.
problem.loadmipsol
(Removed) Use problem.loadMipSol instead.
problem.loadmodelcuts
(Removed) Use problem.loadModelCuts instead.
problem.loadpresolvebasis
(Removed) Use problem.loadPresolveBasis instead.
problem.loadpresolvedirs
(Removed) Use problem.loadPresolveDirs instead.
problem.loadproblem
(Removed)
problem.loadsecurevecs
(Removed) Use problem.loadSecureVecs instead.
problem.loadtolsets
(Removed)
problem.loadvars
(Removed)
problem.lpoptimize
(Removed) Use problem.lpOptimize instead.
problem.mipoptimize
(Removed) Use problem.mipOptimize instead.
problem.msaddcustompreset
(Removed) Use problem.msAddCustomPreset instead.
problem.msaddjob
(Removed) Use problem.msAddJob instead.
problem.msaddpreset
(Removed) Use problem.msAddPreset instead.
problem.msclear
(Removed) Use problem.msClear instead.
problem.name
(Removed) Use problem.getProbName instead.
problem.nlpchgformula
(Removed) Use problem.nlpChgFormula instead.
problem.nlpchgformulastr
(Removed) Use problem.nlpChgFormulaStr instead.
problem.nlpgetformula
(Removed) Use problem.nlpGetFormula instead.
problem.nlpgetformulastr
(Removed) Use problem.nlpGetFormulaStr instead.
problem.nlpoptimize
(Removed) Use problem.nlpOptimize instead.
problem.nlpsetinitval
(Removed) Use problem.nlpSetInitVal instead.
problem.objsa
(Removed) Use problem.objSA instead.
problem.postsolve
(Removed) Use problem.postSolve instead.
problem.presolve
(Removed)
problem.presolverow
(Removed) Use problem.presolveRow instead.
problem.printevalinfo
(Removed) Use problem.nlpPrintEvalInfo instead.
problem.printmemory
(Removed)
problem.read
(Removed) Use problem.readProb instead.
problem.readbasis
(Removed) Use problem.readBasis instead.
problem.readbinsol
(Removed) Use problem.readBinSol instead.
problem.readdirs
(Removed) Use problem.readDirs instead.
problem.readslxsol
(Removed) Use problem.readSlxSol instead.
problem.reinitialize
(Removed) Use problem.slpReInitialize instead.
problem.removecbafterobjective
(Removed) Use problem.removeAfterObjectiveCallback instead.
problem.removecbbariteration
(Removed) Use problem.removeBarIterationCallback instead.
problem.removecbbarlog
(Removed) Use problem.removeBarlogCallback instead.
problem.removecbbeforeobjective
(Removed) Use problem.removeBeforeObjectiveCallback instead.
problem.removecbchecktime
(Removed) Use problem.removeCheckTimeCallback instead.
problem.removecbchgbranchobject
problem.removecbcutlog
(Removed) Use problem.removeCutlogCallback instead.
problem.removecbcutround
(Removed) Use problem.removeCutRoundCallback instead.
problem.removecbdestroymt
problem.removecbgapnotify
(Removed) Use problem.removeGapNotifyCallback instead.
problem.removecbinfnode
(Removed) Use problem.removeInfnodeCallback instead.
problem.removecbintsol
(Removed) Use problem.removeIntsolCallback instead.
problem.removecblplog
(Removed) Use problem.removeLplogCallback instead.
problem.removecbmessage
(Removed) Use problem.removeMessageCallback instead.
problem.removecbmiplog
(Removed) Use problem.removeMiplogCallback instead.
problem.removecbmipthread
(Removed) Use problem.removeMipThreadCallback instead.
problem.removecbnewnode
(Removed) Use problem.removeNewnodeCallback instead.
problem.removecbnodecutoff
(Removed) Use problem.removeNodecutoffCallback instead.
problem.removecbnodelpsolved
(Removed) Use problem.removeNodeLPSolvedCallback instead.
problem.removecboptnode
(Removed) Use problem.removeOptnodeCallback instead.
problem.removecbpreintsol
(Removed) Use problem.removePreIntsolCallback instead.
problem.removecbprenode
(Removed) Use problem.removePrenodeCallback instead.
problem.removecbpresolve
(Removed) Use problem.removePresolveCallback instead.
problem.removecbusersolnotify
(Removed) Use problem.removeUserSolNotifyCallback instead.
problem.repairinfeas
(Removed) Use problem.repairInfeas instead.
problem.repairweightedinfeas
(Removed) Use problem.repairWeightedInfeas instead.
problem.repairweightedinfeasbounds
(Removed) Use problem.repairWeightedInfeasBounds instead.
problem.rhssa
(Removed) Use problem.rhsSA instead.
problem.scaling
(Removed)
problem.setcbcascadeend
(Removed)
problem.setcbcascadestart
(Removed)
problem.setcbcascadevar
(Removed)
problem.setcbcascadevarfail
(Removed)
problem.setcbcoefevalerror
(Removed)
problem.setcbconstruct
(Removed)
problem.setcbdestroy
(Removed)
problem.setcbdrcol
(Removed)
problem.setcbintsol
(Removed) Use problem.addIntsolCallback instead.
problem.setcbiterend
(Removed)
problem.setcbiterstart
(Removed)
problem.setcbitervar
(Removed)
problem.setcbmessage
(Removed) Use problem.addMessageCallback instead.
problem.setcbmsjobend
(Removed) Use problem.addMsJobEndCallback instead.
problem.setcbmsjobstart
(Removed) Use problem.addMsJobStartCallback instead.
problem.setcbmswinner
(Removed) Use problem.addMsWinnerCallback instead.
problem.setcboptnode
(Removed) Use problem.addOptnodeCallback instead.
problem.setcbprenode
(Removed) Use problem.addPrenodeCallback instead.
problem.setcbpreupdatelinearization
(Removed)
problem.setcbslpend
(Removed)
problem.setcbslpnode
(Removed)
problem.setcbslpstart
(Removed)
problem.setcurrentiv
(Removed) Use problem.nlpCurrentIV instead.
problem.setdefaultcontrol
(Removed) Use problem.setDefaultControl instead.
problem.setdefaults
(Removed) Use problem.setDefaults instead.
problem.setindicators
(Removed) Use problem.setIndicators instead.
problem.setlogfile
(Removed) Use problem.setLogFile instead.
problem.setmessagestatus
(Removed) Use problem.setMessageStatus instead.
problem.setprobname
(Removed) Use problem.setProbName instead.
problem.slpchgcoef
(Removed) Use problem.slpChgCoef instead.
problem.slpchgcoefstr
(Removed) Use problem.slpChgCoefStr instead.
problem.slpgetcoefformula
(Removed) Use problem.slpGetCoefFormula instead.
problem.slpgetcoefstr
(Removed) Use problem.slpGetCoefStr instead.
problem.storecuts
(Removed) Use problem.storeCuts instead.
problem.strongbranch
(Removed) Use problem.strongBranch instead.
problem.strongbranchcb
(Removed) Use problem.strongBranchCB instead.
problem.tuneprobsetfile
(Removed) Use problem.tuneProbSetFile instead.
problem.tunerreadmethod
(Removed) Use problem.tunerReadMethod instead.
problem.tunerwritemethod
(Removed) Use problem.tunerWriteMethod instead.
problem.unconstruct
(Removed) Use problem.slpUnConstruct instead.
problem.updatelinearization
(Removed) Use problem.slpUpdateLinearization instead.
problem.validate
(Removed) Use problem.nlpValidate instead.
problem.validatekkt
(Removed) Use problem.nlpValidateKKT instead.
problem.validaterow
(Removed) Use problem.nlpValidateRow instead.
problem.validatevector
(Removed) Use problem.nlpValidateVector instead.
problem.write
(Removed) Use problem.writeProb instead.
problem.writebasis
(Removed) Use problem.writeBasis instead.
problem.writebinsol
(Removed) Use problem.writeBinSol instead.
problem.writedirs
(Removed) Use problem.writeDirs instead.
problem.writeprtsol
(Removed) Use problem.writePrtSol instead.
problem.writeslxsol
(Removed) Use problem.writeSlxSol instead.
problem.writesol
(Removed) Use problem.writeSol instead.
xpress.featurequery
(Removed) Use xpress.featureQuery instead.
xpress.getbanner
(Removed) Use xpress.getBanner instead.
xpress.getcheckedmode
(Removed) Use xpress.getCheckedMode instead.
xpress.getcomputeallowed
(Removed) Use xpress.getComputeAllowed instead.
xpress.getdaysleft
(Removed) Use xpress.getDaysLeft instead.
xpress.getlasterror
(Removed)
xpress.getlicerrmsg
(Removed)
xpress.getversion
(Removed) Use xpress.getVersion instead.
xpress.getversionnumbers
(Removed) Use xpress.getVersionNumbers instead.
xpress.is_equal
(Removed) Deprecated alias for xpress.isEqual.
xpress.setarchconsistency
(Removed) Use xpress.setArchConsistency instead.
xpress.setcheckedmode
(Removed) Use xpress.setCheckedMode instead.
xpress.setcomputeallowed
(Removed) Use xpress.setComputeAllowed instead.
xpress.setdefaultcontrol
(Removed) Deprecated alias for xpress.setDefaultControl.
xpress.setdefaults
(Removed) Deprecated alias for xpress.setDefaults.
xpress.vars
(Removed) Use problem.addVariables to add linked variables to the problem instead.

© 2001-2026 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.