IE331 2024 Lecture2 Slides
IE331 2024 Lecture2 Slides
Dabeen Lee
The first represents x as a column vector, while the second is the row vector
representation.
Quick review of linear algebra
• Decisions
Decisions : parameters and variables that we need to determine.
For example, the number of units to produce, a schedule of sports games,
and a regression model.
Constraints
• Constraints : restrictions and requirements that we need to satisfy.
For example, the limits on how much material we use for production and
balancing the number of away games and that of home games for a team.
O
• Constraints are modeled by some functions of variables.
Choose
decision variables x
to make
the objective f (x)
as large (or small) as possible under the restrictions that x satisfy
and
min / max {f (x) : gi (x) bi , i 2 [m]}
x x
Optimization problem
O
s.t. g (x) b ,
i i i 2 [m]
and
min / max {f (x) : gi (x) bi , i 2 [m]}
x x
where
• s.t. stands for subject to,
Optimization problem
and
min / max {f (x) : gi (x) bi , i 2 [m]}
x x
where
• s.t. stands for subject to,
• [m] denotes the set {1, . . . , m},
Optimization problem
and
min / max {f (x) : gi (x) bi , i 2 [m]}
x x
where
• s.t. stands for subject to,
• [m] denotes the set {1, . . . , m},
• subscript x under min / max means that the optimization problem is over
decision variables x.
Optimization problem
< die) i t (d)
0 .
that x 2 Rd .
-
O
Unless there is some constraint on x, e.g. x 2 Zd and x 2 [0, 1]d , we assume
Optimization problem
and the amount of material B required for production is at most 70, given
by
2x + y Eno
2x + y 70.
Lastly, the quantities x and y cannot be negative.
• Objective: the objective is to maximize the total number of products
produced. Here, the number of produced products would be x + y
x+
y
Example
maxx +
y
diy
=150
s t
.
.
2x + By
Eno
City
d .
y
10
Optimization terminologies
min f (x)
s.t. gi (x) bi , i 2 [m],
d
x 2R .
• If a solution x violates some constraint, i.e. gi (x) > bi for some i 2 [m],
we call x infeasible infeasible
infeasibleor an infeasible solutionsolution
Optimization terminologies
optimal
value p ⇤ is called optimal or an optimal solution
optimal solution
• In fact, there can be more than one optimal solutions.
Optimization terminologies
min f (x)
s.t. gi (x) bi , i 2 [m],
d
x 2R .
Note that
= -
x
min)-ful)
min { f (x) : gi (x) bi ,
Sik) [bi
i 2: [m]} . ,
it
my
Here, the maximization problem being infeasible means that p ⇤ = 1 while
being unbounded means p ⇤ = 1.
El
Example
o
O
so (30, 30) is an
infeasible solutio
• As the problem has a feasible solution, the problem is feasible
• We have seen that (15, 40) is an
optimal solution
• 15 + 40 = 55 is the
optimum ,
the optimal value
lineup if
We say that a function f : Rd ! R is linear
f (↵x + y ) = ↵f (x) + f (y )
d
for any x, y 2 R and ↵, 2 R.
In fact, a function f is linear if and only if there exists some vector c 2 Rd such
that
d
X
is) 1 x1 + c2 x2 + · · · + Hold
f (x) = c > x = cClitlicht ·
cd xd = cj xj Gilli
,
.
j=1
"biline
L gundratic
quadratic
Linear programs
min c(Tx
>
x
;
s.t. aai> x D
=bib
, ; i 2 [m],
x 2 Rd
where c 2 Rd , a1 , . . . , am 2 Rd , and b1 , . . . , bm 2 R.
*
• One unit of product j sells for price pj for i 2 [d].
Production planning (general version)
Goal: decide the production quantity of each project under the current stock
level of materials while maximizing the total revenue.
Here, the revenue refers to the gross income by selling the products.
Pjcts X
pj xj .
j2[d]
hij
X
Dj
aij xj .
j2[d]
hijdly
constraint as X
aij xj b<
i.
b ; Vielny
j2[d]
Pilg
following LP.
max
sit
ai;, bi Fiel
dj zo Fjeld) .
Production planning - profit maximization
The profit is defined as the net income after deducting costs from earnings.
The company may attempt to maximize the profit instead of the revenue. How
can we model the new objective?
Production planning - profit maximization
si
X
hij
si aij .
i2[m]
Silig
i2[m]
I Pj
0 1
X X
9ij) diy
@p j si aij ASi
xj .
j2[d] i2[m]
-
Production planning - profit maximization
xj 20 Fjela