System.store_sparse_pattern#

System.store_sparse_pattern(models: OrderedDict)[source]#

Collect and store the sparsity pattern of Jacobian matrices.

This is a runtime function specific to cases.

Notes

For gy matrix, always make sure the diagonal is reserved. It is a safeguard if the modeling user omitted the diagonal term in the equations.