Difference between revisions of "Toy NMPC problem (TACO)"
From mintOC
JonasSchulze (Talk | contribs) m (Text replacement - "<bibreferences/>" to "<biblist />") |
JonasSchulze (Talk | contribs) m (Text replacement - "\<bibref\>(.*)\<\/bibref\>" to "<bib id="$1" />") |
||
Line 1: | Line 1: | ||
− | This page contains a model of a small [[Toy NMPC problem]] in [http://www.ampl.org AMPL] format, making use of the TACO toolkit for AMPL control optimization extensions. Here, it is used for off-line optimal control only. This problem can be found in the thesis < | + | This page contains a model of a small [[Toy NMPC problem]] in [http://www.ampl.org AMPL] format, making use of the TACO toolkit for AMPL control optimization extensions. Here, it is used for off-line optimal control only. This problem can be found in the thesis <bib id="Diehl2001" />. |
Note that you will need to include a generic [[support AMPL files|AMPL/TACO support file]], OptimalControl.mod. | Note that you will need to include a generic [[support AMPL files|AMPL/TACO support file]], OptimalControl.mod. | ||
To solve this model, you require an optimal control or NLP code that uses the TACO toolkit to support the AMPL optimal control extensions. | To solve this model, you require an optimal control or NLP code that uses the TACO toolkit to support the AMPL optimal control extensions. |
Latest revision as of 21:32, 30 December 2015
This page contains a model of a small Toy NMPC problem in AMPL format, making use of the TACO toolkit for AMPL control optimization extensions. Here, it is used for off-line optimal control only. This problem can be found in the thesis [Diehl2001]Author: M. Diehl
School: Universit\"at Heidelberg
Title: Real-Time Optimization for Large Scale Nonlinear Processes
Url: http://www.ub.uni-heidelberg.de/archiv/1659/
Year: 2001
.
Note that you will need to include a generic AMPL/TACO support file, OptimalControl.mod.
To solve this model, you require an optimal control or NLP code that uses the TACO toolkit to support the AMPL optimal control extensions.
AMPL
This is the source file toy_taco.mod
# ---------------------------------------------------------------- # Toy NMPC problem using AMPL and TACO # (c) Christian Kirches, Sven Leyffer # # Source: M. Diehl, 2001 # ---------------------------------------------------------------- include OptimalControl.mod; var tf := 3, >= 2, <= 3; var t; var x := -0.5; var u >= -1.0, <= 1.0, := 0.0; let u.type := "u0"; var p := 1.0; minimize LagrangeObjective: integral (x^2 + u^2, tf); subject to ODE: diff(x,t) = (x + p) * x + u; SPC: eval(x,0) = -0.5; EPC: eval(x,tf) = 0.0; option solver ...; solve;
Other Descriptions
Other descriptions of this problem are available in
- Mathematical notation at Toy NMPC problem
References
[Diehl2001] | M. Diehl (2001): Real-Time Optimization for Large Scale Nonlinear Processes. Universit\"at Heidelberg |