AbstractGapNotifyListener
- java.lang.Object
-
- com.dashoptimization.AbstractGapNotifyListener
-
- All Implemented Interfaces:
- XPRSgapNotifyListener, java.util.EventListener
public abstract class AbstractGapNotifyListener extends java.lang.Object implements XPRSgapNotifyListener
Convenience implementation ofXPRSgapNotifyListener. This class has a more convenientgapNotifyEvent(com.dashoptimization.XPRSprob, com.dashoptimization.AbstractGapNotifyListener.GapNotify)method.
-
-
Nested Class Summary
Modifier and Type Class and Description static classAbstractGapNotifyListener.GapNotifyGap notification configuration.
-
Constructor Summary
Constructor and Description AbstractGapNotifyListener()
-
Method Summary
Modifier and Type Method and Description abstract AbstractGapNotifyListener.GapNotifygapNotifyEvent(XPRSprob prob, AbstractGapNotifyListener.GapNotify gapNotify)Invoke the callback.voidXPRSgapNotifyEvent(XPRSprob prob, java.lang.Object vContext, DoubleHolder newRelGapNotifyTarget, DoubleHolder newAbsGapNotifyTarget, DoubleHolder newAbsGapNotifyObjTarget, DoubleHolder newAbsGapNotifyBoundTarget)
-
-
-
Method Detail
-
XPRSgapNotifyEvent
public final void XPRSgapNotifyEvent(XPRSprob prob, java.lang.Object vContext, DoubleHolder newRelGapNotifyTarget, DoubleHolder newAbsGapNotifyTarget, DoubleHolder newAbsGapNotifyObjTarget, DoubleHolder newAbsGapNotifyBoundTarget)
- Specified by:
-
XPRSgapNotifyEventin interfaceXPRSgapNotifyListener
-
gapNotifyEvent
public abstract AbstractGapNotifyListener.GapNotify gapNotifyEvent(XPRSprob prob, AbstractGapNotifyListener.GapNotify gapNotify)
Invoke the callback.- Parameters:
-
prob- The problem on which the callback is invoked. -
gapNotify- The current gap notification configuration. It is ok to modify this object and return it from the function. - Returns:
-
the new gap notification configration to use or
nullto keep the default configuration.
-
-
© 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.
