Package com.hexaly.optimizer
Interface HxLambdaFunction2
-
public interface HxLambdaFunction2
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 a, HxExpression b)
Evaluates and returns the body of the function.
-
-
-
Method Detail
-
call
HxExpression call(HxExpression a, HxExpression b)
Evaluates and returns the body of the function. This particular method will be called byHxModel.createLambdaFunction(hexaly.HxLambdaFunction2)
with twoHxOperator.Argument
. Your implementation must return an HxExpression that will be used as the body of your Hexaly Optimizer function.
-
-