NMPC#
Solves a nonlinear program every clock step from a JSON file (needs Ipopt).
nmpc · control · no feedthrough: a feedback loop may pass through it
NMPCfn
y
u
ref
status
x0
iterations
solve_time
file
max_time0
tol0
max_iter500
The file is the optimization toolkit’s NLP form (variables, objective, constraints),
solved every clock step. It needs a build with Ipopt.
Inputs#
Port |
Type |
Unit |
Components |
|---|---|---|---|
|
numbers |
— |
— |
|
numbers |
— |
— |
|
numbers |
— |
— |
Outputs#
Port |
Type |
Unit |
Components |
|---|---|---|---|
|
numbers |
— |
— |
|
text |
— |
— |
|
signal |
— |
— |
|
signal |
— |
— |
Parameters#
Param |
Type |
Default |
Options or unit |
|---|---|---|---|
|
file |
— |
— |
|
number |
|
— |
|
number |
|
— |
|
number |
|
— |