Giter Site home page Giter Site logo

eppica / simplex-method Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 26 KB

This project implements the Simplex method to solve the Travelling Salesman Problem.

License: MIT License

Python 100.00%
python simplex bigm tsp the-travelling-salesman-problem linear-programming tsp-problem simplex-algorithm

simplex-method's Introduction

πŸ“‰ Simplex-Method

About

This project aims to solve the Travelling Salesman Problem for the Linear Programming class using an algorithm that implements the Simplex method with the Big M variation.

Technologies

Requirements

To run and edit the project, be sure to have installed in your computer the following softwares:

After that, you'll need to clone this repo:

git clone https://github.com/eppica/Simplex-Method.git

Setup

Inside the project directory, create a virtual environment (venv)

At the cmd, type:

python -m venv ./venv

After that you should see a venv directory.

To run commands using venv, go to Scripts directory inside venv:

Simplex-Method
β”‚   main.py
β”‚   ...
└─── πŸ—€ venv
     └─── πŸ—€Scripts
          β”‚   activate

To use the virtual environment, run:

activate

Then, using the virtual environment, install the project requirements:

pip install -r requirements.txt

That will prevent you to install the libs in the local computer, and it will be available only on the project scope.

Editing

Whenever you install a new library, you need to update the requirements.txt file.

At the cmd, run:

pip freeze > requirements.txt

Running

venv:

To see the project running, inside the virtual environment at cmd, run:

python main.py

βš–οΈ License

MIT License

simplex-method's People

Contributors

lbeghini avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

simplex-method's Issues

Implement Two Phase method

Implement the Two Phase method and update the initial screen to allow the user to choose between Big M and Two Phase.

The parser also needs to be updated to outputs two phase base variables

Implement initial screen

When the program starts, it must ask the user if he wants to calculate from an problem from the problems folder, or create a new problem from input.txt file.

  • The user must choose between:
[1]: Choose problem
[2]: Create problem from input

Choose problem must output all problems found in the problems folder;
Create problem must find the input.txt;

Output BigM changes in .xlsx

The current output.xlsx does not show the changes in the Z function made by BigM method.

Add to the .xlsx the changes made by BigM.

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.