MATLAB Dynamic Optimization Toolbox
Main.MATLAB History
Hide minor edits - Show changes to output
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:
<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:)
(: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
Attach:hs71.gif
to:
!!!! Nonlinear Programming with MATLAB
%width=350px%Attach:hs71.gif
%width=350px%Attach:hs71.gif
Changed lines 32-35 from:
to:
!!!! CSTR: Continuous Stirred Tank Reactor
Changed lines 37-40 from:
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]]
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
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]]
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.
Changed line 1 from:
(:title Dynamic Optimization Toolbox in MATLAB:)
to:
(:title MATLAB Dynamic Optimization Toolbox:)
Changed line 1 from:
(:title MATLAB Interface to APMonitor:)
to:
(:title Dynamic Optimization Toolbox in MATLAB:)
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]]
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]]
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
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
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
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
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
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.
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]]
Changed line 21 from:
[[Main/MatlabFunctions | APM MATLAB Documentation]]
to:
[[Main/MatlabFunctions | APM MATLAB Source Code Documentation]]
Changed lines 16-17 from:
to:
Added lines 20-21:
[[Main/MatlabFunctions | APM MATLAB Documentation]]
Added line 16:
[[Main/MatlabFunctions | APM MATLAB Documentation]]
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
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
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.
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
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
Added lines 19-22:
(:html:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/-IDTagajoyA?rel=0" frameborder="0" allowfullscreen></iframe>
(:htmlend:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/-IDTagajoyA?rel=0" frameborder="0" allowfullscreen></iframe>
(:htmlend:)
Deleted line 46:
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
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
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
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
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
Added lines 20-26:
----
!!! Example HS71: Nonlinear Programming with Matlab
Attach:hs71.gif
Hock-Schittkowsky Test Suite #71
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 APMPython library include nonlinear programming, nonlinear control, and other applications below.
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
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.
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.
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
Deleted lines 33-34:
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.
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
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.
Previous versions of
''Prior Versions''
* [[Attach:matlab_ifc2.zip | APM MATLAB (version 0.5.4) Released 15 Sept 2011]]
Some older versions of MATLAB cannot run the
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.
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:
to:
!!! Example CSTR: Continuous Stirred Tank Reactor
Changed line 30 from:
!! Nonlinear Control with MATLAB
to:
!! Example NLC: Nonlinear Control with MATLAB
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
Changed lines 11-13 from:
!!!! Latest Version
Attach:download.jpg [[Attach:matlab_ifc2.zip | Download APM MATLAB Interface Source Code]]
Attach:download.jpg [[Attach:matlab_ifc2.zip | Download
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.
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.
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
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.
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.
The web-interface
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.
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]]