vssSetSimParSolver

Set the simulation solver.

Syntax

vssSetSimParSolver(sparams,solv)

Inputs

sparams
Simulation parameters handle
Type: sparam
Dimension: -
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 set the desired simulation parameter value.

modelpath = 'C:/Users/ActivateModel.scm' 
ff = vssCreateEvaluator(modelpath);
mdl = ff();
sparams = vssGetModelSimParams(mdl);
vssSetSimParSolver(sparams,7); %Set solver to be Runge-Kutta of 5th order