XPRSmipsolenum
- java.lang.Object
-  
  - com.dashoptimization.XPRSobject
-  
    - com.dashoptimization.XPRSmipsolenum
 
 
-  
   - All Implemented Interfaces:
- 
     java.lang.AutoCloseable
 
 public class XPRSmipsolenum extends XPRSobject Represents a solution pool
-  
    
   -  
         Nested Class SummaryModifier and Type Class Description classXPRSmipsolenum.AttributesClass to access attributes.classXPRSmipsolenum.ControlsClass to access controls.
 -  
         Constructor SummaryConstructor Description XPRSmipsolenum()Creates a new MIP solution enumerator managed by the optimizer.
 -  
         Method SummaryModifier and Type Method Description voidaddGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener)Add a listener for the GetSolutionDiff callback.voidaddGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, int priority)Add a listener for the GetSolutionDiff callback.voidaddGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data)Add a listener for the GetSolutionDiff callback.voidaddGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data, int priority)Add a listener for the GetSolutionDiff 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.XPRSmipsolenum.Attributesattributes()Access the attributes of this instance.voidclose()Deallocates resources associated with an XPRSobject.XPRSmipsolenum.Controlscontrols()Access the controls of this instance.intgetCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, double dNewSolMetric, double[] x, int nCols, BoolHolder bRejectSoln)intgetCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, double dNewSolMetric, BoolHolder bRejectSoln)voidgetCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, IntHolder nSolsToCull, double dNewSolMetric, double[] x, int nCols, BoolHolder bRejectSoln)doublegetDblAttrib(int iAttribId)Convenience wrapper forgetDblAttrib(int, com.dashoptimization.DoubleHolder).voidgetDblAttrib(int iAttribId, DoubleHolder Val)doublegetDblControl(int iAttribId)Convenience wrapper forgetDblControl(int, com.dashoptimization.DoubleHolder).voidgetDblControl(int iAttribId, DoubleHolder Val)intgetIntAttrib(int iAttribId)Convenience wrapper forgetIntAttrib(int, com.dashoptimization.IntHolder).voidgetIntAttrib(int iAttribId, IntHolder Val)intgetIntControl(int iAttribId)Convenience wrapper forgetIntControl(int, com.dashoptimization.IntHolder).voidgetIntControl(int iAttribId, IntHolder Val)java.lang.StringgetLastError()Returns last error message that occurred on this XPRSobjectjava.lang.StringgetLastError(IntHolder iMsgCode)voidgetSolBaseName(StringHolder _sname, int _iStringBufferBytes, IntHolder _iBytesInInternalString)voidgetSolList(int iMetricId, int iRankFirstIndex_Ob, int iRankLastIndex_Ob, int[] iSolutionIds, IntHolder nReturnedSolIds, IntHolder nSols)voidgetSolMetric(int iSolutionId, IntHolder iSolutionIdStatus, int iMetricId, DoubleHolder dMetric)voidmaxim(XPRSprob prob, XPRSmipsolpool msp, IntHolder nMaxSols)voidmaxim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, IntHolder nMaxSols)voidmaxim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, java.lang.Object p, IntHolder nMaxSols)voidminim(XPRSprob prob, XPRSmipsolpool msp, IntHolder nMaxSols)voidminim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, IntHolder nMaxSols)voidminim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, java.lang.Object p, IntHolder nMaxSols)voidopt(XPRSprob prob, XPRSmipsolpool msp, IntHolder nMaxSols)voidopt(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, IntHolder nMaxSols)Convenience wrapper foropt(XPRSprob, XPRSmipsolpool, XPRSmipSolEnumHandlerListener, Object, com.dashoptimization.IntHolder).voidopt(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, java.lang.Object p, IntHolder nMaxSols)voidremoveGetSolutionDiffListener()Deprecated.voidremoveGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener)Removes the given GetSolutionDiff listener from the object.voidremoveGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data)Removes the given GetSolutionDiff listener with the given data value from the object.voidremoveGetSolutionDiffListeners()Remove all listeners for the GetSolutionDiff 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 callbackvoidsetDblControl(int iAttribId, double Val)voidsetIntControl(int iAttribId, int Val)voidsetSolBaseName(java.lang.String sSolutionBaseName)-  
           Methods inherited from class com.dashoptimization.XPRSobjectaddMsgHandlerListener, addMsgHandlerListener, destroy, isDestroyed
 
-  
           
 
-  
         
-  
    
   -  
         Constructor Detail-  XPRSmipsolenumpublic XPRSmipsolenum() throws XPRSexceptionCreates a new MIP solution enumerator managed by the optimizer. XPRS.Init must have been called first.- Throws:
- 
          XPRSexception
 
 
