An open API service indexing awesome lists of open source software.

https://github.com/zju-fast-lab/glpk_interface

An Easy-to-Use GLPK Interface for General-Dimension Linear Programming.
https://github.com/zju-fast-lab/glpk_interface

Last synced: about 2 months ago
JSON representation

An Easy-to-Use GLPK Interface for General-Dimension Linear Programming.

Awesome Lists containing this project

README

          

# GLPK_Interface

An Easy-to-Use GLPK Interface for General-Dimension Linear Programming.

# Description

linprog:
min cTx s.t. Ax<=b
input:
c: d*1 objective coeffs
A: m*d constraint matrix
b: m*1 constraint bound
ipm: use interior point method or simplex method
verbose: show details
output:
x: d*1 decision variables
return:
inf: No feasible solution or fail
-inf: Unbounded problem
real: minimum objective function

# Misc

GLPK is recommended for __median or large d__, i.e., the dimension of decision variable. For small dimension (d<=10), it is recommended to use [SDLP](https://github.com/ZJU-FAST-Lab/SDLP) or any other alg that enjoys linear complexity O(m) are better.