/lpr-solver-tool

lp simplex solver tool that displays each tableau written in c++

Primary LanguageC++MIT LicenseMIT

Lpr Solver Tool

⚠️Archived in favour of Linear Programming Prototype Python Apps⚠️

lpr solver tool

Description

This is a simple LP Simplex solver tool that makes use of the Primal Simplex and Two-Phase methods, displaying each step and tableau built using C++ and the Raylib game development library for the app backend. For the GUI frontend, Dear ImGui is utilized. The project is configured with CMake and includes a build option for the web using Emscripten.

Use The tool

Web Version

Use the tool online linear Programming Solver tool

Windows

Download linear Programming Solver tool

Linux

Download linear Programming Solver tool

Building from Source

Prerequisites

Building for Desktop

## Clone the repository
git clone https://github.com/BrettWilsonBDW/lpr-solver-tool

## Navigate to the project directory
cd lpr-solver-tool

## Create a build directory
mkdir build

## Navigate to the build directory
cd build

## Run CMake
cmake -DCMAKE_BUILD_TYPE=Release ..

## Build the project using Visual Studio (you can also use Ninja or MinGW)
cmake --build . --config Release

## Run the tool
.\Release\lpr-solver-tool.exe
## or in bash
./lpr-solver-tool

Building for the Web

## Ensure Emscripten is installed and configured:
## on windows
cd C:\
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk.bat install latest
./emsdk.bat activate latest --permanent

## on linux
cd /usr/local
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest --permanent

## add emsdk to path


## Navigate to the project directory
cd lpr-solver-tool

## Run the build script for the web
.\build_for_web.bat 

Acknowledgments