Tutorial on MATLAB and Python for Optimization
Main.IntroNLP History
Hide minor edits - Show changes to output
Added lines 4-5:
Matlab and Python can both be used to solve optimization problems. In Matlab, functions like fmincon can be used to find the minimum of an objective function. Python has a variety of optimization libraries, such as SciPy, CVXOPT, Pyomo, and Gekko which can be used to solve both linear and nonlinear optimization problems. Additionally, Python also has packages like scikit-optimize for hyperparameter tuning, which can be used to optimize the parameters of an optimizer.
Deleted lines 15-33:
----
(:html:)
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'apmonitor'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
(:htmlend:)
Changed lines 5-8 from:
to:
The two packages used throughout this course are the APMonitor Optimization Suite ([[https://apmonitor.com/wiki/index.php/Main/MATLAB|APM MATLAB]] or [[https://apmonitor.com/wiki/index.php/Main/PythonApp|APM Python]]) and the more recent [[https://apmonitor.com/wiki/index.php/Main/GekkoPythonOptimization|Python GEKKO package]] (see [[https://gekko.readthedocs.io/en/latest/|GEKKO Documentation]]).
Changed lines 8-14 from:
<iframe width="560" height="315" src="https://www.youtube.com/embed/t84YMw8p34w?rel=0" frameborder="0" allowfullscreen></iframe>
to:
<b>Python GEKKO<b>
<br>
<iframe width="560" height="315" src="https://www.youtube.com/embed/bXAkr7MPf4w" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br><br>
<b>APM MATLAB<b>
<br>
<iframe width="560" height="315" src="https://www.youtube.com/embed/SVOb0yDPJjw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br>
<iframe width="560" height="315" src="https://www.youtube.com/embed/bXAkr7MPf4w" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br><br>
<b>APM MATLAB<b>
<br>
<iframe width="560" height="315" src="https://www.youtube.com/embed/SVOb0yDPJjw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Added lines 1-30:
(:title Tutorial on MATLAB and Python for Optimization:)
(:keywords MATLAB, Python, mathematical modeling, nonlinear, optimization, engineering optimization, interior point, active set, differential, algebraic, modeling language, university course:)
(:description It is important to select a flexible and capable platform for complex optimization scenarios. The step-by-step tutorial walks through and optimization problem in engineering with both MATLAB and Python.:)
!!!! Tutorial on Optimization with MATLAB and Python
[[Attach:nlp_matlab_python_tutorial.zip | Download MATLAB and Python Tutorial Files (nlp_matlab_python_tutorial.zip)]]
(:html:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/t84YMw8p34w?rel=0" frameborder="0" allowfullscreen></iframe>
(:htmlend:)
----
(:html:)
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'apmonitor'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
(:htmlend:)
(:keywords MATLAB, Python, mathematical modeling, nonlinear, optimization, engineering optimization, interior point, active set, differential, algebraic, modeling language, university course:)
(:description It is important to select a flexible and capable platform for complex optimization scenarios. The step-by-step tutorial walks through and optimization problem in engineering with both MATLAB and Python.:)
!!!! Tutorial on Optimization with MATLAB and Python
[[Attach:nlp_matlab_python_tutorial.zip | Download MATLAB and Python Tutorial Files (nlp_matlab_python_tutorial.zip)]]
(:html:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/t84YMw8p34w?rel=0" frameborder="0" allowfullscreen></iframe>
(:htmlend:)
----
(:html:)
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'apmonitor'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
(:htmlend:)