Main.PythonApp History
Hide minor edits - Show changes to markup
Changed line 21 from:

APM Python with Demo Applications on GitHub
to:

APM Python with Demo Applications on GitHub
Changed lines 5-9 from:

APM Python is designed for large-scale optimization and accesses solvers of constrained, unconstrained, continuous, and discrete problems. Problems in linear programming, quadratic programming, integer programming, nonlinear optimization, systems of dynamic nonlinear equations, and multiobjective optimization can be solved. The platform can find optimal solutions, perform tradeoff analyses, balance multiple design alternatives, and incorporate optimization methods into external modeling and analysis software. It is free for academic and commercial use. A newer Python interface is the
GEKKO Optimization Suite that is available with:
python pip install gekko
Instructions below are for working with the original APM Python package that requires an APM model and data files. The advantage of working with GEKKO is that the model equations and data are defined directly within the Python language instead of in separate files (see documentation).
to:

APM Python is designed for large-scale optimization and accesses solvers of constrained, unconstrained, continuous, and discrete problems. Problems in linear programming, quadratic programming, integer programming, nonlinear optimization, systems of dynamic nonlinear equations, and multiobjective optimization can be solved. The platform can find optimal solutions, perform tradeoff analyses, balance multiple design alternatives, and incorporate optimization methods into external modeling and analysis software. It is free for academic and commercial use.
Recommended: A newer Python interface is the GEKKO Optimization Suite that is available with:
python pip install gekko
Instructions below are for working with the original APM Python package that requires an APM model and data files. The advantage of working with GEKKO is that the model equations and data are defined directly within the Python language instead of in separate files (see documentation). There is also an option to run locally in GEKKO without an Apache server for Linux and Windows. Both APM Python and GEKKO solve optimization problems on public servers by default and this option is available for all platforms (Windows, Linux, MacOS, ARM processors, etc) that run Python.
Changed line 5 from:

APM Python is designed for large-scale optimization and accesses solvers of constrained, unconstrained, continuous, and discrete problems. Problems in linear programming, quadratic programming, integer programming, nonlinear optimization, systems of dynamic nonlinear equations, and multiobjective optimization can be solved. The platform can find optimal solutions, perform tradeoff analyses, balance multiple design alternatives, and incorporate optimization methods into external modeling and analysis software. It is free for academic and commercial use. A newer Python interface is the
GekkoPythonOptimizationGEKKO Optimization Suite? that is available with:
to:

APM Python is designed for large-scale optimization and accesses solvers of constrained, unconstrained, continuous, and discrete problems. Problems in linear programming, quadratic programming, integer programming, nonlinear optimization, systems of dynamic nonlinear equations, and multiobjective optimization can be solved. The platform can find optimal solutions, perform tradeoff analyses, balance multiple design alternatives, and incorporate optimization methods into external modeling and analysis software. It is free for academic and commercial use. A newer Python interface is the
GEKKO Optimization Suite that is available with:
Changed lines 5-9 from:

APM Python is designed for large-scale optimization and accesses solvers of constrained, unconstrained, continuous, and discrete problems. Problems in linear programming, quadratic programming, integer programming, nonlinear optimization, systems of dynamic nonlinear equations, and multiobjective optimization can be solved. The platform can find optimal solutions, perform tradeoff analyses, balance multiple design alternatives, and incorporate optimization methods into external modeling and analysis software. It is free for academic and commercial use.
to:

