Prev Next

Solvers Interface

The Solvers Interface enables you to invoke a set of commands in JavaScript that define and enact a Solver Class to perform mathematical operations on data. The principle function of the Solver Class is to provide integration with external tools such as MATLAB and Octave during a simulation, and either expose the results in Octave or MATLAB, or bring them back into Enterprise Architect for representation there, perhaps in a Dynamic Chart. More generally, the Solvers interface can be used in model-based Add-Ins and custom scripts.

To call functions from Octave or MATLAB, you need to be familiar with the functions available in the appropriate product library, as described in the product documentation.

Solver Constructor



See also

Solver(string solverName)

Creates a new Solver connected to a new instance of the specified helper application.

Solver Methods



See also

get(string name)

Retrieves a named value from within the Solver environment.

set(string name, object value)

Assigns a new value to a named variable in the Solver environment.

exec(string name, string arguments, int returnValues)

Executes a named function. The actual functions will depend on the type of Solver being used.

Learn more