This page is for an old version of Hexaly Optimizer.
We recommend that you update your version and read the documentation for the
latest stable release.
LSPFunctor Delegate¶
-
delegate LSPValue
localsolver.modeler.
LSPFunctor
(LSPModeler modeler, IList<LSPValue> 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
LSPFunction
withLSPModeler.CreateFunction()
. - Finally, if you want to make this function available in your LSP code,
you have to assign it to a module variable with
LSPModule.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 a blackbox or external function. In this case, you should use the solver API directly to create the function (see LSExternalFunction Delegate or LSBlackBoxFunction Delegate)