120 likes | 155 Views
Literature Review – An FPGA Implementation of the Simplex Algorithm. Yuta Toriyama. April 29, 2011. Optimization of a linear objective function, given a set of linear constraints Maximize: Subject to: Ex:. Linear Programming. Simplex Algorithm. 1. Are we optimal? If so, we are done
E N D
Literature Review – An FPGA Implementation of theSimplex Algorithm Yuta Toriyama April 29, 2011
Optimization of a linear objective function, given a set of linear constraints Maximize: Subject to: Ex: Linear Programming
Simplex Algorithm 1. Are we optimal? If so, we are done 2. Select Entering Basic Variable Choose the nonbasic variable that increases the objective function value the fastest 3. Select Leaving Basic Variable Minimum Ratio Test 4. Update Constraint Equations To reflect the new basic feasible solution 5. Repeat
Simplex Tableau 1 2 3
Opportunities for Parallelism Intra-Iteration Pivoting operation to update Simplex tableau Subtractions conducted in parallel Selection of entering variable Tree structure to find a minimum Ratio test Tree structure to find a minimum Inter-Iteration Stream in multiple problems through pipeline
Architecture Divided up into stages within the Simplex method Stream in multiple problems through pipeline
FPGA Specs • Virtex 4VFX140 • LUTs = 2 x Slices • Comparable size to FPGA on ROACH (Virtex 5SX95T)
Implementation Results Up to 751 variables & constraints Runs @ ~100MHz (w/ double-rate memory subsystem) Problem size, parallel block size, wordlengths are all parametrized “Consumes between 11% and 84% of the 4VFX140”
Comparison Against Software Max 20x (median 9.8x) speedup over commercial software package (CPLEX) running on 3.4GHz PC w/ 1GB RAM Assumes that software and hardware takes the same number of simplex iterations - bad assumption
Summary • Transformation into standard form LP not considered • Minimizing objective function • Finding initial basic feasible solution • Etc… • Parallelism limits problem size and application space to multiple smaller LPs solved simultaneously • The takeaway - very difficult to implement Simplex algorithm in hardware while taking advantage of potential speedup techniques over software
References Bayliss, S., et. al. “An FPGA Implementation of the Simplex Algorithm,” Field Programmable Technology, IEEE International Conference on, pp.49-56, Dec. 2006. Chinneck, J.W. “Practical Optimization: A Gentle Introduction,” 2010.