views:

1835

answers:

3

I need the robust C++ source code of the simplex algorithm (is a popular algorithm for numerical solution of the linear programming problem).

Please, no links to wikipedia. I need good source code in C++, using templates, clear user-friendly names and work very well.

Preferably algorithm must check the unstable floating-point calculation.

+5  A: 

This one is a C++ library: http://www.zib.de/Optimization/Software/Soplex/soplex.php. But the license has some restrictions regarding commercial use.

This one has a liberal license, but is in C: http://aldebaran.devinci.fr/~cagnol/promotion2007/cs302/gsl/multimin/simplex.c.html Probably you can write a thin wrapper.

Vijay Mathew
+4  A: 

The Computational Infrastucture for Operations Research (COIN-OR) provides open-source software for the operations research community, especially around numerical optimization. The CLP project, managed by John Forrest from IBM, implements the simplex algorithm for linear programming in C++.

Julien
Great resource there, thanks!
patjbs
+2  A: 

Consider using C library lpsolve. It is not in C++, but it is the most stable and famous free linear programming solver based on the simplex method.

Kirill V. Lyadvinsky