Preview

Algorithm to Calculate Basic Feasible Solution using Simplex Method

Satisfactory Essays
Open Document
Open Document
408 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Algorithm to Calculate Basic Feasible Solution using Simplex Method
Algorithm to Calculate Basic Feasible Solution using Simplex Method

Abstract:
The problem of maximization/minimization deals with choosing the ideal set of values of variables in order to find the extrema of an equation subject to constraints. The simplex method is one of the fundamental methods of calculating the Basic Feasible Solution (BFS) of a maximization/minimization. This algorithm implements the simplex method to allow for quick calculation of the BFS to maximize profit or minimize loss, depending on the requirement. It provides an intuitive user interface which can be used to provide all the input and then performs the required calculations, presenting the results in a clean format.

Methodology:
The application will take the equations from the user in an easy-to-use GUI. There will be limits to the number of terms that each equation can be composed of and the number of constraint equations.
Once the equations have been input, the algorithm appends the temporary variables onto the constraint equations. It then creates the table. The following table shows the format of the table that will be generated.

CB
Basis
X1
X2
S1
S2
S3 b θ



















This will be used to calculate Zj and then Cj-Zj. The BFS will now be checked to see if it’s the absolute extrema for the problem. If not, the process will be repeated in order to find the true extrema values.

Program Details:
The program will be written in Python and will use wxPython for GUI construction. This will allow it to be run on both UNIX based and Windows based PCs.
On starting the application, the user will be presented with a GUI where the equations can be entered. On clicking the submit button, the table will be displayed with step-by-step processing.

Algorithm:
1) Read in the values in the text box to respective variables.
2) Append slack variables to each equation.
3) Take column of largest coefficient and divide b by the

You May Also Find These Documents Helpful

  • Powerful Essays

    MAT 117 Appendix F.

    • 563 Words
    • 3 Pages

    Answer the following questions. Use Equation Editor to write mathematical expressions and equations. First, save this file to your hard drive by selecting Save As from the File menu. Click the white space below each question to maintain proper formatting. Show your work for full credit.…

    • 563 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    OPRE/411 Week 4

    • 379 Words
    • 2 Pages

    1. Use Solver in EXCEL to solve each of the following linear programming problems. To do so,…

    • 379 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    2. The program will display a series of screens prompting the user to enter the item name or number, price and quantity.…

    • 498 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Assignment 3

    • 1286 Words
    • 10 Pages

    How this table was created? The constrains and other valuable information that was given by the question and with manual analysis was inserted into the Excel spreadsheet in an appropriate format. The Excel Solver function was utilized in order to get the solutions.…

    • 1286 Words
    • 10 Pages
    Good Essays
  • Powerful Essays

    Nt1310 Unit 1 Assignment 1

    • 2017 Words
    • 9 Pages

    * Uses the formal written algorithm to solve addition and subtraction.DS2.1- Gathers and organises data, displays data using tables and graphs, and interprets the results. * Interprets information presented in a given column graph or picture graph.WMS2.4- Checks the accuracy of a statement and explains the reasoning used. * Compares tables and graphs constructed from the same data to determine which is the most appropriate method of display is. Reasoning…

    • 2017 Words
    • 9 Pages
    Powerful Essays
  • Powerful Essays

    Nt1110 Unit 3 Assignment

    • 479 Words
    • 2 Pages

    Computer operating systems as far back as early Unix have included interactive calculator programs such as dc and hoc, and calculator functions are included in almost all PDA-type devices (save a few dedicated address book and dictionary devices).…

    • 479 Words
    • 2 Pages
    Powerful Essays
  • Satisfactory Essays

    Busn312 Hw3A

    • 727 Words
    • 3 Pages

    Linear programming problems have a.|linear objective functions, non-linear constraints.| b.|non-linear objective functions, non-linear constraints.| c.|non-linear objective functions, linear constraints.| d.|linear objective functions, linear constraints.| ____C 7. The first step in formulating a linear programming problem is a.|Identify any upper or lower bounds on the decision variables.| b.|State the constraints as linear combinations of the decision variables.| c.|Understand the problem.| d.|Identify the decision variables.| e.|State the objective…

    • 727 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    a. Using solver to solve the embedded model in the Excel sheet or by trying different values for h the optimum value will be obtained as “h=4”…

    • 956 Words
    • 4 Pages
    Good Essays
  • Better Essays

    Imp 2 Cookies Cover Letter

    • 1219 Words
    • 5 Pages

    In these problems, we had to identify variables, constraints, and make equations that expressed them. In most cases, the variables represent a value for a certain item, for example in the unit problem, the variable, p, could represent the number of dozens of…

    • 1219 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    rsm219 2012 term test2

    • 1693 Words
    • 7 Pages

    Please print your name, student number day and time of your tutorial in the space provided.…

    • 1693 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    04

    • 4586 Words
    • 34 Pages

    Constraints are used to ensure the accuracy and integrity of the data contained in the database.…

    • 4586 Words
    • 34 Pages
    Satisfactory Essays
  • Good Essays

    Intro to Computers

    • 609 Words
    • 3 Pages

    | Allows users to organize data in rows and columns and perform calculations and recalculate when data changes.…

    • 609 Words
    • 3 Pages
    Good Essays
  • Good Essays

    * The first row (or step) should always be to copy the entire problem into the “Calculations” column or write out the important information. You can use copy and paste.…

    • 2403 Words
    • 10 Pages
    Good Essays
  • Satisfactory Essays

    In order to write this program, two variables, ROWNUM and COLUMNNUM, will be used with nested repetition loop to complete the necessary calculations. ROWNUM will be used in an outerloop and contain numbers between1-10 and COLUMNNUM will be used in an innerloop and contain numbers between 1-10. For each iteration of the outerloop, the inner loop will be executed 10 times and the product of ROWNUM*COLUMNNUM will produce the multiplication table of ROWNUM. The ROWNUM and COLUMNNUM variables will be incremented by 1in each iteration of loops. The new line will be printed to display the multiplication table for each value of ROWNUM in a separate line.…

    • 345 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Protac

    • 827 Words
    • 4 Pages

    1. 2. 3. 4. 5. Solver y programación lineal El modelo Optimización Informes en excel Ejercicios…

    • 827 Words
    • 4 Pages
    Good Essays