vssGetSimParSolver

Get the simulation solver.

Syntax

vssGetSimParSolver(sparams)

solv = vssGetSimParSolver(sparams)

Inputs

sparams
Simulation parameters handle.
Type: sparam
Dimension: -

Outputs

solv
Simulation solver. Available options are 0 (LSODA), 1 (CVODE-BDF-NEWTON), 2 (CVODE-BDF-Functional), 3 (CVODE-ADAMS-NEWTON), 4 (CVODE-ADAMS-Functional), 5 (Radau-IIA), 6 (Dopri), 7 (Runge-Kutta 5th order), 8 (Forward Euler), 9 (Explicit Trapezoidal), 10 (Runge-Kutta 4th order), 11 (Backward Euler), 12 (Implicit Trapezoid), 21 to 24 (CPode), 100 (Ida), 101 (Radau-IIA DAE) and 102 (DASKR).
Type: integer
Dimension: scalar

Example

Create evaluator, retrieve the respective simulation parameters handle and get the desired simulation parameter value. An answer equals to 0 means that the simulation solver is LSODA.

modelpath = 'C:/Users/ActivateModel.scm' 
ff = vssCreateEvaluator(modelpath);
mdl = ff();
sparams = vssGetModelSimParams(mdl);
vssGetSimParSolver(sparams)
ans = 0