vssSetSimParJacobianMethod

Set the simulation Jacobian method.

Syntax

vssSetSimParJacobianMethod(sparams,n)

Inputs

sparams
Simulation parameters handle
Type: sparam
Dimension: -
n
Simulation Jacobian method. Available options are 1 (analytical) and 2 (numerical).
Type: integer
Dimension: scalar

Example

Create evaluator, retrieve the respective simulation parameters handle and set the desired simulation parameter value. In this case, the Jacobian method should be numerical.

modelpath = 'C:/Users/ActivateModel.scm' 
ff = vssCreateEvaluator(modelpath);
mdl = ff();
sparams = vssGetModelSimParams(mdl);
vssSetSimParJacobianMethod(sparams,2);