XPRSmipsolpool
- java.lang.Object
-  
  - com.dashoptimization.XPRSobject
-  
    - com.dashoptimization.XPRSmipsolpool
 
 
-  
   
 
 public class XPRSmipsolpool extends XPRSobject Represents a solution pool
-  
    
   -  
        Nested Class SummaryModifier and Type Class and Description classXPRSmipsolpool.AttributesclassXPRSmipsolpool.Controls
 -  
        Constructor SummaryConstructor and Description XPRSmipsolpool()Creates a new MIP solution pool.
 -  
        Method SummaryModifier 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.XPRSobjectaddMsgHandlerListener, addMsgHandlerListener, isDestroyed
 
-  
          
 
-  
        
-  
    
   -  
        Constructor Detail-  XPRSmipsolpoolpublic XPRSmipsolpool() throws XPRSexceptionCreates a new MIP solution pool. XPRS.Init must have been called first.- Throws:
- 
         XPRSexception
 
 
-  
 -  
        Method Detail-  probAttachpublic void probAttach(XPRSprob prob) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  probDetachpublic void probDetach(XPRSprob prob) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  destroypublic void destroy() throws XPRSexceptionDescription copied from class:XPRSobjectDeallocates resources associated with an XPRSobject- Specified by:
- 
         destroyin classXPRSobject
- Throws:
- 
         XPRSexception
 
 -  getSolListpublic 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
 
 -  getSolList2public 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
 
 -  getSolpublic void getSol(int iSolutionId, IntHolder iSolutionIdStatus_, double[] x, int iColFirst, int iColLast, IntHolder nValuesReturned) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getSlackpublic void getSlack(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, double[] slack, int iRowFirst, int iRowLast, IntHolder nValuesReturned) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  loadSolpublic void loadSol(IntHolder iSolutionId, double[] x, int nCols, java.lang.String sSolutionName, IntHolder bNameModifiedForUniqueness, IntHolder iSolutionIdOfExistingDuplicatePreventedLoad) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  delSolpublic void delSol(int iSolutionId, IntHolder iSolutionIdStatus_) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getIntAttribProbSolpublic void getIntAttribProbSol(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, IntHolder Dst) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  getDblAttribProbSolpublic void getDblAttribProbSol(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, DoubleHolder Dst) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  getIntAttribProbpublic void getIntAttribProb(XPRSprob prob, int iAttribId, IntHolder Dst) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  getDblAttribProbpublic void getDblAttribProb(XPRSprob prob, int iAttribId, DoubleHolder Dst) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  getIntAttribSolpublic void getIntAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, IntHolder Dst) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getIntAttribSolpublic int getIntAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getIntAttribSolpublic int getIntAttribSol(int iSolutionId, int iAttribId) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getDblAttribSolpublic void getDblAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, DoubleHolder Dst) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getDblAttribSolpublic double getDblAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getDblAttribSolpublic double getDblAttribSol(int iSolutionId, int iAttribId) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getIntControlSolpublic void getIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, IntHolder Val) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getIntControlSolpublic int getIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getIntControlSolpublic int getIntControlSol(int iSolutionId, int iControlId) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getDblControlSolpublic void getDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, DoubleHolder Val) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getDblControlSolpublic double getDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getDblControlSolpublic double getDblControlSol(int iSolutionId, int iControlId) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  setIntControlSolpublic void setIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, int Val) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  setDblControlSolpublic void setDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, double Val) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getIntAttribProbExtremepublic void getIntAttribProbExtreme(XPRSprob prob_to_rank_against, int bGet_Max_Otherwise_Min, IntHolder iSolutionId, int iAttribId, IntHolder ExtremeVal) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  getDblAttribProbExtremepublic void getDblAttribProbExtreme(XPRSprob prob_to_rank_against, int bGet_Max_Otherwise_Min, IntHolder iSolutionId, int iAttribId, DoubleHolder ExtremeVal) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  getIntAttribpublic void getIntAttrib(int iAttribId, IntHolder Val) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getIntAttribpublic int getIntAttrib(int iAttribId) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getDblAttribpublic void getDblAttrib(int iAttribId, DoubleHolder Val) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getDblAttribpublic double getDblAttrib(int iAttribId) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getIntControlpublic void getIntControl(int iControlId, IntHolder Val) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getIntControlpublic int getIntControl(int iControlId) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getDblControlpublic void getDblControl(int iControlId, DoubleHolder Val) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getDblControlpublic double getDblControl(int iControlId) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  setIntControlpublic void setIntControl(int iControlId, int Val) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  setDblControlpublic void setDblControl(int iControlId, double Val) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  setSolNamepublic void setSolName(int iSolutionId, java.lang.String sNewSolutionBaseName, IntHolder bNameModifiedForUniqueness, IntHolder iSolutionIdStatus_) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getSolNamepublic void getSolName(int iSolutionId, StringHolder _sname, int _iStringBufferBytes, IntHolder _iBytesInInternalString, IntHolder iSolutionIdStatus_) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getSolNamepublic java.lang.String getSolName(int iSolutionId, IntHolder iSolutionIdStatus_) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  getSolNamepublic java.lang.String getSolName(int iSolutionId) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  findSolByNamepublic void findSolByName(java.lang.String sSolutionName, IntHolder iSolutionId) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  findSolByNamepublic int findSolByName(java.lang.String sSolutionName) throws XPRSexception- Throws:
- 
         XPRSexception
 
 -  writeSlxSolpublic void writeSlxSol(XPRSprob prob_context, int iSolutionId, IntHolder iSolutionIdStatus_, java.lang.String sFileName, java.lang.String sFlags) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  readSlxSolpublic void readSlxSol(XPRSnamelist col_name_list, java.lang.String sFileName, java.lang.String sFlags, IntHolder iSolutionId_Beg, IntHolder iSolutionId_End) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  getLastErrorpublic java.lang.String getLastError() throws XPRSexceptionDescription copied from class:XPRSobjectReturns last error message that occurred on this XPRSobject- Specified by:
- 
         getLastErrorin classXPRSobject
- Throws:
- 
         XPRSexception
 
 -  getLastErrorpublic java.lang.String getLastError(IntHolder iMsgCode) throws XPRSexception - Throws:
- 
         XPRSexception
 
 -  addMsgHandlerListenerpublic 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
 
 -  addMsgHandlerListenerpublic 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
 
 -  addMsgHandlerListenerpublic 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
 
 -  addMsgHandlerListenerpublic 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
 
 -  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
 
 -  removeMsgHandlerListenerpublic 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
 
 -  removeMsgHandlerListenerspublic void removeMsgHandlerListeners() throws XPRSexceptionRemove all listeners for the MsgHandler callback- Throws:
- 
         XPRSexception
 
 -  attributespublic XPRSmipsolpool.Attributes attributes() 
 -  controlspublic XPRSmipsolpool.Controls controls() 
 
-  
 
-  
        
 
