Package com.hexaly.optimizer
Interface HxLambdaFunction2
-
public interface HxLambdaFunction2Lambda function interface. This particular interface is used to instantiateHxOperator.LambdaFunctionin Hexaly Optimizer. A lambda function is a particularHxExpressioncomposed 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 HxExpressioncall(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.
-
-