3.1 Introduction of Optimization
3.1 Introduction of Optimization
ENGINEERING
DEPARTMENT OF COMPUTER SCIENCE
AND ENGINEERING
• Operations Research:
• Optimization is widely used in operations research to optimize resource allocation, logistics, and
scheduling problems.
• Engineering:
• Engineers use optimization to design efficient systems, such as optimizing the shape of an aircraft wing or
maximizing the efficiency of a chemical process.
• Finance:
• In finance, optimization is used for portfolio management, risk assessment, and asset allocation.
• Machine Learning:
• Optimization plays a key role in training machine learning models. Algorithms like gradient descent are
used to minimize the error or loss function.
• Economics:
• Economic models often involve optimizing utility functions or production costs.
3
Types of Optimization:
4
Optimization in Python
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Unconstrained Optimization: Gradient-based methods
(e.g., gradient descent).
24
25
26
27
28
29
30
31
32
33
34
35