Optimization in Python
[Pages:33]
Optimization in Python
Hans-Petter Halvorsen
Free Textbook with lots of Practical Examples
Additional Python Resources
Contents
? Optimization
? Find minimum (or maximum) of a given function
? Curve Fitting, where you find an "optimal" Model based on a given Data Set, i.e., You find the model parameters for a selected model that best fits the data set
? The SciPy Library
? Lots of Python Examples
Optimization
Optimization is based on finding the minimum of a given function
We find the Minimum
()
(or Maximum) where
() the derivative is zero
() =0
Minimum
Optimization
? Optimization is important in mathematics, control and simulation applications
? Basically it is all about finding minimum (or maximum) of a given function
? E.g., in Model Predictive Control (MPC) you use optimization to find the optimal control signal based on some criteria and constraints
Optimization Challenges
Convex Function
Non-Convex Function
Local Minimum
Minimum Optimizing convex functions is easy
Global Minimum
Optimizing non-convex functions can be much more complicated
When you have more than one variable (Multiple variables) it also become more complex
Optimization - Example
The cost function often used in MPC is like this:
$!
$"
= # $ - % $ - + # %
!"#
!"#
Where is the Control Signal
So the basic challenge is to solve:
=0
By solving this we get the future optimal control (&'()
The optimal control signal used by the MPC controller
In this Tutorial/Video we will only go through some general Optimization problems and not focus on MPC or other specific applications
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- computational physics with python unios
- python data science handbook
- let s try some random projections of the data
- chapter plotting data using 4 matplotlib
- optimization in python
- matplotlib tutorialspoint
- matplotlib 2d and 3d plotting in python
- mathematics in python
- networkx tutorial stanford university
- seaborn tutorialspoint
Related searches
- sort dictionary in python by values
- shape in python numpy
- array shape in python numpy
- str in python example
- join in python using on
- replace character in python string
- create a matrix in python using for
- random generator in python examples
- create matrix in python numpy
- install numpy in python 2 7
- tuple in python example
- numpy in python tutorial