-  
 -  
         Method Detail-  minimpublic void minim(XPRSprob prob, XPRSmipsolpool msp, IntHolder nMaxSols) throws XPRSexception - Throws:
- 
          XPRSexception
 
 -  maximpublic void maxim(XPRSprob prob, XPRSmipsolpool msp, IntHolder nMaxSols) throws XPRSexception - Throws:
- 
          XPRSexception
 
 -  optpublic void opt(XPRSprob prob, XPRSmipsolpool msp, IntHolder nMaxSols) throws XPRSexception - Throws:
- 
          XPRSexception
 
 -  closepublic void close() Description copied from class:XPRSobjectDeallocates resources associated with an XPRSobject.- Specified by:
- 
          closein interfacejava.lang.AutoCloseable
- Specified by:
- 
          closein classXPRSobject
 
 -  minimpublic void minim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, java.lang.Object p, IntHolder nMaxSols) throws XPRSexception - Throws:
- 
          XPRSexception
 
 -  minimpublic void minim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, IntHolder nMaxSols) throws XPRSexception 
 -  maximpublic void maxim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, java.lang.Object p, IntHolder nMaxSols) throws XPRSexception - Throws:
- 
          XPRSexception
 
 -  maximpublic void maxim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, IntHolder nMaxSols) throws XPRSexception 
 -  optpublic void opt(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, java.lang.Object p, IntHolder nMaxSols) throws XPRSexception - Throws:
- 
          XPRSexception
 
 -  optpublic void opt(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, IntHolder nMaxSols) throws XPRSexception Convenience wrapper foropt(XPRSprob, XPRSmipsolpool, XPRSmipSolEnumHandlerListener, Object, com.dashoptimization.IntHolder).
 -  getSolListpublic void getSolList(int iMetricId, int iRankFirstIndex_Ob, int iRankLastIndex_Ob, int[] iSolutionIds, IntHolder nReturnedSolIds, IntHolder nSols) throws XPRSexception- Throws:
- 
          XPRSexception
 
 -  getSolMetricpublic void getSolMetric(int iSolutionId, IntHolder iSolutionIdStatus, int iMetricId, DoubleHolder dMetric) throws XPRSexception- Throws:
- 
          XPRSexception
 
 -  getCullChoicepublic void getCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, IntHolder nSolsToCull, double dNewSolMetric, double[] x, int nCols, BoolHolder bRejectSoln) throws XPRSexception- Throws:
- 
          XPRSexception
 
 -  getCullChoicepublic int getCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, double dNewSolMetric, double[] x, int nCols, BoolHolder bRejectSoln) throws XPRSexceptionConvenience wrapper forgetCullChoice(int, int[], int, com.dashoptimization.IntHolder, double, double[], int, com.dashoptimization.BoolHolder).- Returns:
- 
          The value that would be returned by 
          getCullChoice(int, int[], int, com.dashoptimization.IntHolder, double, double[], int, com.dashoptimization.BoolHolder)as output parameter.
- Throws:
- 
          XPRSexception
- See Also:
- 
          getCullChoice(int, int[], int, com.dashoptimization.IntHolder, double, double[], int, com.dashoptimization.BoolHolder)
 
 -  getCullChoicepublic int getCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, double dNewSolMetric, BoolHolder bRejectSoln) throws XPRSexceptionConvenience wrapper forgetCullChoice(int, int[], int, com.dashoptimization.IntHolder, double, double[], int, com.dashoptimization.BoolHolder).- Returns:
- 
          The value that would be returned by 
          getCullChoice(int, int[], int, com.dashoptimization.IntHolder, double, double[], int, com.dashoptimization.BoolHolder)as output parameter.
- Throws:
- 
          XPRSexception
- See Also:
- 
          getCullChoice(int, int[], int, com.dashoptimization.IntHolder, double, double[], int, com.dashoptimization.BoolHolder)
 
 -  getIntAttribpublic void getIntAttrib(int iAttribId, IntHolder Val) throws XPRSexception- Throws:
- 
          XPRSexception
 
 -  getIntAttribpublic int getIntAttrib(int iAttribId) throws XPRSexceptionConvenience wrapper forgetIntAttrib(int, com.dashoptimization.IntHolder).- Returns:
- 
          The value that would be returned by 
          getIntAttrib(int, com.dashoptimization.IntHolder)as output parameter.
- Throws:
- 
          XPRSexception
- See Also:
- 
          getIntAttrib(int, com.dashoptimization.IntHolder)
 
 -  getDblAttribpublic void getDblAttrib(int iAttribId, DoubleHolder Val) throws XPRSexception- Throws:
- 
          XPRSexception
 
 -  getDblAttribpublic double getDblAttrib(int iAttribId) throws XPRSexceptionConvenience wrapper forgetDblAttrib(int, com.dashoptimization.DoubleHolder).- Returns:
