public interface LSDoubleBlackBoxFunction
LSBlackBoxArgumentValues and must return a
double 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.createDoubleBlackBoxFunction(localsolver.LSDoubleBlackBoxFunction) or the dedicated shortcut
LSModel.doubleBlackBoxFunction(localsolver.LSDoubleBlackBoxFunction).
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 |
|---|---|
double |
call(LSBlackBoxArgumentValues argumentValues)
The function to call.
|
double call(LSBlackBoxArgumentValues argumentValues)
argumentValues - Argument values containing the arguments of the function.