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 an external function. In this case, you should use the solver API directly to create the function (see LSExternalFunction Delegate)