πŸ—οΈ Ξ˜ΟΟ΅Ξ·Ξ Ξ±Ο„Ο€πŸš§ (under construction)

Dual & Simplex
Consider the following linear program: maxΒ Β 4x1+x2+5x3+3x4subjectΒ toΒ Β x1βˆ’x2βˆ’x3+3x4≀1Β 5x1+x2+3x3+8x4≀55Β βˆ’x1+2x2+3x3βˆ’5x4≀3Β x1,x2,x3,x4β‰₯0
  • Write the dual of this linear program. Show your steps.
  • Use the simplex algorithm to solve the original linear program. Show each step of the simplex algorithm as well as the final result.
Largest Disk in a Polygon

A convex polygon P in ℝ2 can be specified as the intersection of halfspaces of the form aix+biy≀ci. Give a linear program that finds a circle of maximum radius that lies within P.

Let the i-th side of P lie on a line β„“i with equation y=aix+bi,i=1,2,...,n, and let us choose the numbering of the sides in such a way that the first, second, up to the k-th side bound P from below, while the (k+1)-st through nth side bound it from above. Define your own variables if needed.

You can assume that it is always feasible to have the circle in the region enclosed by the lines, i.e. the polygon enclosed by the lines are given to you for free, so you don't have to use linear constraints to describe the polygon or figure out which half-space each line specifies. It is "that" polygon given to you

Simple Scheduling with Prerequisites

You are given n jobs with a list of durations d1,d2,…dn. For every pair of jobs (i,j) you are given a boolean pi,j such that if it is true then job i must finish before job j can begin, meaning that job i is a pre-requisite for job j

Your goal is to find non-negative start times s1,…,sn for the jobs such that the total time of all jobs is minimized while ensuring that the prerequisite constrains are met. Write a linear program to solve this problem.

Binary Integer Linear Program
An optimization problem with a linear objective, linear constraints and each variable taking the value 0 or 1.
Logical Operators
Suppose you are writing down a binary integer linear program. Three of the binary variables in your program are x,y,z∈{0,1}, show how to encode the following relations between x,y,z using linear constraints:
  • z=x∧y
  • z=x∨y
  • z=Β¬x
where 0,1 represent false and true respectively.
Cargo Plane
A cargo plane can carry a maximum weight of 100 tons and a maximum volume of 60 cubic meters. There are three materials to be transported, and the cargo company may choose to carry any amount of each, up to the maximum available limits given below.
  • Material 1 has density 2 tons/cubic meter, maximum available amount 40 cubic meters, and revenue 1,000percubicmeter.</li><li>Material2hasdensity1ton/cubicmeter,maximumavailableamount30cubicmeters,andrevenue1,200 per cubic meter.
  • Material 3 has density 3 tons/cubic meter, maximum available amount 20 cubic meters, and revenue $12,000 per cubic meter.

  • Write a linear program in standard form that optimizes revenue within the constraints.
  • Explain what the dual of a linear program is and why one may wish to solve the dual formulation rather than the primal formulation.
  • Write the dual formulation of the program in part (a). The result does not need to be in standard form for the dual in that you are not responsible for remembering the direction of inequalities in the standard form for dual formulations.