- 
          The value that would be returned by 
          getDblAttrib(int, com.dashoptimization.DoubleHolder)as output parameter.
- Throws:
- 
          XPRSexception
- See Also:
- 
          getDblAttrib(int, com.dashoptimization.DoubleHolder)
 
 -  getIntControlpublic void getIntControl(int iAttribId, IntHolder Val) throws XPRSexception- Throws:
- 
          XPRSexception
 
 -  getIntControlpublic int getIntControl(int iAttribId) throws XPRSexceptionConvenience wrapper forgetIntControl(int, com.dashoptimization.IntHolder).- Returns:
- 
          The value that would be returned by 
          getIntControl(int, com.dashoptimization.IntHolder)as output parameter.
- Throws:
- 
          XPRSexception
- See Also:
- 
          getIntControl(int, com.dashoptimization.IntHolder)
 
 -  getDblControlpublic void getDblControl(int iAttribId, DoubleHolder Val) throws XPRSexception- Throws:
- 
          XPRSexception
 
 -  getDblControlpublic double getDblControl(int iAttribId) throws XPRSexceptionConvenience wrapper forgetDblControl(int, com.dashoptimization.DoubleHolder).- Returns:
- 
          The value that would be returned by 
          getDblControl(int, com.dashoptimization.DoubleHolder)as output parameter.
- Throws:
- 
          XPRSexception
- See Also:
- 
          getDblControl(int, com.dashoptimization.DoubleHolder)
 
 -  setIntControlpublic void setIntControl(int iAttribId, int Val) throws XPRSexception- Throws:
- 
          XPRSexception
 
 -  setDblControlpublic void setDblControl(int iAttribId, double Val) 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
 
 -  setSolBaseNamepublic void setSolBaseName(java.lang.String sSolutionBaseName) throws XPRSexception- Throws:
- 
          XPRSexception
 
 -  getSolBaseNamepublic void getSolBaseName(StringHolder _sname, int _iStringBufferBytes, IntHolder _iBytesInInternalString) throws XPRSexception - Throws:
- 
          XPRSexception
 
 -  addGetSolutionDiffListenerpublic void addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener) throws XPRSexception Add a listener for the GetSolutionDiff callback. Note that an object can have multiple GetSolutionDiff listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all GetSolutionDiff listeners will be removed.)
- Throws:
- 
          XPRSexception
 
 -  addGetSolutionDiffListenerpublic void addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data) throws XPRSexception Add a listener for the GetSolutionDiff callback. Note that an object can have multiple GetSolutionDiff listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all GetSolutionDiff listeners will be removed.)
- 
          data- An additional object which will be passed down to the callback function
- Throws:
- 
          XPRSexception
 
 -  addGetSolutionDiffListenerpublic void addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, int priority) throws XPRSexception Add a listener for the GetSolutionDiff callback. Note that an object can have multiple GetSolutionDiff listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all GetSolutionDiff listeners will be removed.)
- 
          priority- Listeners with higher priorities are called first
- Throws:
- 
          XPRSexception
 
 -  addGetSolutionDiffListenerpublic void addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data, int priority) throws XPRSexception Add a listener for the GetSolutionDiff callback. Note that an object can have multiple GetSolutionDiff listeners.- Parameters:
- 
          listener- The listener to which the event will be dispatched. (If null, all GetSolutionDiff 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
 
 -  removeGetSolutionDiffListenerpublic void removeGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener) throws XPRSexception Removes the given GetSolutionDiff listener from the object.- Throws:
- 
          XPRSexception
 
 -  removeGetSolutionDiffListenerpublic void removeGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data) throws XPRSexception Removes the given GetSolutionDiff listener with the given data value from the object.- Throws:
- 
          XPRSexception
 
 -  removeGetSolutionDiffListener@Deprecated public void removeGetSolutionDiffListener() throws XPRSexceptionDeprecated.Removes all GetSolutionDiff listeners from the object. @deprecated as of Xpress 7.1, please useremoveGetSolutionDiffListener(XPRSmseGetSolutionDiffListener)orremoveGetSolutionDiffListeners()- Throws:
- 
          XPRSexception
 
 -  removeGetSolutionDiffListenerspublic void removeGetSolutionDiffListeners() throws XPRSexceptionRemove all listeners for the GetSolutionDiff 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 XPRSmipsolenum.Attributes attributes() Access the attributes of this instance.- Returns:
- an object that allows accessing the attributes of this instance.
 
 -  controlspublic XPRSmipsolenum.Controls controls() Access the controls of this instance.- Returns:
- an object that allows accessing the controls of this instance.
 
 
-  
 
-  
         
© 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.
 
