XPRSmipsolenum
- java.lang.Object
-
- com.dashoptimization.XPRSobject
-
- com.dashoptimization.XPRSmipsolenum
-
public class XPRSmipsolenum extends XPRSobject
Represents a solution pool
-
-
Nested Class Summary
Modifier and Type Class and Description classXPRSmipsolenum.AttributesclassXPRSmipsolenum.Controls
-
Constructor Summary
Constructor and Description XPRSmipsolenum()Creates a new MIP solution enumerator managed by the optimizer.
-
Method Summary
Modifier and Type Method and Description voidaddGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener)Add a listener for the GetSolutionDiffcallback.voidaddGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, int priority)Add the listener for the GetSolutionDiffcallback.voidaddGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data)Add the listener for the GetSolutionDiffcallback.voidaddGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data, int priority)Add the listener for the GetSolutionDiffcallback.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.XPRSmipsolenum.Attributesattributes()XPRSmipsolenum.Controlscontrols()voiddestroy()Deallocates resources associated with an XPRSobjectintgetCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, double dNewSolMetric, BoolHolder bRejectSoln)intgetCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, double dNewSolMetric, double[] x, int nCols, 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)voidgetDblAttrib(int iAttribId, DoubleHolder Val)doublegetDblControl(int iAttribId)voidgetDblControl(int iAttribId, DoubleHolder Val)intgetIntAttrib(int iAttribId)voidgetIntAttrib(int iAttribId, IntHolder Val)intgetIntControl(int iAttribId)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)voidopt(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, java.lang.Object p, IntHolder nMaxSols)voidremoveGetSolutionDiffListener()Removes all GetSolutionDiff listeners from the object.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()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 iAttribId, double Val)voidsetIntControl(int iAttribId, int Val)voidsetSolBaseName(java.lang.String sSolutionBaseName)-
Methods inherited from class com.dashoptimization.XPRSobject
addMsgHandlerListener, addMsgHandlerListener, isDestroyed
-
-
-
-
Constructor Detail
-
XPRSmipsolenum
public XPRSmipsolenum() throws XPRSexceptionCreates a new MIP solution enumerator managed by the optimizer. XPRS.Init must have been called first.- Throws:
-
XPRSexception
-
-
Method Detail
-
minim
public void minim(XPRSprob prob, XPRSmipsolpool msp, IntHolder nMaxSols) throws XPRSexception
- Throws:
-
XPRSexception
-
maxim
public void maxim(XPRSprob prob, XPRSmipsolpool msp, IntHolder nMaxSols) throws XPRSexception
- Throws:
-
XPRSexception
-
opt
public void opt(XPRSprob prob, XPRSmipsolpool msp, IntHolder nMaxSols) 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(int iMetricId, int iRankFirstIndex_Ob, int iRankLastIndex_Ob, int[] iSolutionIds, IntHolder nReturnedSolIds, IntHolder nSols) throws XPRSexception- Throws:
-
XPRSexception
-
getSolMetric
public void getSolMetric(int iSolutionId, IntHolder iSolutionIdStatus, int iMetricId, DoubleHolder dMetric) throws XPRSexception- Throws:
-
XPRSexception
-
getCullChoice
public 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
-
getCullChoice
public int getCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, double dNewSolMetric, double[] x, int nCols, BoolHolder bRejectSoln) throws XPRSexception- Throws:
-
XPRSexception
-
getCullChoice
public int getCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, double dNewSolMetric, BoolHolder bRejectSoln) throws XPRSexception- Throws:
-
XPRSexception
-
minim
public void minim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, java.lang.Object p, IntHolder nMaxSols) throws XPRSexception
- Throws:
-
XPRSexception
-
minim
public void minim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, IntHolder nMaxSols) throws XPRSexception
- Throws:
-
XPRSexception
-
maxim
public void maxim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, java.lang.Object p, IntHolder nMaxSols) throws XPRSexception
- Throws:
-
XPRSexception
-
maxim
public void maxim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, IntHolder nMaxSols) throws XPRSexception
- Throws:
-
XPRSexception
-
opt
public void opt(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, java.lang.Object p, IntHolder nMaxSols) throws XPRSexception
- Throws:
-
XPRSexception
-
opt
public void opt(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, IntHolder nMaxSols) 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 iAttribId, IntHolder Val) throws XPRSexception- Throws:
-
XPRSexception
-
getIntControl
public int getIntControl(int iAttribId) throws XPRSexception- Throws:
-
XPRSexception
-
getDblControl
public void getDblControl(int iAttribId, DoubleHolder Val) throws XPRSexception- Throws:
-
XPRSexception
-
getDblControl
public double getDblControl(int iAttribId) throws XPRSexception- Throws:
-
XPRSexception
-
setIntControl
public void setIntControl(int iAttribId, int Val) throws XPRSexception- Throws:
-
XPRSexception
-
setDblControl
public void setDblControl(int iAttribId, double Val) 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
-
setSolBaseName
public void setSolBaseName(java.lang.String sSolutionBaseName) throws XPRSexception- Throws:
-
XPRSexception
-
getSolBaseName
public void getSolBaseName(StringHolder _sname, int _iStringBufferBytes, IntHolder _iBytesInInternalString) throws XPRSexception
- Throws:
-
XPRSexception
-
addGetSolutionDiffListener
public void addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener) throws XPRSexception
Add a listener for the GetSolutionDiffcallback. 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
-
addGetSolutionDiffListener
public void addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data) throws XPRSexception
Add the listener for the GetSolutionDiffcallback. 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
-
addGetSolutionDiffListener
public void addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, int priority) throws XPRSexception
Add the listener for the GetSolutionDiffcallback. 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
-
addGetSolutionDiffListener
public void addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data, int priority) throws XPRSexception
Add the listener for the GetSolutionDiffcallback. 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
-
removeGetSolutionDiffListener
public void removeGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener) throws XPRSexception
Removes the given GetSolutionDiff listener from the object.- Throws:
-
XPRSexception
-
removeGetSolutionDiffListener
public 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
public void removeGetSolutionDiffListener() throws XPRSexceptionRemoves all GetSolutionDiff listeners from the object. @deprecated as of Xpress 7.1, please useremoveGetSolutionDiffListener(XPRSmseGetSolutionDiffListener)orremoveGetSolutionDiffListeners()- Throws:
-
XPRSexception
-
removeGetSolutionDiffListeners
public void removeGetSolutionDiffListeners() throws XPRSexceptionRemove all listeners for the GetSolutionDiff callback- 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 XPRSmipsolenum.Attributes attributes()
-
controls
public XPRSmipsolenum.Controls controls()
-
-
© 2001-2019 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.