APM Python is designed for large-scale optimization and accesses solvers of constrained, unconstrained, continuous, and discrete problems. Problems in linear programming, quadratic programming, integer programming, nonlinear optimization, systems of dynamic nonlinear equations, and multiobjective optimization can be solved. The platform can find optimal solutions, perform tradeoff analyses, balance multiple design alternatives, and incorporate optimization methods into external modeling and analysis software. It is free for academic and commercial use. A newer Python interface is the
GekkoPythonOptimizationGEKKO Optimization Suite? that is available with:
python pip install gekko
Instructions below are for working with the original APM Python package that requires an APM model and data files. The advantage of working with GEKKO is that the model equations and data are defined directly within the Python language instead of in separate files (see documentation).
Changed lines 21-29 from:
Another method to obtain APMonitor is to include the following code snippet at the beginning of a Python script. If APMonitor is not available, it will use the pip module to install it.
try:
from APMonitor.apm import *
except:
# Automatically install APMonitor
import pip
pip.main(['install','APMonitor'])
from APMonitor.apm import *
to:
Another method to obtain APMonitor is to include the following code snippet at the beginning of a Python script. The installation is only required once and then the code can be commented or removed.
(:source lang=python:)
try:
from pip import main as pipmain
except:
from pip._internal import main as pipmain
pipmain(['install','APMonitor'])
- to upgrade: pipmain(['install','--upgrade','APMonitor'])
(:sourceend:)
Added lines 88-89:
The Dynamic Optimization Course is graduate level course taught over 14 weeks to introduce concepts in mathematical modeling, data reconciliation, estimation, and control. There are many other applications and instructional material posted to this freely available course web-site.
Changed line 24 from:
to:
from APMonitor.apm import *
Changed line 29 from:
to:
from APMonitor.apm import *
Changed line 24 from:
to:
Changed line 29 from:
to:
Changed lines 5-6 from:

APM Python is designed for large-scale optimization and accesses solvers of constrained, unconstrained, continuous, and discrete problems. Problems in linear programming, quadratic programming, integer programming, nonlinear optimization, systems of dynamic nonlinear equations, and multiobjective optimization can be solved. The platform can find optimal solutions, perform tradeoff analyses, balance multiple design alternatives, and incorporate optimization methods into external modeling and analysis software. It is free for academic and commercial use. Example applications of nonlinear models with differential and algebraic equations are available for download below or from the following GitHub repository.
to:

