LocalSolver logo
is now
Hexaly logo

We're excited to share that we are moving forward. We're leaving behind the LocalSolver brand and transitioning to our new identity: Hexaly. This represents a leap forward in our mission to enable every organization to make better decisions faster when faced with operational and strategic challenges.

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 Interface

class

External modeler function interface.

To use your own external functions in the modeler you have to follow these steps:

Note: This class should only be extended to expose functions used during the modeling process. You should not use this class to create a function that will be called during the resolution as a blackbox or external function. In this case, you should instead use the solver API directly (see LSExternalFunction or LSBlackBoxFunction).

See:LSPFunction
Since:10.0

Summary

Functions
call The function to call with its arguments.

Functions

virtual LSPValue localsolver::modeler::LSPFunctor::call(LSPModeler &modeler, const LSPValue *arguments, int nbArguments)
= 0

The function to call with its arguments.

Return:

Return value of the call.

Parameters:
  • modeler - Modeler instance.
  • arguments - List of modeler values passed to the function by the caller.
  • nbArguments - Number of arguments passed to the function by the caller.