XPRSmipsolpool
- java.lang.Object
-
- com.dashoptimization.XPRSobject
-
- com.dashoptimization.XPRSmipsolpool
-
public class XPRSmipsolpool extends XPRSobject
Represents a solution pool
-
-
Nested Class Summary
Modifier and Type Class and Description classXPRSmipsolpool.AttributesclassXPRSmipsolpool.Controls
-
Constructor Summary
Constructor and Description XPRSmipsolpool()Creates a new MIP solution pool.
-
Method Summary
Modifier and Type Method and Description voidaddMsgHandlerListener(XPRSmsgHandlerListener listener)Add a listener for the MsgHandlercallback.voidaddMsgHandlerListener(XPRSmsgHandlerListener listener, int priority)Add the listener for the MsgHandlercallback.voidaddMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data)Add the listener for the MsgHandlercallback.voidaddMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data, int priority)Add the listener for the MsgHandlercallback.XPRSmipsolpool.Attributesattributes()XPRSmipsolpool.Controlscontrols()voiddelSol(int iSolutionId, IntHolder iSolutionIdStatus_)voiddestroy()Deallocates resources associated with an XPRSobjectintfindSolByName(java.lang.String sSolutionName)voidfindSolByName(java.lang.String sSolutionName, IntHolder iSolutionId)doublegetDblAttrib(int iAttribId)voidgetDblAttrib(int iAttribId, DoubleHolder Val)voidgetDblAttribProb(XPRSprob prob, int iAttribId, DoubleHolder Dst)voidgetDblAttribProbExtreme(XPRSprob prob_to_rank_against, int bGet_Max_Otherwise_Min, IntHolder iSolutionId, int iAttribId, DoubleHolder ExtremeVal)voidgetDblAttribProbSol(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, DoubleHolder Dst)doublegetDblAttribSol(int iSolutionId, int iAttribId)doublegetDblAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId)voidgetDblAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, DoubleHolder Dst)doublegetDblControl(int iControlId)voidgetDblControl(int iControlId, DoubleHolder Val)doublegetDblControlSol(int iSolutionId, int iControlId)doublegetDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId)voidgetDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, DoubleHolder Val)intgetIntAttrib(int iAttribId)voidgetIntAttrib(int iAttribId, IntHolder Val)voidgetIntAttribProb(XPRSprob prob, int iAttribId, IntHolder Dst)voidgetIntAttribProbExtreme(XPRSprob prob_to_rank_against, int bGet_Max_Otherwise_Min, IntHolder iSolutionId, int iAttribId, IntHolder ExtremeVal)voidgetIntAttribProbSol(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, IntHolder Dst)intgetIntAttribSol(int iSolutionId, int iAttribId)intgetIntAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId)voidgetIntAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, IntHolder Dst)intgetIntControl(int iControlId)voidgetIntControl(int iControlId, IntHolder Val)intgetIntControlSol(int iSolutionId, int iControlId)intgetIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId)voidgetIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, IntHolder Val)java.lang.StringgetLastError()Returns last error message that occurred on this XPRSobjectjava.lang.StringgetLastError(IntHolder iMsgCode)voidgetSlack(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, double[] slack, int iRowFirst, int iRowLast, IntHolder nValuesReturned)voidgetSol(int iSolutionId, IntHolder iSolutionIdStatus_, double[] x, int iColFirst, int iColLast, IntHolder nValuesReturned)voidgetSolList(XPRSprob prob_to_rank_against, int iRankAttrib, int bRankAscending, int iRankFirstIndex_Ob, int iRankLastIndex_Ob, int[] iSolutionIds_Zb, IntHolder nReturnedSolIds, IntHolder nSols)voidgetSolList2(XPRSprob prob_to_rank_against, int iRankAttrib, int bRankAscending, int iRankFirstIndex_Ob, int iRankLastIndex_Ob, int bUseUserBitFilter, int iUserBitMask, int iUserBitPattern, int bUseInternalBitFilter, int iInternalBitMask, int iInternalBitPattern, int[] iSolutionIds_Zb, IntHolder nReturnedSolIds, IntHolder nSols)java.lang.StringgetSolName(int iSolutionId)java.lang.StringgetSolName(int iSolutionId, IntHolder iSolutionIdStatus_)voidgetSolName(int iSolutionId, StringHolder _sname, int _iStringBufferBytes, IntHolder _iBytesInInternalString, IntHolder iSolutionIdStatus_)voidloadSol(IntHolder iSolutionId, double[] x, int nCols, java.lang.String sSolutionName, IntHolder bNameModifiedForUniqueness, IntHolder iSolutionIdOfExistingDuplicatePreventedLoad)voidprobAttach(XPRSprob prob)voidprobDetach(XPRSprob prob)voidreadSlxSol(XPRSnamelist col_name_list, java.lang.String sFileName, java.lang.String sFlags, IntHolder iSolutionId_Beg, IntHolder iSolutionId_End)voidremoveMsgHandlerListener()Removes all MsgHandler listeners from the object.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 callbackvoidsetDblControl(int iControlId, double Val)voidsetDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, double Val)voidsetIntControl(int iControlId, int Val)voidsetIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, int Val)voidsetSolName(int iSolutionId, java.lang.String sNewSolutionBaseName, IntHolder bNameModifiedForUniqueness, IntHolder iSolutionIdStatus_)voidwriteSlxSol(XPRSprob prob_context, int iSolutionId, IntHolder iSolutionIdStatus_, java.lang.String sFileName, java.lang.String sFlags)-
Methods inherited from class com.dashoptimization.XPRSobject
addMsgHandlerListener, addMsgHandlerListener, isDestroyed
-
-
-
-
Constructor Detail
-
XPRSmipsolpool
public XPRSmipsolpool() throws XPRSexceptionCreates a new MIP solution pool. XPRS.Init must have been called first.- Throws:
-
XPRSexception
-
-
Method Detail
-
probAttach
public void probAttach(XPRSprob prob) throws XPRSexception
- Throws:
-
XPRSexception
-
probDetach
public void probDetach(XPRSprob prob) throws XPRSexception
- Throws:
-
XPRSexception
-
destroy
public void destroy() throws XPRSexceptionDescription copied from class:XPRSobjectDeallocates resources associated with an XPRSobject- Specified by:
-
destroyin classXPRSobject - Throws:
-
XPRSexception
-
getSolList
public void getSolList(XPRSprob prob_to_rank_against, int iRankAttrib, int bRankAscending, int iRankFirstIndex_Ob, int iRankLastIndex_Ob, int[] iSolutionIds_Zb, IntHolder nReturnedSolIds, IntHolder nSols) throws XPRSexception
- Throws:
-
XPRSexception
-
getSolList2
public void getSolList2(XPRSprob prob_to_rank_against, int iRankAttrib, int bRankAscending, int iRankFirstIndex_Ob, int iRankLastIndex_Ob, int bUseUserBitFilter, int iUserBitMask, int iUserBitPattern, int bUseInternalBitFilter, int iInternalBitMask, int iInternalBitPattern, int[] iSolutionIds_Zb, IntHolder nReturnedSolIds, IntHolder nSols) throws XPRSexception
- Throws:
-
XPRSexception
-
getSol
public void getSol(int iSolutionId, IntHolder iSolutionIdStatus_, double[] x, int iColFirst, int iColLast, IntHolder nValuesReturned) throws XPRSexception- Throws:
-
XPRSexception
-
getSlack
public void getSlack(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, double[] slack, int iRowFirst, int iRowLast, IntHolder nValuesReturned) throws XPRSexception
- Throws:
-
XPRSexception
-
loadSol
public void loadSol(IntHolder iSolutionId, double[] x, int nCols, java.lang.String sSolutionName, IntHolder bNameModifiedForUniqueness, IntHolder iSolutionIdOfExistingDuplicatePreventedLoad) throws XPRSexception
- Throws:
-
XPRSexception
-
delSol
public void delSol(int iSolutionId, IntHolder iSolutionIdStatus_) throws XPRSexception- Throws:
-
XPRSexception
-
getIntAttribProbSol
public void getIntAttribProbSol(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, IntHolder Dst) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblAttribProbSol
public void getDblAttribProbSol(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, DoubleHolder Dst) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntAttribProb
public void getIntAttribProb(XPRSprob prob, int iAttribId, IntHolder Dst) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblAttribProb
public void getDblAttribProb(XPRSprob prob, int iAttribId, DoubleHolder Dst) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntAttribSol
public void getIntAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, IntHolder Dst) throws XPRSexception- Throws:
-
XPRSexception
-
getIntAttribSol
public int getIntAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId) throws XPRSexception- Throws:
-
XPRSexception
-
getIntAttribSol
public int getIntAttribSol(int iSolutionId, int iAttribId) throws XPRSexception- Throws:
-
XPRSexception
-
getDblAttribSol
public void getDblAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, DoubleHolder Dst) throws XPRSexception- Throws:
-
XPRSexception
-
getDblAttribSol
public double getDblAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId) throws XPRSexception- Throws:
-
XPRSexception
-
getDblAttribSol
public double getDblAttribSol(int iSolutionId, int iAttribId) throws XPRSexception- Throws:
-
XPRSexception
-
getIntControlSol
public void getIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, IntHolder Val) throws XPRSexception- Throws:
-
XPRSexception
-
getIntControlSol
public int getIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId) throws XPRSexception- Throws:
-
XPRSexception
-
getIntControlSol
public int getIntControlSol(int iSolutionId, int iControlId) throws XPRSexception- Throws:
-
XPRSexception
-
getDblControlSol
public void getDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, DoubleHolder Val) throws XPRSexception- Throws:
-
XPRSexception
-
getDblControlSol
public double getDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId) throws XPRSexception- Throws:
-
XPRSexception
-
getDblControlSol
public double getDblControlSol(int iSolutionId, int iControlId) throws XPRSexception- Throws:
-
XPRSexception
-
setIntControlSol
public void setIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, int Val) throws XPRSexception- Throws:
-
XPRSexception
-
setDblControlSol
public void setDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, double Val) throws XPRSexception- Throws:
-
XPRSexception
-
getIntAttribProbExtreme
public void getIntAttribProbExtreme(XPRSprob prob_to_rank_against, int bGet_Max_Otherwise_Min, IntHolder iSolutionId, int iAttribId, IntHolder ExtremeVal) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblAttribProbExtreme
public void getDblAttribProbExtreme(XPRSprob prob_to_rank_against, int bGet_Max_Otherwise_Min, IntHolder iSolutionId, int iAttribId, DoubleHolder ExtremeVal) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntAttrib
public void getIntAttrib(int iAttribId, IntHolder Val) throws XPRSexception- Throws:
-
XPRSexception
-
getIntAttrib
public int getIntAttrib(int iAttribId) throws XPRSexception- Throws:
-
XPRSexception
-
getDblAttrib
public void getDblAttrib(int iAttribId, DoubleHolder Val) throws XPRSexception- Throws:
-
XPRSexception
-
getDblAttrib
public double getDblAttrib(int iAttribId) throws XPRSexception- Throws:
-
XPRSexception
-
getIntControl
public void getIntControl(int iControlId, IntHolder Val) throws XPRSexception- Throws:
-
XPRSexception
-
getIntControl
public int getIntControl(int iControlId) throws XPRSexception- Throws:
-
XPRSexception
-
getDblControl
public void getDblControl(int iControlId, DoubleHolder Val) throws XPRSexception- Throws:
-
XPRSexception
-
getDblControl
public double getDblControl(int iControlId) throws XPRSexception- Throws:
-
XPRSexception
-
setIntControl
public void setIntControl(int iControlId, int Val) throws XPRSexception- Throws:
-
XPRSexception
-
setDblControl
public void setDblControl(int iControlId, double Val) throws XPRSexception- Throws:
-
XPRSexception
-
setSolName
public void setSolName(int iSolutionId, java.lang.String sNewSolutionBaseName, IntHolder bNameModifiedForUniqueness, IntHolder iSolutionIdStatus_) throws XPRSexception- Throws:
-
XPRSexception
-
getSolName
public void getSolName(int iSolutionId, StringHolder _sname, int _iStringBufferBytes, IntHolder _iBytesInInternalString, IntHolder iSolutionIdStatus_) throws XPRSexception- Throws:
-
XPRSexception
-
getSolName
public java.lang.String getSolName(int iSolutionId, IntHolder iSolutionIdStatus_) throws XPRSexception- Throws:
-
XPRSexception
-
getSolName
public java.lang.String getSolName(int iSolutionId) throws XPRSexception- Throws:
-
XPRSexception
-
findSolByName
public void findSolByName(java.lang.String sSolutionName, IntHolder iSolutionId) throws XPRSexception- Throws:
-
XPRSexception
-
findSolByName
public int findSolByName(java.lang.String sSolutionName) throws XPRSexception- Throws:
-
XPRSexception
-
writeSlxSol
public void writeSlxSol(XPRSprob prob_context, int iSolutionId, IntHolder iSolutionIdStatus_, java.lang.String sFileName, java.lang.String sFlags) throws XPRSexception
- Throws:
-
XPRSexception
-
readSlxSol
public void readSlxSol(XPRSnamelist col_name_list, java.lang.String sFileName, java.lang.String sFlags, IntHolder iSolutionId_Beg, IntHolder iSolutionId_End) throws XPRSexception
- Throws:
-
XPRSexception
-
getLastError
public java.lang.String getLastError() throws XPRSexceptionDescription copied from class:XPRSobjectReturns last error message that occurred on this XPRSobject- Specified by:
-
getLastErrorin classXPRSobject - Throws:
-
XPRSexception
-
getLastError
public java.lang.String getLastError(IntHolder iMsgCode) throws XPRSexception
- Throws:
-
XPRSexception
-
addMsgHandlerListener
public void addMsgHandlerListener(XPRSmsgHandlerListener listener) throws XPRSexception
Add a listener for the MsgHandlercallback. 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
-
addMsgHandlerListener
public void addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data) throws XPRSexception
Add the listener for the MsgHandlercallback. 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
-
addMsgHandlerListener
public void addMsgHandlerListener(XPRSmsgHandlerListener listener, int priority) throws XPRSexception
Add the listener for the MsgHandlercallback. 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
-
addMsgHandlerListener
public void addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data, int priority) throws XPRSexception
Add the listener for the MsgHandlercallback. 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
-
removeMsgHandlerListener
public void removeMsgHandlerListener(XPRSmsgHandlerListener listener) throws XPRSexception
Removes the given MsgHandler listener from the object.- Throws:
-
XPRSexception
-
removeMsgHandlerListener
public 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
public void removeMsgHandlerListener() throws XPRSexceptionRemoves all MsgHandler listeners from the object. @deprecated as of Xpress 7.1, please useremoveMsgHandlerListener(XPRSmsgHandlerListener)orremoveMsgHandlerListeners()- Specified by:
-
removeMsgHandlerListenerin classXPRSobject - Throws:
-
XPRSexception
-
removeMsgHandlerListeners
public void removeMsgHandlerListeners() throws XPRSexceptionRemove all listeners for the MsgHandler callback- Throws:
-
XPRSexception
-
attributes
public XPRSmipsolpool.Attributes attributes()
-
controls
public XPRSmipsolpool.Controls controls()
-
-
