Tutorial on MATLAB and Python for Optimization
Main.IntroNLP History
Hide minor edits - Show changes to markup
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.
(: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:)
Tutorial on Optimization with MATLAB and Python
Download MATLAB and Python Tutorial Files (nlp_matlab_python_tutorial.zip)
The two packages used throughout this course are the APMonitor Optimization Suite (APM MATLAB or APM Python) and the more recent Python GEKKO package (see GEKKO Documentation).
<iframe width="560" height="315" src="https://www.youtube.com/embed/t84YMw8p34w?rel=0" frameborder="0" allowfullscreen></iframe>
<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>
(: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
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:)