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 class
XPRSmipsolenum.Attributes
class
XPRSmipsolenum.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 void
addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener)
Add a listener for the GetSolutionDiffcallback.void
addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, int priority)
Add the listener for the GetSolutionDiffcallback.void
addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data)
Add the listener for the GetSolutionDiffcallback.void
addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data, int priority)
Add the listener for the GetSolutionDiffcallback.void
addMsgHandlerListener(XPRSmsgHandlerListener listener)
Add a listener for the MsgHandlercallback.void
addMsgHandlerListener(XPRSmsgHandlerListener listener, int priority)
Add the listener for the MsgHandlercallback.void
addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data)
Add the listener for the MsgHandlercallback.void
addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data, int priority)
Add the listener for the MsgHandlercallback.XPRSmipsolenum.Attributes
attributes()
XPRSmipsolenum.Controls
controls()
void
destroy()
Deallocates resources associated with an XPRSobjectint
getCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, double dNewSolMetric, BoolHolder bRejectSoln)
int
getCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, double dNewSolMetric, double[] x, int nCols, BoolHolder bRejectSoln)
void
getCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, IntHolder nSolsToCull, double dNewSolMetric, double[] x, int nCols, BoolHolder bRejectSoln)
double
getDblAttrib(int iAttribId)
void
getDblAttrib(int iAttribId, DoubleHolder Val)
double
getDblControl(int iAttribId)
void
getDblControl(int iAttribId, DoubleHolder Val)
int
getIntAttrib(int iAttribId)
void
getIntAttrib(int iAttribId, IntHolder Val)
int
getIntControl(int iAttribId)
void
getIntControl(int iAttribId, IntHolder Val)
java.lang.String
getLastError()
Returns last error message that occurred on this XPRSobjectjava.lang.String
getLastError(IntHolder iMsgCode)
void
getSolBaseName(StringHolder _sname, int _iStringBufferBytes, IntHolder _iBytesInInternalString)
void
getSolList(int iMetricId, int iRankFirstIndex_Ob, int iRankLastIndex_Ob, int[] iSolutionIds, IntHolder nReturnedSolIds, IntHolder nSols)
void
getSolMetric(int iSolutionId, IntHolder iSolutionIdStatus, int iMetricId, DoubleHolder dMetric)
void
maxim(XPRSprob prob, XPRSmipsolpool msp, IntHolder nMaxSols)
void
maxim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, IntHolder nMaxSols)
void
maxim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, java.lang.Object p, IntHolder nMaxSols)
void
minim(XPRSprob prob, XPRSmipsolpool msp, IntHolder nMaxSols)
void
minim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, IntHolder nMaxSols)
void
minim(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, java.lang.Object p, IntHolder nMaxSols)
void
opt(XPRSprob prob, XPRSmipsolpool msp, IntHolder nMaxSols)
void
opt(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, IntHolder nMaxSols)
void
opt(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, java.lang.Object p, IntHolder nMaxSols)
void
removeGetSolutionDiffListener()
Removes all GetSolutionDiff listeners from the object.void
removeGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener)
Removes the given GetSolutionDiff listener from the object.void
removeGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data)
Removes the given GetSolutionDiff listener with the given data value from the object.void
removeGetSolutionDiffListeners()
Remove all listeners for the GetSolutionDiff callbackvoid
removeMsgHandlerListener()
Removes all MsgHandler listeners from the object.void
removeMsgHandlerListener(XPRSmsgHandlerListener listener)
Removes the given MsgHandler listener from the object.void
removeMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data)
Removes the given MsgHandler listener with the given data value from the object.void
removeMsgHandlerListeners()
Remove all listeners for the MsgHandler callbackvoid
setDblControl(int iAttribId, double Val)
void
setIntControl(int iAttribId, int Val)
void
setSolBaseName(java.lang.String sSolutionBaseName)
-
Methods inherited from class com.dashoptimization.XPRSobject
addMsgHandlerListener, addMsgHandlerListener, isDestroyed
-
-
-
-
Constructor Detail
-
XPRSmipsolenum
public XPRSmipsolenum() throws XPRSexception
Creates 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 XPRSexception
Description copied from class:XPRSobject
Deallocates resources associated with an XPRSobject- Specified by:
-
destroy
in 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 XPRSexception
Description copied from class:XPRSobject
Returns last error message that occurred on this XPRSobject- Specified by:
-
getLastError
in 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 XPRSexception
Removes all GetSolutionDiff listeners from the object. @deprecated as of Xpress 7.1, please useremoveGetSolutionDiffListener(XPRSmseGetSolutionDiffListener)
orremoveGetSolutionDiffListeners()
- Throws:
-
XPRSexception
-
removeGetSolutionDiffListeners
public void removeGetSolutionDiffListeners() throws XPRSexception
Remove 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:
-
addMsgHandlerListener
in 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:
-
addMsgHandlerListener
in 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 XPRSexception
Removes all MsgHandler listeners from the object. @deprecated as of Xpress 7.1, please useremoveMsgHandlerListener(XPRSmsgHandlerListener)
orremoveMsgHandlerListeners()
- Specified by:
-
removeMsgHandlerListener
in classXPRSobject
- Throws:
-
XPRSexception
-
removeMsgHandlerListeners
public void removeMsgHandlerListeners() throws XPRSexception
Remove all listeners for the MsgHandler callback- Throws:
-
XPRSexception
-
attributes
public XPRSmipsolenum.Attributes attributes()
-
controls
public XPRSmipsolenum.Controls controls()
-
-
© 2001-2020 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.