用于解决单纯形问题的 swi prologs clpq 库的替代方案
抱歉,如果这是错误的地方。
我一直在使用 SWI Prolog 的 clpq 库来解决单纯形问题。我发现语法非常简单且富有表现力。它看起来像这样:
:- use_module(library(clpq)).
main(U, V, W) :-
{ 0 =< U, U =< 1,
0 =< V, V =< 1,
0 =< W, W =< 1
},
maximize(U + V - W).
无需转换为任何特殊格式,您只需输入约束和对象函数即可。很好,但是我注意到 clpq 有 bug 并且没有维护,所以我对它缺乏信心。
所以我想知道是否有人知道一些开源的东西并且同样简单,没有错误?到目前为止我发现的最好的是 GNU 线性编程套件。其他人用什么来试验单纯形?
Excuse me if this is the wrong place to ask.
I have been using SWI Prolog's clpq library to solve simplex. I find the syntax pretty simple and expressive. It looks like this:
:- use_module(library(clpq)).
main(U, V, W) :-
{ 0 =< U, U =< 1,
0 =< V, V =< 1,
0 =< W, W =< 1
},
maximize(U + V - W).
No need to convert into any special format, you just type your constraints and the object function. Great, but it has come to my attention that clpq has bugs and is un-maintained, so I lack confidence in it.
So I was wondering if someone knows something opensource and equally as simple, without bugs? The best I have found so far is the GNU linear programming kit. What are other people using for experimenting with simplex?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于存档来说,maxima (http://maxima.sourceforge.net/) 中的单纯形实现非常好。
For the archive, the simplex implementation in maxima (http://maxima.sourceforge.net/) is very good.