XPRSaddcbslppreupdatelinearization
int XPRS_CC XPRSaddcbslppreupdatelinearization(XPRSprob prob, int (XPRS_CC *slppreupdatelinearization) (XPRSprob cbprob, void *cbdata, int *when), void *data, int priority);
|
prob
|
The current problem.
|
|
slppreupdatelinearization
|
The function to be called before the linearization is updated.
slppreupdatelinearization returns an integer value. If the return value is nonzero, the optimization will return an error code and the "User Return Code" error will be set.
|
|
cbprob
|
The problem passed to the callback function.
|
|
cbdata
|
The user-defined object passed as
data to
XPRSaddcbslppreupdatelinearization.
|
|
ifrepeat
|
Indicates the call number, starting at 1. If returned nonzero, another call to the callback will be scheduled. If returned zero, a final call with
ifrepeat set to
-1 will be made.
|
|
data
|
A user-defined object, which can be used for any purpose by the function.
data is passed to
slppreupdatelinearization as
cbdata.
|
|
priority
|
An integer that determines the order in which callbacks of this type will be invoked. The callback added with a higher priority will be called before a callback with a lower priority. Set to 0 if not required.
|
- On each SLP iteration, the callback is first called with *ifrepeat = 1. This is a signal that derivatives will be needed soon. The callback sets a flag to indicate that user functions should capture their input values.
- When the callback returns, the user functions are evaluated without requesting derivatives. Each user function captures its input values somewhere, and returns the correct function value.
- The callback is called again, with *ifrepeat == 2. The callback now computes derivates for all user functions using the captured input values. The callback clears the flag so that user functions no longer capture their input values, and sets *ifrepeat = 0 to indicate that no further calls are needed.
- When the callback returns, the user functions are evaluated again. Derivatives are requested, and the user functions return the precomputed derivative values.
- The callback is invoked one more time for this iteration with *ifrepeat == -1, marking the end of the linearization update. User functions should behave normally from this point.
© 2001-2026 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.
