Basic ALSSM Coding [ex101.0]#

This example demonstrates how to set up a autonomous linear state space model ALSSM.

See also: Module statespace, ALSSM Classes

Out:

-- Print --
Alssm(A=[[1,1],[0,1]], C=[1,0], label=my-native-alssm)

-- Print --
AlssmPoly(A=[[1,1,1,1],[0,1,2,3],[0,0,1,3],[0,0,0,1]], C=[1,0,0,0], label=my-polynomial-alssm)

import lmlib as lm

# Example 1: a native ALSSM with explicit A and C definition
A = [[1, 1], [0, 1]]
C = [1, 0]
alssm_line = lm.Alssm(A, C, label="my-native-alssm")

print("-- Print --")
print(alssm_line)

# Example 2: using built-in ALSSM generator for polynomial ALSSMs
alssm_poly = lm.AlssmPoly(poly_degree=3, label="my-polynomial-alssm")

print("\n-- Print --")
print(alssm_poly)

Total running time of the script: ( 0 minutes 0.001 seconds)

Gallery generated by Sphinx-Gallery