No project description provided
Project description
Simplex
A python package that solve linear programming problems using the simplex method.
Features:
- The Problem is input into the program by a file containing python expression.
- Solves both min and max problems(duh!).
- Uses the big M method to find a basic feasible solution when there are none available in the original program.
- Handles adding slack variables to convert the problem into standard form.
- Uses the lexicographic rule to prevent ending up in a loop due to degenerate extreme points.
Run Help to get a list of available commandline options.
usage: simplex.py [-h] [--equs EQUS] [--slack SLACK] [--aux AUX] [--iter ITER]
[--min] [--verbose] [--debug] [--numba]
options:
-h, --help show this help message and exit
--equs EQUS, -e EQUS the file containing the equations
--slack SLACK, -s SLACK
slack variable base name, names are cretedby adding a
number to the string
--aux AUX, -a AUX aux variable base name, names are cretedby adding a
number to the string
--iter ITER, -i ITER maximum number of iterations
--min, -m determines whether its a minimization problem.if not,
its a maximization problem
--verbose, -v whether to print output verbosely
--debug, -d whether to print debug info
Example usage:
./simplex.py -e ./tests/equ6.py -a xa -v -s z -m
TODO
- Use numba
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dsimplex-0.1.1.tar.gz
(21.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dsimplex-0.1.1-py3-none-any.whl
(33.0 kB
view details)
File details
Details for the file dsimplex-0.1.1.tar.gz.
File metadata
- Download URL: dsimplex-0.1.1.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.5 Linux/5.15.50_1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fce8226f571b306d8d743e3210c7976e7214babe05c56f72aa9748097c12c80
|
|
| MD5 |
a6ad104ff1fb2e23f7a332743bab658a
|
|
| BLAKE2b-256 |
55483cd54d0341052d5b30a7c733dba79ee170e53462bad5ea7d0d8d379963fd
|
File details
Details for the file dsimplex-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dsimplex-0.1.1-py3-none-any.whl
- Upload date:
- Size: 33.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.5 Linux/5.15.50_1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21ce5c34b0b1e6dd589fcd08572be5f046984772ba55ae334fbbb1d7ee931640
|
|
| MD5 |
23dabfd39bd64e761ad9b85b9704a1be
|
|
| BLAKE2b-256 |
a589821c5405f6ff61193e466c501d81f11e1ff5aadd398859652e71c0dd8ff3
|