HxmFunctor Delegate¶
-
delegate HxmValue
Hexaly.Modeler.HxmFunctor(HxmModeler modeler, IList<HxmValue> arguments)¶ External modeler function delegate. To use your own external functions in the modeler you have to follow these steps:
- Implement the delegate.
- Then create a
HxmFunctionwithHxmModeler.CreateFunction(). - Finally, if you want to make this function available in your Hexaly
modeling code, you have to assign it to a module variable with
HxmModule.SetFunction().
Note: This delegate should only be implemented to expose functions used during the modeling process. You should not use this delegate to create a function that will be called during the resolution as an external function. In this case, you should use the solver API directly to create the function (see HxExternalFunction Delegate)