vssSetSimParAlgebraicSolver

Set the simulation algebraic solver.

Syntax

vssSetSimParAlgebraicSolver(sparams,solv)

Inputs

sparams
Simulation parameters handle
Type: sparam
Dimension: -
solv
Algebraic solver. Available options are 1002 (Fsolve), Daskr (1003) and Ida (1004).
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);
vssSetSimParAlgebraicSolver(sparams,1);