XPRSmipsolpool
- java.lang.Object
-
- com.dashoptimization.XPRSobject
-
- com.dashoptimization.XPRSmipsolpool
-
public class XPRSmipsolpool extends XPRSobject
Represents a solution pool
-
-
Nested Class Summary
Modifier and Type Class and Description class
XPRSmipsolpool.Attributes
class
XPRSmipsolpool.Controls
-
Constructor Summary
Constructor and Description XPRSmipsolpool()
Creates a new MIP solution pool.
-
Method Summary
Modifier and Type Method and Description 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.XPRSmipsolpool.Attributes
attributes()
XPRSmipsolpool.Controls
controls()
void
delSol(int iSolutionId, IntHolder iSolutionIdStatus_)
void
destroy()
Deallocates resources associated with an XPRSobjectint
findSolByName(java.lang.String sSolutionName)
void
findSolByName(java.lang.String sSolutionName, IntHolder iSolutionId)
double
getDblAttrib(int iAttribId)
void
getDblAttrib(int iAttribId, DoubleHolder Val)
void
getDblAttribProb(XPRSprob prob, int iAttribId, DoubleHolder Dst)
void
getDblAttribProbExtreme(XPRSprob prob_to_rank_against, int bGet_Max_Otherwise_Min, IntHolder iSolutionId, int iAttribId, DoubleHolder ExtremeVal)
void
getDblAttribProbSol(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, DoubleHolder Dst)
double
getDblAttribSol(int iSolutionId, int iAttribId)
double
getDblAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId)
void
getDblAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, DoubleHolder Dst)
double
getDblControl(int iControlId)
void
getDblControl(int iControlId, DoubleHolder Val)
double
getDblControlSol(int iSolutionId, int iControlId)
double
getDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId)
void
getDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, DoubleHolder Val)
int
getIntAttrib(int iAttribId)
void
getIntAttrib(int iAttribId, IntHolder Val)
void
getIntAttribProb(XPRSprob prob, int iAttribId, IntHolder Dst)
void
getIntAttribProbExtreme(XPRSprob prob_to_rank_against, int bGet_Max_Otherwise_Min, IntHolder iSolutionId, int iAttribId, IntHolder ExtremeVal)
void
getIntAttribProbSol(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, IntHolder Dst)
int
getIntAttribSol(int iSolutionId, int iAttribId)
int
getIntAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId)
void
getIntAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, IntHolder Dst)
int
getIntControl(int iControlId)
void
getIntControl(int iControlId, IntHolder Val)
int
getIntControlSol(int iSolutionId, int iControlId)
int
getIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId)
void
getIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, IntHolder Val)
java.lang.String
getLastError()
Returns last error message that occurred on this XPRSobjectjava.lang.String
getLastError(IntHolder iMsgCode)
void
getSlack(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, double[] slack, int iRowFirst, int iRowLast, IntHolder nValuesReturned)
void
getSol(int iSolutionId, IntHolder iSolutionIdStatus_, double[] x, int iColFirst, int iColLast, IntHolder nValuesReturned)
void
getSolList(XPRSprob prob_to_rank_against, int iRankAttrib, int bRankAscending, int iRankFirstIndex_Ob, int iRankLastIndex_Ob, int[] iSolutionIds_Zb, IntHolder nReturnedSolIds, IntHolder nSols)
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)
java.lang.String
getSolName(int iSolutionId)
java.lang.String
getSolName(int iSolutionId, IntHolder iSolutionIdStatus_)
void
getSolName(int iSolutionId, StringHolder _sname, int _iStringBufferBytes, IntHolder _iBytesInInternalString, IntHolder iSolutionIdStatus_)
void
loadSol(IntHolder iSolutionId, double[] x, int nCols, java.lang.String sSolutionName, IntHolder bNameModifiedForUniqueness, IntHolder iSolutionIdOfExistingDuplicatePreventedLoad)
void
probAttach(XPRSprob prob)
void
probDetach(XPRSprob prob)
void
readSlxSol(XPRSnamelist col_name_list, java.lang.String sFileName, java.lang.String sFlags, IntHolder iSolutionId_Beg, IntHolder iSolutionId_End)
void
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 iControlId, double Val)
void
setDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, double Val)
void
setIntControl(int iControlId, int Val)
void
setIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, int Val)
void
setSolName(int iSolutionId, java.lang.String sNewSolutionBaseName, IntHolder bNameModifiedForUniqueness, IntHolder iSolutionIdStatus_)
void
writeSlxSol(XPRSprob prob_context, int iSolutionId, IntHolder iSolutionIdStatus_, java.lang.String sFileName, java.lang.String sFlags)
-
Methods inherited from class com.dashoptimization.XPRSobject
addMsgHandlerListener, addMsgHandlerListener, isDestroyed
-
-
-
-
Constructor Detail
-
XPRSmipsolpool
public XPRSmipsolpool() throws XPRSexception
Creates a new MIP solution pool. XPRS.Init must have been called first.- Throws:
-
XPRSexception
-
-
Method Detail
-
probAttach
public void probAttach(XPRSprob prob) throws XPRSexception
- Throws:
-
XPRSexception
-
probDetach
public void probDetach(XPRSprob prob) 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(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
-
getSolList2
public 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
-
getSol
public void getSol(int iSolutionId, IntHolder iSolutionIdStatus_, double[] x, int iColFirst, int iColLast, IntHolder nValuesReturned) throws XPRSexception
- Throws:
-
XPRSexception
-
getSlack
public void getSlack(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, double[] slack, int iRowFirst, int iRowLast, IntHolder nValuesReturned) throws XPRSexception
- Throws:
-
XPRSexception
-
loadSol
public void loadSol(IntHolder iSolutionId, double[] x, int nCols, java.lang.String sSolutionName, IntHolder bNameModifiedForUniqueness, IntHolder iSolutionIdOfExistingDuplicatePreventedLoad) throws XPRSexception
- Throws:
-
XPRSexception
-
delSol
public void delSol(int iSolutionId, IntHolder iSolutionIdStatus_) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntAttribProbSol
public void getIntAttribProbSol(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, IntHolder Dst) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblAttribProbSol
public void getDblAttribProbSol(XPRSprob prob_to_rank_against, int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, DoubleHolder Dst) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntAttribProb
public void getIntAttribProb(XPRSprob prob, int iAttribId, IntHolder Dst) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblAttribProb
public void getDblAttribProb(XPRSprob prob, int iAttribId, DoubleHolder Dst) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntAttribSol
public void getIntAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, IntHolder Dst) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntAttribSol
public int getIntAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntAttribSol
public int getIntAttribSol(int iSolutionId, int iAttribId) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblAttribSol
public void getDblAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId, DoubleHolder Dst) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblAttribSol
public double getDblAttribSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iAttribId) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblAttribSol
public double getDblAttribSol(int iSolutionId, int iAttribId) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntControlSol
public void getIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, IntHolder Val) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntControlSol
public int getIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntControlSol
public int getIntControlSol(int iSolutionId, int iControlId) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblControlSol
public void getDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, DoubleHolder Val) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblControlSol
public double getDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblControlSol
public double getDblControlSol(int iSolutionId, int iControlId) throws XPRSexception
- Throws:
-
XPRSexception
-
setIntControlSol
public void setIntControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, int Val) throws XPRSexception
- Throws:
-
XPRSexception
-
setDblControlSol
public void setDblControlSol(int iSolutionId, IntHolder iSolutionIdStatus_, int iControlId, double Val) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntAttribProbExtreme
public void getIntAttribProbExtreme(XPRSprob prob_to_rank_against, int bGet_Max_Otherwise_Min, IntHolder iSolutionId, int iAttribId, IntHolder ExtremeVal) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblAttribProbExtreme
public void getDblAttribProbExtreme(XPRSprob prob_to_rank_against, int bGet_Max_Otherwise_Min, IntHolder iSolutionId, int iAttribId, DoubleHolder ExtremeVal) 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 iControlId, IntHolder Val) throws XPRSexception
- Throws:
-
XPRSexception
-
getIntControl
public int getIntControl(int iControlId) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblControl
public void getDblControl(int iControlId, DoubleHolder Val) throws XPRSexception
- Throws:
-
XPRSexception
-
getDblControl
public double getDblControl(int iControlId) throws XPRSexception
- Throws:
-
XPRSexception
-
setIntControl
public void setIntControl(int iControlId, int Val) throws XPRSexception
- Throws:
-
XPRSexception
-
setDblControl
public void setDblControl(int iControlId, double Val) throws XPRSexception
- Throws:
-
XPRSexception
-
setSolName
public void setSolName(int iSolutionId, java.lang.String sNewSolutionBaseName, IntHolder bNameModifiedForUniqueness, IntHolder iSolutionIdStatus_) throws XPRSexception
- Throws:
-
XPRSexception
-
getSolName
public void getSolName(int iSolutionId, StringHolder _sname, int _iStringBufferBytes, IntHolder _iBytesInInternalString, IntHolder iSolutionIdStatus_) throws XPRSexception
- Throws:
-
XPRSexception
-
getSolName
public java.lang.String getSolName(int iSolutionId, IntHolder iSolutionIdStatus_) throws XPRSexception
- Throws:
-
XPRSexception
-
getSolName
public java.lang.String getSolName(int iSolutionId) throws XPRSexception
- Throws:
-
XPRSexception
-
findSolByName
public void findSolByName(java.lang.String sSolutionName, IntHolder iSolutionId) throws XPRSexception
- Throws:
-
XPRSexception
-
findSolByName
public int findSolByName(java.lang.String sSolutionName) throws XPRSexception
- Throws:
-
XPRSexception
-
writeSlxSol
public void writeSlxSol(XPRSprob prob_context, int iSolutionId, IntHolder iSolutionIdStatus_, java.lang.String sFileName, java.lang.String sFlags) throws XPRSexception
- Throws:
-
XPRSexception
-
readSlxSol
public void readSlxSol(XPRSnamelist col_name_list, java.lang.String sFileName, java.lang.String sFlags, IntHolder iSolutionId_Beg, IntHolder iSolutionId_End) 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
-
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 XPRSmipsolpool.Attributes attributes()
-
controls
public XPRSmipsolpool.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.