Package com.hexaly.optimizer
Interface HxLambdaFunction
-
public interface HxLambdaFunction
Lambda function interface. This particular interface is used to instantiateHxOperator.LambdaFunction
in Hexaly Optimizer. A lambda function is a particularHxExpression
composed of two parts:- The arguments of the function (which are also HxExpression of type
HxOperator.Argument
. - The body of the function. The body is an HxExpression that will be used to evaluate the result of the function. The body can be any HxExpression composed of any operands and operators supported by Hexaly Optimizer.
- Since:
- 9.5
- The arguments of the function (which are also HxExpression of type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HxExpression
call(HxExpression[] arguments)
Evaluates and returns the body of the function.
-
-
-
Method Detail
-
call
HxExpression call(HxExpression[] arguments)
Evaluates and returns the body of the function. This particular method will be called byHxModel.createLambdaFunction(int, HxLambdaFunction)
with an array of HxExpression of typeHxOperator.Argument
. The size of the array will depend on the number of arguments you want for your function. The number of arguments is specified when you call theHxModel.createLambdaFunction(int, HxLambdaFunction)
. Your implementation must return an HxExpression that will be used as the body of your Hexaly Optimizer function.
-
-