MATLAB Dynamic Optimization Toolbox

Main.MATLAB History

Hide minor edits - Show changes to output

July 14, 2021, at 10:56 PM by 10.35.117.248 -
Changed line 9 from:
Attach:download.jpg [[https://github.com/APMonitor?tab=repositories | APM MATLAB with Demo Applications on GitHub]]
to:
Attach:download.jpg [[https://github.com/APMonitor/apm_matlab | APM MATLAB with Demo Applications on GitHub]]
Deleted lines 38-41:
(:html:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/-IDTagajoyA?rel=0" frameborder="0" allowfullscreen></iframe>
(:htmlend:)

Added lines 44-48:
!!!! Tutorial on Dynamic Simulation

(:html:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/-IDTagajoyA?rel=0" frameborder="0" allowfullscreen></iframe>
(:htmlend:)
Changed line 20 from:
<iframe width="560" height="315" src="https://www.youtube.com/embed/-IDTagajoyA?rel=0" frameborder="0" allowfullscreen></iframe>
to:
<iframe width="560" height="315" src="https://www.youtube.com/embed/SVOb0yDPJjw" frameborder="0" allowfullscreen></iframe>
Added lines 38-41:

(:html:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/-IDTagajoyA?rel=0" frameborder="0" allowfullscreen></iframe>
(:htmlend:)
Changed line 29 from:
%width=350px%Attach:hs71.gif
to:
%width=300px%Attach:hs71.gif
Changed lines 27-29 from:
!!! Example HS71: Nonlinear Programming with MATLAB

Attach:hs71.gif
to:
!!!! Nonlinear Programming with MATLAB

%width=350px%Attach:hs71.gif
Changed lines 32-35 from:
----

!!! Example CSTR: Continuous Stirred Tank Reactor
to:
!!!! CSTR: Continuous Stirred Tank Reactor
Changed lines 37-40 from:
----

!!! Example NLC: Nonlinear Control with MATLAB
to:
!!!! NLC: Nonlinear Control with MATLAB
Deleted lines 42-49:

----

!!! MATLAB Class for APMonitor

Attach:download.jpg [[https://gist.github.com/jckantor/b1678f34c8fd0347e77b | Jeff Kantor's GitHub MATLAB Class for APMonitor]]

January 25, 2017, at 07:32 AM by 173.117.254.58 -
Changed line 17 from:
Attach:download.jpg [[Attach:apm_matlab_v0.7.1.zip | APM MATLAB (version 0.7.1)]] - Released 29 Apr 2015
to:
Attach:download.jpg [[Attach:apm_matlab_v0.7.2.zip | APM MATLAB (version 0.7.2)]] - Released 25 Jan 2017
July 04, 2015, at 06:48 PM by 45.56.3.184 -
July 04, 2015, at 06:48 PM by 45.56.3.184 -
Added lines 6-7:

 git clone git://github.com/APMonitor/apm_matlab
July 04, 2015, at 06:17 PM by 45.56.3.184 -
Changed line 7 from:
Attach:download.jpg [[https://gist.github.com/jckantor/b1678f34c8fd0347e77b | APM MATLAB with Demo Applications]]
to:
Attach:download.jpg [[https://github.com/APMonitor?tab=repositories | APM MATLAB with Demo Applications on GitHub]]
July 04, 2015, at 06:16 PM by 45.56.3.184 -
Changed line 5 from:
Attach:apm_matlab.png  MATLAB offers a convenient way to access the latest release of APMonitor.  The optimization problem is sent to the APMonitor server and results are returned to MATLAB local variables and a web interface.  Example applications of nonlinear models with differential and algebraic equations are available for download below or from the following GitHub repositories.
to:
Attach:apm_matlab.png  MATLAB offers a convenient way to access the latest release of APMonitor.  The optimization problem is sent to the APMonitor server and results are returned to MATLAB local variables and a web interface.  Example applications of nonlinear models with differential and algebraic equations are available for download below or from the following GitHub repository.
July 04, 2015, at 06:16 PM by 45.56.3.184 -
Changed line 1 from:
(:title Dynamic Optimization Toolbox in MATLAB:)
to:
(:title MATLAB Dynamic Optimization Toolbox:)
July 04, 2015, at 06:15 PM by 45.56.3.184 -
Changed line 1 from:
(:title MATLAB Interface to APMonitor:)
to:
(:title Dynamic Optimization Toolbox in MATLAB:)
July 04, 2015, at 06:14 PM by 45.56.3.184 -
Deleted lines 3-4:

!! Nonlinear Programming in MATLAB
July 04, 2015, at 06:05 PM by 45.56.3.184 -
Changed lines 7-8 from:
Attach:apm_matlab.png  MATLAB offers a convenient way to access the latest release of APMonitor.  The optimization problem is sent to the APMonitor server and results are returned to MATLAB local variables and a web interface.  Example applications of nonlinear models with differential and algebraic equations are available for download below.
to:
Attach:apm_matlab.png  MATLAB offers a convenient way to access the latest release of APMonitor.  The optimization problem is sent to the APMonitor server and results are returned to MATLAB local variables and a web interface.  Example applications of nonlinear models with differential and algebraic equations are available for download below or from the following GitHub repositories.

Attach:download.jpg [[https://gist.github.com/jckantor/b1678f34c8fd0347e77b | APM MATLAB with Demo Applications]]

Changed lines 27-28 from:
!!! Example HS71: Nonlinear Programming with Matlab
to:
!!! Example HS71: Nonlinear Programming with MATLAB
Added lines 47-52:

----

!!! MATLAB Class for APMonitor

Attach:download.jpg [[https://gist.github.com/jckantor/b1678f34c8fd0347e77b | Jeff Kantor's GitHub MATLAB Class for APMonitor]]
April 29, 2015, at 01:44 PM by 45.56.3.184 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.7.0.zip | APM MATLAB (version 0.7.0)]] - Released 30 Jan 2015
to:
Attach:download.jpg [[Attach:apm_matlab_v0.7.1.zip | APM MATLAB (version 0.7.1)]] - Released 29 Apr 2015
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.6.1.zip | APM MATLAB (version 0.6.1)]] - Released 5 May 2014
to:
Attach:download.jpg [[Attach:apm_matlab_v0.7.0.zip | APM MATLAB (version 0.7.0)]] - Released 30 Jan 2015
May 06, 2014, at 04:35 AM by 23.255.240.62 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.6.0.zip | APM MATLAB (version 0.6.0)]] - Released 20 January 2014
to:
Attach:download.jpg [[Attach:apm_matlab_v0.6.1.zip | APM MATLAB (version 0.6.1)]] - Released 5 May 2014
January 20, 2014, at 03:32 PM by 23.255.228.67 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.5.8e.zip | APM MATLAB (version 0.5.8e)]] - Released 30 Jan 2013
to:
Attach:download.jpg [[Attach:apm_matlab_v0.6.0.zip | APM MATLAB (version 0.6.0)]] - Released 20 January 2014
January 30, 2013, at 08:46 PM by 128.187.97.21 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.5.8d.zip | APM MATLAB (version 0.5.8d)]] - Released 28 Jan 2013
to:
Attach:download.jpg [[Attach:apm_matlab_v0.5.8e.zip | APM MATLAB (version 0.5.8e)]] - Released 30 Jan 2013
January 28, 2013, at 01:45 PM by 69.169.188.188 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.5.8c.zip | APM MATLAB (version 0.5.8c)]] - Released 16 Jan 2013
to:
Attach:download.jpg [[Attach:apm_matlab_v0.5.8d.zip | APM MATLAB (version 0.5.8d)]] - Released 28 Jan 2013
January 17, 2013, at 07:18 AM by 69.169.188.188 -
Changed lines 21-23 from:
[[Main/MatlabFunctions | APM MATLAB Source Code Documentation]]

Note: Some older versions of MATLAB cannot run the ''apm_var.m'' or ''apm_web.m'' script.  This script automatically launches the web-viewer for display of the solution results.  If this is the case, comments in the script give instructions on a work-around.  Example applications of the APM Matlab library include nonlinear programming, nonlinear control, and other applications below.
to:
* [[Main/MatlabFunctions | APM MATLAB Source Code Documentation]]
January 17, 2013, at 07:18 AM by 69.169.188.188 -
Changed line 21 from:
[[Main/MatlabFunctions | APM MATLAB Documentation]]
to:
[[Main/MatlabFunctions | APM MATLAB Source Code Documentation]]
January 17, 2013, at 07:17 AM by 69.169.188.188 -
Changed lines 16-17 from:
[[Main/MatlabFunctions | APM MATLAB Documentation]]
to:
Added lines 20-21:

[[Main/MatlabFunctions | APM MATLAB Documentation]]
January 17, 2013, at 07:16 AM by 69.169.188.188 -
Added line 16:
[[Main/MatlabFunctions | APM MATLAB Documentation]]
January 17, 2013, at 05:57 AM by 69.169.188.188 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.5.8c.zip | APM MATLAB (version 0.5.8b)]] - Released 16 Jan 2013
to:
Attach:download.jpg [[Attach:apm_matlab_v0.5.8c.zip | APM MATLAB (version 0.5.8c)]] - Released 16 Jan 2013
January 17, 2013, at 05:56 AM by 69.169.188.188 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.5.8b.zip | APM MATLAB (version 0.5.8b)]] - Released 26 Nov 2012
to:
Attach:download.jpg [[Attach:apm_matlab_v0.5.8c.zip | APM MATLAB (version 0.5.8b)]] - Released 16 Jan 2013
January 12, 2013, at 02:01 PM by 69.169.188.188 -
Deleted lines 15-16:

The zipped archives contain a script files such as ''apm.m''.  To use the APM MATLAB functions, copy the script files into the active directory or add the path with the ''addpath'' command.
November 26, 2012, at 07:01 PM by 69.169.188.188 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.5.8.zip | APM MATLAB (version 0.5.8)]] - Released 23 Nov 2012
to:
Attach:download.jpg [[Attach:apm_matlab_v0.5.8b.zip | APM MATLAB (version 0.5.8b)]] - Released 26 Nov 2012
November 24, 2012, at 05:56 AM by 69.169.188.188 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.5.7c.zip | APM MATLAB (version 0.5.7c)]] - Released 11 Nov 2012
to:
Attach:download.jpg [[Attach:apm_matlab_v0.5.8.zip | APM MATLAB (version 0.5.8)]] - Released 23 Nov 2012
November 13, 2012, at 03:15 AM by 69.169.188.228 -
Added lines 19-22:
(:html:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/-IDTagajoyA?rel=0" frameborder="0" allowfullscreen></iframe>
(:htmlend:)

Deleted line 46:
November 12, 2012, at 01:48 PM by 69.169.188.188 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.5.7b.zip | APM MATLAB (version 0.5.7)]] - Released 16 May 2012
to:
Attach:download.jpg [[Attach:apm_matlab_v0.5.7c.zip | APM MATLAB (version 0.5.7c)]] - Released 11 Nov 2012
May 17, 2012, at 05:12 AM by 69.169.131.76 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.5.7a.zip | APM MATLAB (version 0.5.7)]] - Released 20 Apr 2012
to:
Attach:download.jpg [[Attach:apm_matlab_v0.5.7b.zip | APM MATLAB (version 0.5.7)]] - Released 16 May 2012
May 14, 2012, at 04:12 PM by 128.187.149.240 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.5.7.zip | APM MATLAB (version 0.5.7)]] - Released 20 Apr 2012
to:
Attach:download.jpg [[Attach:apm_matlab_v0.5.7a.zip | APM MATLAB (version 0.5.7)]] - Released 20 Apr 2012
April 20, 2012, at 03:20 PM by 69.169.131.76 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.5.6.zip | APM MATLAB (version 0.5.6)]] - Released 15 Feb 2012
to:
Attach:download.jpg [[Attach:apm_matlab_v0.5.7.zip | APM MATLAB (version 0.5.7)]] - Released 20 Apr 2012
February 16, 2012, at 03:33 AM by 69.169.188.228 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.5.5a.zip | APM MATLAB (version 0.5.5)]] - Released 9 Jan 2012
to:
Attach:download.jpg [[Attach:apm_matlab_v0.5.6.zip | APM MATLAB (version 0.5.6)]] - Released 15 Feb 2012
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.5.5.zip | APM MATLAB (version 0.5.5)]] - Released 5 Dec 2011
to:
Attach:download.jpg [[Attach:apm_matlab_v0.5.5a.zip | APM MATLAB (version 0.5.5)]] - Released 9 Jan 2012
December 23, 2011, at 06:47 PM by 69.169.188.228 -
Added lines 20-26:

