8

I'm looking for a linear programming solver for C#. In the other words I'm looking for a library for C# that solves linear programming problems.

I need an easy to use library (so I can learn how to use it quickly), but it would be nice if it supported some features as automatic absolute values conversion (so I don't have to program the conversion myself). It is important that the library should be for free (not necessarily open source).

Good documentation is huge advantage for me. 10%-20% worse performance is not critical for my project.

Thanks for your answers

H H
  • 263,252
  • 30
  • 330
  • 514
Rasto
  • 17,204
  • 47
  • 154
  • 245
  • Duplicate: http://stackoverflow.com/questions/2969072/recommended-library-for-linear-programming-in-net – Guy L Apr 03 '13 at 11:26

2 Answers2

7

Math.NET

Read C# linear algebra library

EDIT: Check out http://en.wikipedia.org/wiki/Linear_programming#Solvers_and_scripting_.28programming.29_languages

This one might be what your looking for though. Says it works with .Net
http://lpsolve.sourceforge.net/5.5/

Community
  • 1
  • 1
Gage
  • 7,365
  • 9
  • 47
  • 77
  • 4
    That is question about Linear algebra. I'm looking for library specialized for Linear programming. – Rasto Jul 29 '10 at 17:53
  • If some of those have specialized featured for LP please by more specific - provide information about how easy is to use the interface, what would you recommend to use... – Rasto Jul 29 '10 at 18:00
2

You can use WNLIB, but it's plain C so you have to wrap it in a DLL library and then use it with C#.

raffel
  • 1,385
  • 10
  • 8