/Lpp-Solver

A C++ which can solve a linear programming problem through graphical method.

Primary LanguageC++MIT LicenseMIT

LPP Solver

I created this for an assignment of Course MAN-010.It solves the LPP(Linear Programming Problem) in two variables using the graphical method.

It uses the graphics.h library of C to create graphics.It supports constraints of "less than equal to" type only.And gives the maximum value of the objective function and also highlights the feasible region!

How to run?

  • Go through this blog to install graphics.h.
  • Run this command g++ main.cpp -o YO -lgraph.
  • And ./Yo

How to give Input?

  • Input the coefficents of objective function.
  • Input the number of constraints.
  • Input the coefficents of constraints.

Screenshot :

alt text

To Do

  • Add suport of "greater than equal to" type constraints.