----

!!! Example HS71: Nonlinear Programming with Matlab

Attach:hs71.gif
Hock-Schittkowsky Test Suite #71
December 23, 2011, at 06:45 PM by 69.169.188.228 -
Changed lines 17-19 from:
The zipped archives contain a script files such as '''apm.m'''.  To use the APM MATLAB functions, copy the script files into the active directory or add the path with the '''addpath''' command.

Note: Some older versions of MATLAB cannot run the ''apm_var.m'' or ''apm_web.m'' script.  This script automatically launches the web-viewer for display of the solution results.  If this is the case, comments in the script give instructions on a work-around.  Example applications of the APM Python library include nonlinear programming, nonlinear control, and other applications below.
to:
The zipped archives contain a script files such as ''apm.m''.  To use the APM MATLAB functions, copy the script files into the active directory or add the path with the ''addpath'' command.

Note: Some older versions of MATLAB cannot run the ''apm_var.m'' or ''apm_web.m'' script.  This script automatically launches the web-viewer for display of the solution results.  If this is the case, comments in the script give instructions on a work-around.  Example applications of the APM Matlab library include nonlinear programming, nonlinear control, and other applications below.
December 23, 2011, at 06:44 PM by 69.169.188.228 -
Changed line 15 from:
Attach:download.jpg [[Attach:apm_matlab_v0.5.5.zip | APM MATLAB (version 0.5.5) Released 5 Dec 2011]]
to:
Attach:download.jpg [[Attach:apm_matlab_v0.5.5.zip | APM MATLAB (version 0.5.5)]] - Released 5 Dec 2011
December 23, 2011, at 06:44 PM by 69.169.188.228 -
Deleted lines 33-34:
Attach:download.jpg [[Attach:matlab_ctrl.zip | Download Nonlinear Control Example]] 
Deleted lines 36-63:
----

