Main
Main
October 3, 2023
4 Mathematical formulation
6 Optimization algorithms
4 Mathematical formulation
6 Optimization algorithms
4 Mathematical formulation
6 Optimization algorithms
Optimization problems
An optimization problem, in simple words, is a puzzle where you are trying to
find the best possible answer. Imagine you have a limited amount of money to
buy groceries, and you want to get the most food for your budget. That is an
optimization problem. You are looking for the ideal way to spend your money to
maximize what you can bring home. Fundamentally, optimization problems are
like real-life puzzles where you want to make choices to achieve the best outcome,
whether it is saving money, finding the quickest route, or making the most of your
resources. It is about making smart decisions to get the most value or benefit out
of a situation.
Objective functions
An objective function is a mathematical expression that serves as a way to measure
how good or bad a particular solution or choice is within a given problem. Think
of it as a tool that helps us assign a numerical value to our decisions, where lower
values typically represent better choices. This function guides us in finding the most
favorable outcome by systematically evaluating and comparing different options to
determine which one is the best fit for our specific problem. In essence, the objective
function is like a compass that helps us navigate through a sea of possibilities to
reach the optimal destination.
Decision variables
A decision variable is a specific quantity or factor that we can adjust or choose within
a problem to help us achieve our desired outcome. These variables represent the
choices we make in solving an optimization puzzle. By assigning different values to
these decision variables, we explore various scenarios to determine the best course
of action. Basically, decision variables are the levers or knobs we can tweak to
find the most effective solution, much like adjusting the settings on a machine to
produce the desired result.
Constraints, on the other hand, are these rules and requirements themselves. They
are the conditions or limits that you must follow when you are trying to find the
best solution. Constraints serve as the boundaries that keep your choices within
the realm of what is acceptable or practical.
The feasible region is a subset of the solution space, and it is like the part of
the playground where you are allowed to play by the rules. It includes all the
combinations of decision variables that satisfy the constraints of the problem. In
simple terms, it is where you look for the answers that not only work but also follow
the established guidelines or limitations.
4 Mathematical formulation
6 Optimization algorithms
Heuristics
In the optimization context, a heuristic is like a smart and practical rule of thumb
or a shortcut that helps you find good solutions to problems without having to check
every possible option. It is a way of making educated guesses and decisions based
on your knowledge and experience, even if you do not have all the information.
Think of it as using your intuition and past experience to quickly solve a problem or
make a choice, rather than spending a lot of time trying every possible approach.
Heuristics are handy when you want a reasonably good solution without getting
bogged down in exhaustive and time-consuming calculations or searches.
4 Mathematical formulation
6 Optimization algorithms
Minimize f (X )
gi (X ) ≤ 0 , i ∈ {1, . . . , m}
Subject to
hj (X ) = 0 , j ∈ {1, . . . , n}
With X ∈ D1 × . . . × Dd
In this formulation:
1 X = [x1 , . . . , xd ] represents the vector of decision variables to be optimized.
2 f (X ) is the objective function to be minimized.
3 gi (X ) ≤ 0 are inequality constraints, where i ranges from 1 to m. These
constraints impose limitations on the feasible region.
4 hj (X ) = 0 are equality constraints, where j ranges from 1 to n. These con-
straints represent relationships that must hold in the solution.
5 D1 × . . . × Dd are the domains to which the decision variables belong.
NB: For a maximization problem, you would change Minimize to Maximize while
keeping the same constraints.
This canonical form is widely used in mathematical optimization and can be adapted
to represent a wide range of optimization problems, including linear programming,
nonlinear programming, integer programming, and more. By expressing optimiza-
tion problems in this standardized format, it becomes easier to apply various opti-
mization algorithms and techniques.
4 Mathematical formulation
6 Optimization algorithms
Constraints:
Ensure that each city is visited exactly once:
X
xij = 1, ∀i ∈ N
j∈N,i̸=j
Constraints: Ensure that the total weight of selected items does not exceed the
capacity of the knapsack:
Xn
w i xi ≤ W
i=1
Minimize k
Constraints:
Each item must be placed in exactly one bin:
k
X
xij = 1, ∀i = 1, 2, . . . , n
j=1
The total size of items placed in a bin must not exceed its capacity:
n
X
si xij ≤ B, ∀j = 1, 2, . . . , k
i=1
Constraints:
Each customer must be visited exactly once by exactly one vehicle:
X
yik = 1, ∀i ∈ N
k∈V
Set cover problem: The Set Cover Problem is a classical combinatorial opti-
mization problem that involves selecting a minimum number of sets from a given
collection of sets to cover all elements of a universal set. In other words, it seeks
to find the smallest sub-collection of sets such that every element from a universal
set is included in at least one of the selected sets. We give the mathematical for-
mulation of the Set Cover Problem.
Sets and Parameters:
U: Universal set containing n elements, U = {1, 2, . . . , n}.
Si : A collection of subsets of U for i = 1, 2, . . . , k.
Decision Variables:
xi : Binary decision variable, where xi = 1 if set Si is selected to be part of the
cover, and xi = 0 otherwise.
Constraints: Ensure that each element in the universal set is covered by at least
one selected set: X
Minimize xi ≥ 1, ∀j ∈ U
i:j∈Si
Applications: The Set Cover Problem has a wide range of practical applications
in various fields, including:
Network design: Selecting the minimum number of communication stations
to cover all areas in a network.
Facility Location: Choosing the minimum number of locations for warehouses
or facilities to serve all customers.
Sensor placement: Placing the minimum number of sensors in a region to
monitor events or phenomena.
Advertising campaigns: Selecting the minimum number of advertisements
to reach a target audience.
Document retrieval: Identifying relevant documents in information retrieval
systems.
Airline crew scheduling: Assigning flight crews to routes to cover all flights
with the fewest crew members.
Constraints:
Each agent is assigned to exactly one task:
X
xij = 1, ∀i ∈ N
j∈M
4 Mathematical formulation
6 Optimization algorithms
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 100 / 117
Optimization algorithms (36/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 101 / 117
Optimization algorithms (37/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 102 / 117
Optimization algorithms (38/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 103 / 117
Optimization algorithms (39/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 104 / 117
Optimization algorithms (40/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 105 / 117
Optimization algorithms (41/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 106 / 117
Optimization algorithms (42/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 107 / 117
Optimization algorithms (43/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 108 / 117
Optimization algorithms (44/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 109 / 117
Optimization algorithms (45/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 110 / 117
Optimization algorithms (46/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 111 / 117
Optimization algorithms (47/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 112 / 117
Optimization algorithms (48/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 113 / 117
Optimization algorithms (49/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 114 / 117
Optimization algorithms (50/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 115 / 117
Optimization algorithms (51/51)
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 116 / 117
Thank your for your attention!
[email protected]
Dr. Farouq Zitouni Advanced Operations Research October 3, 2023 117 / 117