从 java 实现/调用 Excel Solver
我有一个 Java/JSF 中的应用程序,我需要做一些优化计算,就像 Excel Solver Add-in 所做的那样,一种选择当然是编写我自己的求解器实现,但我时间不够,所以我研究已经存在的库可以帮助我解决这个问题。
你能推荐一些图书馆吗?
已编辑
我还没有算法,但我知道我必须执行类似于 Excel Solver 中的操作 - 定义参数、目标和限制并计算最大/最小收入
I have an application in Java/JSF, I need to do some optimization calculations, like Excel Solver Add-in does, one option is certainly to write my own solver implementation, but I'm kind of short of time, so I'm looking into libraries that already exist that can help me with this.
Can you recommend any libraries?
EDITED
I don't have the algorithm yet, but I know that I will have to do similar actions like in Excel Solver - defining parameters, the goal and restrictions and calculation the MAX/MIN revenue
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不是一个完整的解决方案,但这可能会让您走上正轨(您正在寻找的是非线性参数优化器/求解器):
http://jfuzzylogic.sourceforge.net/html/index.html
我做了一些谷歌搜索,令我惊讶的是我无法立即找到一些东西..以下
是有关 Excel 特定算法的信息:http://support.microsoft.com/kb/82890 (同样,这不是一个解决方案,但对于任何做此类事情的人来说肯定是有趣的信息)。
这是实际编写 Excel 求解器的公司: http://www.solver.com/sdkplatform2.htm
不确定你的预算是多少,但如果时间很重要,那么授权它可能是有意义的(不确定他们是否有 Java 版本的 sdk)。
SO 上的一个相关问题:数值求解非线性方程
Not a complete solution, but this may get you on the right track (what you are looking for is a non-linear parametric optimizer/solver):
http://jfuzzylogic.sourceforge.net/html/index.html
I did some Googling, and I was surprised that I wasn't able to find something right away...
Here is info about Excel's specific algorithm: http://support.microsoft.com/kb/82890 (again, not a solution, but certainly interesting information for anyone who does this sort of thing).
And here's the company that actually wrote the Excel solver: http://www.solver.com/sdkplatform2.htm
Not sure what your budget is, but if time is of the essence, it may make sense to license it (not sure if they have a Java version of their sdk or not).
And a related question at SO: Solving nonlinear equations numerically