AbstractPreIntsolListener
- java.lang.Object
-
- com.dashoptimization.AbstractPreIntsolListener
-
- All Implemented Interfaces:
- XPRSpreIntsolListener, java.util.EventListener
public abstract class AbstractPreIntsolListener extends java.lang.Object implements XPRSpreIntsolListener
Convenience implementation ofXPRSpreIntsolListener. The class has a more convenientpreIntsolEvent(XPRSprob,boolean,double)method than the interface.
-
-
Constructor Summary
Constructor and Description AbstractPreIntsolListener()
-
Method Summary
Modifier and Type Method and Description abstract java.lang.DoublepreIntsolEvent(XPRSprob prob, boolean soltype, double cutoff)Invoke the callback.voidXPRSpreIntsolEvent(XPRSprob prob, java.lang.Object vContext, boolean soltype, IntHolder ifreject, DoubleHolder cutoff)
-
-
-
Method Detail
-
XPRSpreIntsolEvent
public final void XPRSpreIntsolEvent(XPRSprob prob, java.lang.Object vContext, boolean soltype, IntHolder ifreject, DoubleHolder cutoff)
- Specified by:
-
XPRSpreIntsolEventin interfaceXPRSpreIntsolListener
-
preIntsolEvent
public abstract java.lang.Double preIntsolEvent(XPRSprob prob, boolean soltype, double cutoff)
Invoke the callback.- Parameters:
-
prob- The problem on which the callback is invoked. -
soltype- Solution type. -
cutoff- The new cutoff value implied by the solution found. - Returns:
-
The new cutoff to be installed. Return
nullto reject the integer solution.
-
-
© 2001-2022 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.
