Skip to content

optimization-team/interior-point

Repository files navigation

Programing task 2, "Introduction to optimization"

How to test the program on your LPP

To test the program on your input, input the LPP into on of the files in inputs folder.

  • Enter objective value coefficients, separated by space, in one line.
  • Enter coefficients of constraints, line by line.
  • Enter right-hand side values of constraints.
  • Enter number of digits after decimal point (precision).
  • Enter initial solution for interior point algorithm (with slack variables!)

Specify the name of the file from inputs folder you want to use as an argument in parse_file() function in main.py, line 20. Then, run the main.py file.

Check, if the results are what you expected.

Structure of the project

Folder, containing 7 different inputs, on which the program was tested.

File containing Exceptions which Simplex and Interior Point classes can raise.

File containing a Function class. This class is used to store the objective function for the LPP.

File containing the Interior Point method. Contains the following classes:

  • Solution - class, used to store the solution for the LPP.
  • InteriorPoint - class, responsible for calculating the Interior Point method.

File containing the Simplex method. Contains the following classes:

  • SimplexSolution - class, used to store the solution for the LPP.
  • Simplex - class, responsible for calculating the LPP using the Simplex method.

File containing functions parsing input into format, needed for the Simplex class.

File, from which the program can be tested on the input from certain file from inputs folder.

Information about assets needed for the program to be executed correctly.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages