SkillAgentSearch skills...

LinearSolver

Solve linear programming problems by vanilla simplex and dual simplex.

Install / Use

/learn @Sxy623/LinearSolver
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

LinearSolver

Compile

Use CMake to compile.

Type in the following commands:

cd src/
mkdir build
cd build/
cmake ..
make

Usage

In order to compile a specific solver (e.g. simplex method using big-M), uncomment the corresponding macro defined in utility.h.

#define SIMPLEX_BIG_M
//#define SIMPLEX_DOUBLE_STAGE
//#define DUAL

Test

Enter the data/ directory first.

For the validation of simplex method:

  • bash simplex_test.sh [PATH TO SIMPLEX SOLVER]

    e.g. bash simplex_test.sh ./simplex_big_m.exe or bash simplex_test.sh ./simplex_double_stage.exe

For the validation of dual method:

  • bash dual_test.sh [PATH TO DUAL SOLVER]

    e.g. bash dual_test.sh ./dual.exe

After the execution of each script, a test log will be generated in current directory, and the complete output of the program is shown in stdout.

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated3y ago
Forks7

Languages

C++

Security Score

55/100

Audited on Aug 19, 2022

No findings