public interface LSIntBlackBoxFunction
LSBlackBoxArgumentValues and must return an
integer value. The argument values contain the values of the expressions passed
to the function. A distinction is made between integer arguments (bool, int) and
floating point arguments (double).
LSModel.createIntBlackBoxFunction(localsolver.LSIntBlackBoxFunction) or the dedicated shortcut
LSModel.intBlackBoxFunction(localsolver.LSIntBlackBoxFunction).
LSOperator.Call. The first operand must be your
black-box function. The other operands must be LSExpressions. Their value
will be made accessible to your black-box function through the
LSBlackBoxArgumentValues.
Note: You can provide additional data for your function (such
as bounds or the maximum number of evaluations) with the help of the
LSBlackBoxContext associated with the function (see
LSExpression.getBlackBoxContext()).
| Modifier and Type | Method and Description |
|---|---|
long |
call(LSBlackBoxArgumentValues argumentValues)
The function to call.
|
long call(LSBlackBoxArgumentValues argumentValues)
argumentValues - Argument values containing the arguments of the function.