Coder Social home page Coder Social logo

simplex_2phase_or's Introduction

Simplex_2Phase_OR

Simplex method and Two-phase method calculators written in Matlab.Each has it's own Graphic user interface.

Simplexe Method

  • This method solves problems of this type :

      max(min)    f= ct * x
    
     st :  Ax <= b (system of linear inequations)
             x>=0 
    

How to run the code :

  • Run the graphic interface

  • Hit the start button.

  • The interface takes the following inputs:

      - matrix A : coefficients of inequality constraints (<= Only!!).
       We assume that A has linearly independent rows (so m ≤ n).
    
      - vector b: maximums for each of the inqualities .It must include only postive values to ensure an initial basic feasible solution for that method .
    
      - vector f : coefficients of the optimization function.
          
      !!Then u choose the button adapted to your problem.
    

The output includes :

  • The solution vector X.

  • The optimal value of the objective function (Fonction objective).

  • The last simplex array.

Two Phase Method

  • This method solves problems of this type :

       max(min)    f= ct * x
    
           st :   Ax <= b 
                  Aeq*x =beq
                  x>=0 
    

How to run the code :

  • Run the graphic interface (interfaceGraphique2Phases1)

  • The interface takes the following inputs:

      - matrix A : coefficients of inequality constraints (<= Only!!).
    
      - vector b: maximums for each of the inqualities .
      
      - matrix Aeq : coefficients of equality (=) constraints.
    
      - vector beq: equal value for each of the equalities .It must include only positive values to ensure an initial basic feasible solution.
    
      - vector f : coefficients of the optimization function.
      
      - A textbox : to specify the nature of the optimization whether max (for maximization)  or min (for minimisation).
    

The output includes :

  • The solution vector X.

  • The optimal value of the objective function (Fonction objective).

  • The last simplex array.

Irregular cases taken into consideration

  • Unbounded solutions:

    With the Simplex method, we recognize this problem when the incoming variable does not admit any limit on its input value, that is to say that all the quantities aij are negative or zero.

  • The problem is not feasible:

    With the Simplex method, we recognize that the problem is impossible if one or more artificial variables are present in the base in the optimal Simplex table, which means that the solution given by this table is not really feasible.

simplex_2phase_or's People

Contributors

hafsatata avatar

Stargazers

Mohammed AHBARI avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.