我正在寻找 C# 的线性规划求解器。换句话说,我正在寻找一个可以解决线性编程问题的 C# 库。
我需要一个易于使用的库(这样我就可以快速学习如何使用它),但如果它支持一些自动绝对值转换功能,那就太好了(这样我就不必自己编写转换程序)。重要的是,该库应该是免费的(不一定是开源的)。
良好的文档对我来说是巨大的优势。 10%-20% 的较差性能对于我的项目来说并不重要。
感谢您的回答
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
发布评论
评论(2)
Math.NET
阅读C# 线性代数库
编辑:查看http://en.wikipedia.org/wiki/Linear_programming#Solvers_and_scripting_.28programming.29_languages
这可能就是您想要的。说它适用于 .Net
http://lpsolve.sourceforge.net/5.5/
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/
您可以使用 WNLIB,但它是纯 C 语言,因此您必须将其包装在 DLL 库中,并且然后将其与 C# 一起使用。
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#.