T-MATS: Model Source Library Block
The Iterative 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.

This module is designed for dynamic systems and should be paired with a "do... while" block in Simulink. The "do...while" block and this module should both be located in the same subsystem as the plant that is to be solved for.

Iter_NRSwJC Condition Inputs:
Iter_NRSwJC InputDescription
IterationsNumber of times the do.. while block has re-run the subsystem.
EnableEnable Solver
f(x)Output of plant to be solved for, (nx1 vector consisting of all plant outputs)

Iter_NRSwJC Condition Outputs:
Iter_NRSwJC OutputDescription
XInput to plant to be solved for, (nx1 vector consisting of all plant inputs)
Initial value will be set as the initial conditions
do_while ConditionInput to the do... while loop.
The current subystem should repeat until the Solver's conditions are met.
S_DataSolver internal calculation Data, including:
- J - Calculated Jacobian Matrix

Iter_NRSwJC Mask Variables:
Iter_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)