简体   繁体   English

从java实现/调用Excel Solver

[英]implement/invoke Excel Solver from java

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. 我有一个Java / JSF的应用程序,我需要做一些优化计算,比如Excel Solver Add-in,一个选项肯定是编写我自己的求解器实现,但我有点时间,所以我是寻找已经可以帮助我的库。

Can you recommend any libraries? 你能推荐任何图书馆吗?

EDITED 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 我还没有算法,但是我知道我将必须执行类似Excel Solver中的类似操作-定义参数,目标和限制并计算最大/最小收入

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 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). 这是有关Excel的特定算法的信息: http : //support.microsoft.com/kb/82890 (同样,这不是解决方案,但对于从事此类工作的人来说当然是有趣的信息)。

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). 以下是实际编写Excel解算器的公司: http//www.solver.com/sdkplatform2.htm不确定您的预算是多少,但如果时间紧迫,那么许可它可能是有意义的(不确定是否他们有自己的sdk的Java版本)。

And a related question at SO: Solving nonlinear equations numerically SO上的一个相关问题:用数值方法求解非线性方程组

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM