Assignment 3
Assignment 3
Assignment 3
What is convex function. Write the criteria for convex function in the mathematical
form.
A convex function is a mathematical function that satisfies a specific property related to
the shape of its graph. A function is considered convex if, for any two points within its
domain, the line segment connecting those two points lies above or on the graph of the
function.
Mathematically, a function f(x) defined on a convex set S is convex if, for all ( ) and in S
x1 x2
and for all in the interval ([0, 1]), the following inequality holds:
(λ)
In simpler terms, this inequality states that if you take two points, (x_1) and , within the
x2
domain of the function, and any point along the line segment that connects them (
), the value of the function at that point must be less than or equal to the
λx 1 + (1 − λ)x 2
Functions that are convex functions, have a global minimum value that may be present at
multiple points in the graph of the function.
Observe how the minimum value of 0 for the function is present at multiple values for the
input value
Strictly Convex Condition
f (θx + (1 − θ)y < θf (x) + (1 − θ)f (y)
Subject to:
g i (x) ≤ 0, i = 1, 2, … , m
h j (x) = 0, j = 1, 2, … , p
Where:
is the vector of variables to be optimized.
x
First derivative tests for a solution to be optimal, provide that some regularity conditions
are fulfilled.
It generalizes the method of Lagrange multipliers, which allows only equality constraints.
Stationary:
m p
∇ x L(x, λ) = ∇f (x) + ∑ λ i ∇g i (x) + ∑ ν j ∇h j (x) = 0
i=1 j=1
This condition ensures that the gradient of the Lagrangian with respect to (x) is zero.
Primal Feasibility
∗
h j (x ) = 0, f or j = 1, … , ℓ
∗
g i (x ) ≤ 0, f or i = 1, … , m
Dual Feasibility
λ i ≥ 0, f or i = 1,....,m
Complementary Slackness
m ∗
∑ λ i g i (x ) = 0
i=1
where is
wx w
(1)
x
(1)
+ w
(2)
x
(2)
+ w
(3)
x
(3)
+ w
(4)
x
(4)
. . . . +w
(D)
x
(D)
and D is the number of
dimensions of the feature vector x.
Numerical Question
Given a fixed area A of cardboard, Find the dimension of the cardboard box with maximum
volume.
Determine if any of the following functions is convex.