T-MATS: SS NR Solver w Jacobian Calc Library Block
The Steady State Newton Raphson Solver with Jacobian Calculator block will supply the inputs to iteratively drive the outputs of a system to zero.

This will be performed in three steps.
1) Jabobian calculator sends Perturbations to the plant then calculates the plant Jacboian based on the system response
2) The Newton Raphson will use the inverse of the Jacobian to iteratively step the system toward solution.
3) Once the solution has satisfied the conditions the Newton Raphson is shut off.

Simulation run time length should be selected as to give the Newton Raphson solver adequate time to develop a solution.

SS_NRSwJC Condition Inputs:
SS_NRSwJC InputDescription
EnableEnable Solver
f(x)Output of plant to be solved for, (nx1 vector consisting of all plant outputs or dependents)

SS_NRSwJC Condition Outputs:
SS_NRSwJC OutputDescription
XInput to plant to be solved for, (nx1 vector consisting of all plant inputs or independents)
Initial value will be set as the initial conditions
S_DataSolver internal calculation Data, 2x1 vector including:
- Converged - Solver Conditions have been met
- J - Calculated Jacobian Matrix

SS_NRSwJC Mask Variables:
SS_NRSwJC Mask VariableDescription
SJac_Per_MJacobian Perturbation size (nx1)
SNR_IC_MNewton Raphson Initial Conditions (nx1)
SNR_DX_MNewton Raphson delta x limiter (%)(1x1)
SJacobianAttempts_MNewton Raphson attempts before the Jacobian recalculation (1x1)
Cond_Limits_MIteration Conditions Limits (nx1 or 1x1)