APM Python is designed for large-scale optimization and accesses solvers of constrained, unconstrained, continuous, and discrete problems. Problems in linear programming, quadratic programming, integer programming, nonlinear optimization, systems of dynamic nonlinear equations, and multiobjective optimization can be solved. The platform can find optimal solutions, perform tradeoff analyses, balance multiple design alternatives, and incorporate optimization methods into external modeling and analysis software. It is free for academic and commercial use.
(:html:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/WF3iieZfRA0" frameborder="0" allowfullscreen></iframe>
(:htmlend:)
Example applications of nonlinear models with differential and algebraic equations are available for download below or from the following GitHub repository.
Changed lines 39-45 from:
(:html:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/t84YMw8p34w?rel=0" frameborder="0" allowfullscreen></iframe>
(:htmlend:)
The development roadmap for this and other libraries are detailed in the release notes. The zipped archive contains the APM Python library apm.py and a number of example problems in separate folders. Descriptions of the example problems are provided below.
to:
The development roadmap for this and other libraries are detailed in the release notes. The zipped archive contains the APM Python library apm.py and a number of example problems in separate folders. Descriptions of some of the example problems are provided below.
Changed line 31 from:
to:
Changed line 31 from:
to:
Changed lines 15-16 from:
(:source lang=python:)
try:
to:
Another method to obtain APMonitor is to include the following code snippet at the beginning of a Python script. If APMonitor is not available, it will use the pip module to install it.
try:
Changed line 19 from:
to:
Changed lines 22-26 from:
def install(package):
pip.main(['install', package])
# Example
if __name__ == _main_:
install('APMonitor')
to:
pip.main(['install','APMonitor'])
Deleted line 23:
Added lines 14-27:
(:source lang=python:)
try:
from APMonitor import *
except:
# Automatically install APMonitor
import pip
def install(package):
pip.main(['install', package])
# Example
if __name__ == _main_:
install('APMonitor')
from APMonitor import *
(:sourceend:)
Changed line 37 from:
$$ s.t. x_1 x_2 x_3 x_4 \ge 25$$
to:
$$ \mathrm{subject\;to} \quad x_1 x_2 x_3 x_4 \ge 25$$
Changed lines 37-43 from:
$$ s.t. x_1 x_2 x_3 x_4 /ge 25$$
$$ x_1^2 + x_2^2 + x_3^2 + x_4^2 = 40$$
$$ 1 \le x_1, x_2, x_3, x_4 \le 5$$
$$ x_0 = (1,5,5,1)$$
to:
$$ s.t. x_1 x_2 x_3 x_4 \ge 25$$
$$\quad x_1^2 + x_2^2 + x_3^2 + x_4^2 = 40$$
$$\quad 1 \le x_1, x_2, x_3, x_4 \le 5$$
$$\quad x_0 = (1,5,5,1)$$
Added line 36:
Added line 38:
Added line 40:
Changed lines 35-41 from:
$$ \min \, x_1 x_4 (x_1 + x_2 + x_3) + x_3 $$
to:
$$ \min x_1 x_4 (x_1 + x_2 + x_3) + x_3 $$
$$ s.t. x_1 x_2 x_3 x_4 /ge 25$$
$$ x_1^2 + x_2^2 + x_3^2 + x_4^2 = 40$$
$$ 1 \le x_1, x_2, x_3, x_4 \le 5$$
$$ x_0 = (1,5,5,1)$$
Changed line 35 from:
$$ /min /, x_1 x_4 \left(x_1 + x_2 + x_3 \right) + x_3 $$
to:
$$ \min \, x_1 x_4 (x_1 + x_2 + x_3) + x_3 $$
Changed lines 35-36 from:
to:
$$ /min /, x_1 x_4 \left(x_1 + x_2 + x_3 \right) + x_3 $$
Added lines 10-13:
The APMonitor package is also available through the package manager pip in Python.
python pip install APMonitor
Changed line 17 from:
to:
Changed line 17 from:
to:
Changed lines 15-17 from:
The latest APM Python libraries are attached below. Functionality has been tested with Python 2.7. Example applications that use the apm.py library are listed further down on this page.
to:
The latest APM Python libraries are attached below. Functionality has been tested with Python 2.7 and 3.5. Example applications that use the apm.py library are listed further down on this page.
Added lines 6-7:
git clone git://github.com/APMonitor/apm_python
Changed lines 5-8 from:
APM Python

APM Python is designed for large-scale optimization and accesses solvers of constrained, unconstrained, continuous, and discrete problems. Problems in linear programming, quadratic programming, integer programming, nonlinear optimization, systems of dynamic nonlinear equations, and multiobjective optimization can be solved. The platform can find optimal solutions, perform tradeoff analyses, balance multiple design alternatives, and incorporate optimization methods into external modeling and analysis software. It is free for academic and commercial use.
to:

APM Python is designed for large-scale optimization and accesses solvers of constrained, unconstrained, continuous, and discrete problems. Problems in linear programming, quadratic programming, integer programming, nonlinear optimization, systems of dynamic nonlinear equations, and multiobjective optimization can be solved. The platform can find optimal solutions, perform tradeoff analyses, balance multiple design alternatives, and incorporate optimization methods into external modeling and analysis software. It is free for academic and commercial use. Example applications of nonlinear models with differential and algebraic equations are available for download below or from the following GitHub repository.

APM Python with Demo Applications on GitHub
Added line 58:
- APM IPython Notebook Example on GitHub
Changed line 1 from:
(:title Nonlinear Optimization with Python:)
to:
(:title Python Optimization Package:)
Changed line 15 from:
to:
Changed line 15 from:
to:
Changed line 15 from:
to:
Changed line 15 from:
to:
Changed line 30 from:
Solve this problem problem from a web-browser interface.
to:
- Solve this optimization problem from a web-browser interface or download the Python source above. The Python files are contained in folder example_hs71.
Changed line 30 from:
Hock-Schittkowsky Test Suite #71
to:
Solve this problem problem from a web-browser interface.
Changed line 15 from:
to:
Added lines 16-19:
(:html:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/t84YMw8p34w?rel=0" frameborder="0" allowfullscreen></iframe>
(:htmlend:)
Changed lines 7-8 from:

Python offers a powerful scripting capabilities for solving nonlinear optimization problems. The optimization problem is sent to the APMonitor server and results are returned to the Python script. A web-interface to the solution helps to visualize the dynamic optimization problems. Example applications of nonlinear models with differential and algebraic equations are available for download below.
to:

APM Python is designed for large-scale optimization and accesses solvers of constrained, unconstrained, continuous, and discrete problems. Problems in linear programming, quadratic programming, integer programming, nonlinear optimization, systems of dynamic nonlinear equations, and multiobjective optimization can be solved. The platform can find optimal solutions, perform tradeoff analyses, balance multiple design alternatives, and incorporate optimization methods into external modeling and analysis software. It is free for academic and commercial use.
Changed line 56 from:
to:
Changed line 15 from:
to:
Changed line 15 from:
to:
Changed line 15 from:
to: