Httpscampus - Edem.espluginfile - Php153740mod Foldercontent0IntroductionLinear20Programming20I.pdfforcedownload 1
Httpscampus - Edem.espluginfile - Php153740mod Foldercontent0IntroductionLinear20Programming20I.pdfforcedownload 1
Linear Programming
Prof: Francisco Fraile
email: [email protected]
Contents
Definition
Characteristics
Problem Definition
Example 1
Assumptions
Example 2
General Problem
Solution: graphic method (2 variables)
Definition
“Mathematical process to 𝑍 = 500𝑋1 + 350𝑋2
determine the optimal
Robot 1
allocation of scarce resources”
+
Linear Optimisation: involves
maximising or minimising a linear
objective function, subject to a set of
linear inequality or equality constraints.
Objective
𝒄𝑻 𝒙 =
Environment Maximise or 𝒄𝟏 𝒙 𝟏 + 𝒄𝟐 𝒙 𝟐
minimise + ⋯ + 𝒄𝟐 𝒙 𝟐
Constraints
Limitations on
𝒂𝟏𝟏 𝒙𝟏 + 𝒂𝟏𝟐 𝒙𝟐 ≤ 𝒃𝟏
decisions
𝒂𝟐𝟏 𝒙𝟏 ≤ 𝒃𝟐
Problem Formulation Guidelines
Identify objective (max/min objective function and objective
variable)
Identify the decision variables
Express the objective function in terms of the decision variables
Identify the constraints and the type of constraint:
Limited resources (<=): Less or equal
Requirements (=>): Greater or equal
Requirements (=): Equal
Decision variables?
Objective function?
Constraints?
Production Mix Problems
Easy examples:
Production Mix
Ski Patrol
The good carpenter
Blending Problems
Blending materials or resources to create products that satisfy a
given demand.
Each resource or material will have a different cost and/or
availability
Each type of product will have a different selling price and demand
There might by additional requirements (e.g. quality
requirements)
The objective is to find the optimal blending that minimizes cost or
maximizes profits while satisfying the constraints (availability,
demand, requirements)
Blending problems arise in Process Manufacturing: Metal
processing, food processing, chemical industry, pharmaceuticals,
textiles.
Example 2: Blending
The production of a paint requires two materials, M1 and M2
The final product has two properties that depend on M1 and M2, the brightness
and the hue.
To meet the quality requirements, the final product must have a brightness of at
least 300 and a hue of at most 250
The brightness is directly proportional to the amount of M1 and M2 in grams used
in the mix
The hue depends only on the amount of M1. The hue/gram of M1 is 3
Objective function?
Constraints?
General Problem (Canonical form)
𝐦𝐚𝐱𝐢𝐦𝐢𝐬𝐞 𝒄𝑻 ∙ 𝒙
𝐬𝐮𝐛𝐣𝐞𝐜𝐭 𝐭𝐨 𝑨𝒙 ≤ 𝒃 𝒂𝒏𝒅 ∀𝒊, 𝒙𝒊 > 𝟎
Decision variables
𝒙 = (𝒙𝟏 , … , 𝒙𝒏 )
Coefficients
𝒄 = (𝒄𝟏 , … , 𝒄𝒏 )
Constraints
𝑨 𝒑𝒙𝒏 𝒎𝒂𝒕𝒓𝒊𝒙 𝒘𝒉𝒆𝒓𝒆 𝑨𝒊 𝒂𝒓𝒆 𝒍𝒊𝒏𝒆𝒂𝒓𝒍𝒚 𝒊𝒏𝒅𝒆𝒑𝒆𝒏𝒅𝒆𝒏𝒕
𝒃 = (𝒃𝟏 , … , 𝒃𝒑 )
Graphical representation
Represent decision variables in a coordinate system (2 decision variables = 2 dimensions)
Objective function
Maximise 𝒁 = 𝟑𝟎𝟎𝒙𝟏 + 𝟐𝟎𝟎𝒙𝟐
Constraints
𝟐𝒙𝟏 + 𝒙𝟐 ≤ 𝟒𝟎
𝒙𝟏 + 𝟑𝒙𝟐 ≤ 𝟒𝟓 Feasibility region (gray): area containining all
feasible solutions
𝒙𝟏 ≤ 𝟏𝟐
𝒙𝟏 , 𝒙𝟐 >0 Feasible solution: Solution that satisfies the
constraint
Graphical representation
Represent decision variables in a coordinate system (2 decision variables = 2 dimensions)
Objective function
Maximise 𝒁 = 𝟑𝟎𝟎𝒙𝟏 + 𝟐𝟎𝟎𝒙𝟐
Constraints
𝟐𝒙𝟏 + 𝒙𝟐 ≤ 𝟒𝟎
𝒙𝟏 + 𝟑𝒙𝟐 ≤ 𝟒𝟓
𝒙𝟏 ≤ 𝟏𝟐
𝒙𝟏 , 𝒙𝟐 >0
Graphical representation
Represent decision variables in a coordinate system (2 decision variables = 2 dimensions)
Objective function
Maximise 𝒁 = 𝟑𝟎𝟎𝒙𝟏 + 𝟐𝟎𝟎𝒙𝟐
Constraints
𝟐𝒙𝟏 + 𝒙𝟐 ≤ 𝟒𝟎 (irrelevant)
𝒙𝟏 + 𝟑𝒙𝟐 ≤ 𝟒𝟓
𝒙𝟏 ≤ 𝟏𝟐
𝒙𝟏 , 𝒙𝟐 >0
Graphical representation
Represent decision variables in a coordinate system (2 decision variables = 2 dimensions)
Objective function
Maximise 𝒁 = 𝟑𝟎𝟎𝒙𝟏 + 𝟐𝟎𝟎𝒙𝟐
Constraints
𝟐𝒙𝟏 + 𝒙𝟐 ≤ 𝟒𝟎
𝒙𝟏 + 𝟑𝒙𝟐 ≤ 𝟒𝟓
𝒙𝟏 ≤ 𝟏𝟐
𝒙𝟏 , 𝒙𝟐 >0
Graphical representation
Represent decision variables in a coordinate system (2 decision variables = 2 dimensions)
Objective function
Maximise 𝒁 = 𝟑𝟎𝟎𝒙𝟏 + 𝟐𝟎𝟎𝒙𝟐
Constraints
𝟐𝒙𝟏 + 𝒙𝟐 ≤ 𝟒𝟎
𝒙𝟏 + 𝟑𝒙𝟐 ≤ 𝟒𝟓
𝒙𝟏 ≤ 𝟏𝟐
𝒙𝟏 , 𝒙𝟐 >0
Assumptions (wrap-up)
1. Deterministic problems are considered. In other words, all the
data are known with certainty
2. The objective function is linear
3. Constraints are also linear
4. Decision variables cannot take negative values
5. Additivity of resources: the total use of each resource, is
obtained by summing partial usages of this resource
6. Divisibility of decision variables: these variables can take
fractional values
7. Decision and uncontrollable variables are independent
8. Both the quantity of the resource employed and the objective
function value are proportional to the values of the decision
variables