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 Summary
Modifier and Type Class Description class
XPRSmipsolenum.Attributes
Class to access attributes.class
XPRSmipsolenum.Controls
Class to access controls.
-
Constructor Summary
Constructor Description XPRSmipsolenum()
Creates a new MIP solution enumerator managed by the optimizer.
-
Method Summary
Modifier and Type Method Description void
addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener)
Add a listener for the GetSolutionDiff callback.void
addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, int priority)
Add a listener for the GetSolutionDiff callback.void
addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data)
Add a listener for the GetSolutionDiff callback.void
addGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener, java.lang.Object data, int priority)
Add a listener for the GetSolutionDiff callback.void
addMsgHandlerListener(XPRSmsgHandlerListener listener)
Add a listener for the MsgHandler callback.void
addMsgHandlerListener(XPRSmsgHandlerListener listener, int priority)
Add a listener for the MsgHandler callback.void
addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data)
Add a listener for the MsgHandler callback.void
addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data, int priority)
Add a listener for the MsgHandler callback.XPRSmipsolenum.Attributes
attributes()
Access the attributes of this instance.void
close()
Deallocates resources associated with an XPRSobject.XPRSmipsolenum.Controls
controls()
Access the controls of this instance.int
getCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, double dNewSolMetric, double[] x, int nCols, BoolHolder bRejectSoln)
int
getCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, double dNewSolMetric, 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)
Convenience wrapper forgetDblAttrib(int, com.dashoptimization.DoubleHolder)
.void
getDblAttrib(int iAttribId, DoubleHolder Val)
double
getDblControl(int iAttribId)
Convenience wrapper forgetDblControl(int, com.dashoptimization.DoubleHolder)
.void
getDblControl(int iAttribId, DoubleHolder Val)
int
getIntAttrib(int iAttribId)
Convenience wrapper forgetIntAttrib(int, com.dashoptimization.IntHolder)
.void
getIntAttrib(int iAttribId, IntHolder Val)
int
getIntControl(int iAttribId)
Convenience wrapper forgetIntControl(int, com.dashoptimization.IntHolder)
.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)
Convenience wrapper foropt(XPRSprob, XPRSmipsolpool, XPRSmipSolEnumHandlerListener, Object, com.dashoptimization.IntHolder)
.void
opt(XPRSprob prob, XPRSmipsolpool msp, XPRSmipSolEnumHandlerListener f_mse_handler, java.lang.Object p, IntHolder nMaxSols)
void
removeGetSolutionDiffListener()
Deprecated.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()
Deprecated.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, destroy, 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
-
close
public void close()
Description copied from class:XPRSobject
Deallocates resources associated with an XPRSobject.- Specified by:
-
close
in interfacejava.lang.AutoCloseable
- Specified by:
-
close
in classXPRSobject
-
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
-
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
-
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
Convenience wrapper foropt(XPRSprob, XPRSmipsolpool, XPRSmipSolEnumHandlerListener, Object, com.dashoptimization.IntHolder)
.
-
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
Convenience 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)
-
getCullChoice
public int getCullChoice(int iMetricId, int[] cull_sol_id_list, int nMaxSolsToCull, double dNewSolMetric, BoolHolder bRejectSoln) throws XPRSexception
Convenience 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)
-
getIntAttrib
public void getIntAttrib(int iAttribId, IntHolder Val) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntAttrib
public int getIntAttrib(int iAttribId) throws XPRSexception
Convenience 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)
-
getDblAttrib
public void getDblAttrib(int iAttribId, DoubleHolder Val) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblAttrib
public double getDblAttrib(int iAttribId) throws XPRSexception
Convenience 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)
-
getIntControl
public void getIntControl(int iAttribId, IntHolder Val) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntControl
public int getIntControl(int iAttribId) throws XPRSexception
Convenience 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)
-
getDblControl
public void getDblControl(int iAttribId, DoubleHolder Val) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblControl
public double getDblControl(int iAttribId) throws XPRSexception
Convenience 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)
-
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
- Returns:
- The last error message that occurred on this instance.
- 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 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
-
addGetSolutionDiffListener
public 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
-
addGetSolutionDiffListener
public 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
-
addGetSolutionDiffListener
public 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
-
removeGetSolutionDiffListener
public void removeGetSolutionDiffListener(XPRSmseGetSolutionDiffListener listener) throws XPRSexception
Removes the given GetSolutionDiff listener from the object.- Parameters:
-
listener
- The listener to remove. - 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.- Parameters:
-
listener
- The listener to remove. -
data
- The user data to remove. - Throws:
-
XPRSexception
-
removeGetSolutionDiffListener
@Deprecated public void removeGetSolutionDiffListener() throws XPRSexception
Deprecated.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 MsgHandler callback. 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 a listener for the MsgHandler callback. 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 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
-
addMsgHandlerListener
public 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
-
removeMsgHandlerListener
public void removeMsgHandlerListener(XPRSmsgHandlerListener listener) throws XPRSexception
Removes the given MsgHandler listener from the object.- Parameters:
-
listener
- The listener to remove. - 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.- Parameters:
-
listener
- The listener to remove. -
data
- The user data to remove. - Throws:
-
XPRSexception
-
removeMsgHandlerListener
@Deprecated public void removeMsgHandlerListener() throws XPRSexception
Deprecated.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()
Access the attributes of this instance.- Returns:
- an object that allows accessing the attributes of this instance.
-
controls
public XPRSmipsolenum.Controls controls()
Access the controls of this instance.- Returns:
- an object that allows accessing the controls of this instance.
-
-
© 2001-2025 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.