!!! Simulink Interface to APMonitor

MATLAB offers an attractive interface for sequential simulation.  Amoung other activities, sequential simulation can be used for replay of historical data or studies for controller tuning.  The file parsing and trending capabilities allow results to be visualized in a flexible computing environment.

Sequential simulation refers to the method of data access.  Instead of a single simulation, the sequential approach takes a set of new information and re-runs the calculation.  Model replay also allows application behavior to be investigated before placing it on-line.  Model changes can be investigated over the same data period with this approach.

Attach:download.jpg [[https://www.mathworks.com/matlabcentral/fileexchange/22895 | Download %blue%A%red%P%black%Monitor Historical Data Replay]] Attach:download.jpg [[https://www.mathworks.com/matlabcentral/fileexchange/29862-simulink-interface-for-apmonitor | Download %blue%A%red%P%black%Monitor Simulink Interface]]

ModelReplay is a user-built MATLAB script that acts as a user interface to handle sequential runs of the command-line version of APMonitor. The latest script file is designed only for moving horizon estimation but may be extended for dynamic simulation or nonlinear control in future versions. Primary actions performed by the script file at each time step are APMonitor.exe execution, file/folder management, Database File (dbs) updates, and presentation of results.

Attach:modelreplay.png

Several built-in MATLAB functions were used to facilitate string, file and folder handling: copyfile, dlmread, importdata, num2str, rmdir, strcat, strcmp, strmatch, strrep,  strtrim, textscan. Cellwrite.m is a user-built function that allows MATLAB to convert textscan output back into a text file and can be found on the MathWorks website.

Key configuration parameters to set in any user-built APMonitor interface:
* NLC.DIAGLEVEL : specifies type and number of files output by APMonitor into the local directory.  Diaglevel = 0 outputs the minimum essential files while DIAGLEVEL = 5 performs the greatest number of diagnostic checks.
* NLC.COLDSTART : should be set equal to 1 when starting from a cold start and set equal to zero afterwards to 0 for a warmstart. A cold start is the first run of past measurements. A warm start assumes more than one past time-step of measurements are available.
* NLC.DBSREAD and NLC.DBSWRITE : should both be set equal to 1 to interface with DBS files.
* NLC.IMODE : sets the analysis mode.
* {MV or SV}.MEAS and {MV or SV}.NEWVAL: update the .dbs file with the current measurement.

ModelReplay may be applied in an industry setting to predict the response of an estimation or fault detection algorithm with varying unknown model parameters over a variety of past operating conditions.

!!!! File/Folder Management

Essential files such as est.t0, est.meas, est.dxdt, and .dbs files are copied into the new run directory prior to APMonitor execution.  New folders are created and older folders are deleted based on setting found in ModelReplay.m.
December 23, 2011, at 06:36 PM by 69.169.188.228 -
Changed lines 30-31 from:
!! Example NLC: Nonlinear Control with MATLAB
to:
!!! Example NLC: Nonlinear Control with MATLAB
Changed line 41 from:
!! Simulink Interface to APMonitor
to:
!!! Simulink Interface to APMonitor
December 23, 2011, at 06:35 PM by 69.169.188.228 -
Changed lines 17-26 from:
The zipped archives contain a script files such as '''apm.m'''.  To use the APM MATLAB library, copy the script files into the active directory.

Previous versions of
the APM MATLAB libraries are available below in the prior versions section.  In general, it is best to use the most current version as it supports the most advanced server features.  The product roadmap for this and other libraries are detailed in the [[Main/ProductRoadmap | release notes]] section.

''Prior Versions''

* [[Attach:matlab_ifc2.zip | APM MATLAB (version 0.5.4) Released 15 Sept 2011]]

Some older versions of MATLAB cannot run the
''apm_web.m'' script.  This script automatically launches the web-viewer for display of the solution results.  If this is the case, comments in the script give instructions on a work-around.  Example applications of the APM Python library include nonlinear programming, nonlinear control, and other applications below.
to:
The zipped archives contain a script files such as '''apm.m'''.  To use the APM MATLAB functions, copy the script files into the active directory or add the path with the '''addpath''' command.

Note: Some older versions of MATLAB cannot run the ''apm_var.m'' or
''apm_web.m'' script.  This script automatically launches the web-viewer for display of the solution results.  If this is the case, comments in the script give instructions on a work-around.  Example applications of the APM Python library include nonlinear programming, nonlinear control, and other applications below.
Changed lines 23-24 from:
Attach:download.jpg [[Attach:apm_matlab.zip | Download MATLAB CSTR Example]] 
to:
!!! Example CSTR: Continuous Stirred Tank Reactor
Changed line 30 from:
!! Nonlinear Control with MATLAB
to:
!! Example NLC: Nonlinear Control with MATLAB
December 06, 2011, at 07:13 AM by 69.169.188.228 -
Changed lines 29-30 from:
Attach:download.jpg [[Attach:apm_matlab.zip | Download MATLAB CSTR Example]]  Attach:download.jpg [[Attach:apm_octave.zip | Download GNU Octave Example]]
to:
Attach:download.jpg [[Attach:apm_matlab.zip | Download MATLAB CSTR Example]] 
Changed line 36 from:
!! Nonlinear Control with MATLAB / GNU Octave
to:
!! Nonlinear Control with MATLAB
December 06, 2011, at 06:10 AM by 69.169.188.228 -
Changed lines 11-13 from:
!!!! Latest Version

Attach:download.jpg [[Attach:matlab_ifc2.zip | Download
APM MATLAB Interface Source Code]]
to:
!!! Download APM MATLAB Libraries

The latest
APM MATLAB libraries are attached below.  Functionality has been tested with the latest release of MATLAB.

Attach:download.jpg [[Attach:apm_matlab_v0.5.5.zip | APM MATLAB (version 0.5.5) Released 5 Dec 2011
]]

The zipped archives contain a script files such as '''apm.m'''.  To use the APM MATLAB library, copy the script files into the active directory.

Previous versions of the APM MATLAB libraries are available below in the prior versions section.  In general, it is best to use the most current version as it supports the most advanced server features.  The product roadmap for this and other libraries are detailed in the [[Main/ProductRoadmap | release notes]] section.

''Prior Versions''

* [[Attach:matlab_ifc2.zip | APM MATLAB (version 0.5.4) Released 15 Sept 2011]]

Some older versions of MATLAB cannot run the ''apm_web.m'' script.  This script automatically launches the web-viewer for display of the solution results.  If this is the case, comments in the script give instructions on a work-around.  Example applications of the APM Python library include nonlinear programming, nonlinear control, and other applications below.
November 10, 2011, at 04:58 AM by 69.169.187.114 -
Changed line 2 from:
(:keywords nonlinear, MATLAB, GNU Octave, model, predictive control, APMonitor, differential, algebraic, modeling language:)
to:
(:keywords nonlinear, MATLAB, GNU Octave, model, predictive control, APMonitor, differential, algebraic, modeling language, Nonlinear MPC Toolbox:)
Changed line 5 from:
!! MATLAB Interface to APMonitor
to:
!! Nonlinear Programming in MATLAB
November 08, 2011, at 11:00 AM by 69.169.188.228 -
Changed line 7 from:
Attach:apm_matlab.png  MATLAB offers a convenient way to access the latest release of APMonitor directly from a powerful scripting language.  The optimization problem is sent to the APMonitor server and results are returned to a web interface.  Example applications of nonlinear models with differential and algebraic equations are available for download below.
to:
Attach:apm_matlab.png  MATLAB offers a convenient way to access the latest release of APMonitor.  The optimization problem is sent to the APMonitor server and results are returned to MATLAB local variables and a web interface.  Example applications of nonlinear models with differential and algebraic equations are available for download below.
November 08, 2011, at 10:59 AM by 69.169.188.228 -
Changed lines 7-9 from:
Attach:apm_matlab.png

The web-interface
offers a convenient way to access the latest release of APMonitor directly from a MATLAB script. The optimization problem is sent to the APMonitor server and results are returned to your web interface.  Example applications of nonlinear models with differential and algebraic equations are available for download below.
to:
Attach:apm_matlab.png  MATLAB offers a convenient way to access the latest release of APMonitor directly from a powerful scripting language.  The optimization problem is sent to the APMonitor server and results are returned to a web interface.  Example applications of nonlinear models with differential and algebraic equations are available for download below.
November 08, 2011, at 10:57 AM by 69.169.188.228 -
Added lines 6-7:

Attach:apm_matlab.png
Changed line 13 from:
Attach:download.jpg [[Attach:matlab_ifc.zip | Download APM MATLAB Interface Source Code]]
to:
Attach:download.jpg [[Attach:matlab_ifc2.zip | Download APM MATLAB Interface Source Code]]
Added lines 10-11:

!!!! Latest Version