Examples¶
Example scripts are available in the repository's example/ directory.
The examples use Matplotlib and open figures when executed.
Available examples¶
siso.py¶
Designs a SISO PI controller using VRFT with least squares.
mimo.py¶
Designs a MIMO PI controller using VRFT with instrumental variables. The example simulates two output data sets and passes them to vrft.design as ya and yb.
mimo_csv.py¶
Designs a MIMO PI controller using data loaded from data.csv with vrft.datafromcsv.
This script reads the file with the relative path "data.csv", so run it from inside the example/ directory unless the path is changed.
Running the examples¶
Install the package first:
Then run the examples from the example/ directory:
Running from example/ is required for mimo_csv.py because of the relative data.csv path.