Geometry and Linear Programming Basics Flashcards
(61 cards)
What are the 3 components of optimisation problems:
Decisions: variables we can change to influence the outcome
Constraints: we have to abide by
Objective: typically want to maximise or minimise
What is a deterministic model?
A model where we have all the information.
How are decision variables typically labelled in optimisation problems?
x1, … xn E R (real numbers)
How are objective functions typically labelled in optimisation problems?
f(x1, …xn): R^n –> R
function takes several real numbers and retruns a real number
How are constraints typically labelled in optimisation problems?
typically labelled gi(x1, …, xn) <= ci
gi(x1, …, xn) : Rn → R where 1 <= i <= m
If you choose two vertices that are non parallel what will you identify?
A corner in your feasible region, which may give the optimal solution depending on if your minimising or maximising in the objective
How can you find the optimal solution in a feasible region?
How is this a valid method, when the feasible region has an infinite number of points/the problem is continuous:
- By going through all the vertices of the polyhedron/polytope in the feasible region.
- Even though this is a continuous problem, this is a valid method because the number of vertices is discrete (it becomes a discrete problem.
What are the definitions of decision variables, objective function and constraints for a Linear Optimisation Problem : LP?
Variables: x1,…, xn
Objective: c1x1 + c2x2 + … + cnxn
where x is a decision variable, c is a scalar constant
Constraints: Ax <= b
- Can be solved in polynomial time
What is it called if we have an LP where the decision variables can only be integers:
ILP: Integer Linear Programming
- decision variables: x1,…, xn ∈ Z
- this is NP-complete
What is a property of LPs?
They have local and global optimums
What is a global optimum?
A point of a function: f(x*) <= f(x) for all values of x
- if we’re minimising, it’s a point that has the minimum value of the function f across the entire domain of f
What is a local optimum?
A point of a function: f(x’) <= f(x) for all x with |x’-x| <= e
- where there’s no better solution in the immediate neighbourhood. So for some value ε, if point x is within the distance of ε it’ll be >= x’.
What is the class of problems where every local minimum is a global minimum?
Convex optimisation problems
What is the definition of a convex set?
- A set is a convex set if all the points on the line connecting any two points in the set are also in the set
- the connecting line is known as a line of convex combinations, expressed as for all (x, y ∈ X), (0 ≤ λ ≤ 1) → λx + (1 − λ)y ∈ X
What is a convex function?
- A convex function is where the domain is a convex set, and the function satisfies:
For all (x, y ∈ X) and (0 ≤ λ ≤ 1) where:
f(λx + (1-λ)y) ≤ λf(x) + (1-λ)f(y)
It’s a convex function if for any two points in the domain and λ is between 0 and 1, if we take the function value at the convex combination of x and y, this has to be less than or equal to the convex combination of the function values for x and y.
How can you tell if a function is convex or concave?
- A convex function curves upwards: u, so a chord between two points on the function will be larger or equal to the convex function
- A concave function curves downwards: n, so a chord between two points on the function will be less than or equal to the convex function
How would we know if a function f is concave ?
If -f is convex (curves upwards)
What is convex optimisation?
- Where the objective function f is convex and the set of feasible solutions X are convex
- for these problems every local optimum is a global optimum
What is the proof that in convex optimisation problems, every local optimum is a global optimum:
Prove by contrapositive:
- if a convex function exists where there’s a local f(x’) and global f(x) optimum, we’d get a chord between the two points.
- as it’s a convex function, we can represent the two points as convex combinations on the chord as f(λx + (1-λ)x’) and the chord as λf(x*) + (1-λ)f(x’), however as the function line is above the chord it doesn’t satisfy the definition of a convex function
If you have an LP where all the constraints are in the form Ax ≥ b, what can you write this as:
a matrix/vector multiplication of the constraints
Why do we like to have LPs in normal form?
It’s restrictive and therefore easier to work with
Describe the features of a general form LP:
- objective =: min or max c^T*x
where x = (x1,x2,…xn) - x is a column vector (matrix of n rows and 1 column)
- c is a cost vector, which we transpose, so we can perform matrix multiplication
- 3 classes of constraints: greater equal, equality and lesser equal
- aiTx ≥ bi : ai is a vector of coefficients, multiplied by the decision vector x, which has to be greater than constant value bi
also have sign constraints on decision variables x1 >= 0
What are variables that are unrestricted called?
free variables
Describe the features of a canonical form LP:
- more restricted version of a general LP
- objective function stays the same
- constraints can only be greater than or equal constraints
- all variables must be non-negative