0

我希望在 LpSolve (http://lpsolve.sourceforge.net/5.5/sensitivity.htm) 中启用灵敏度。

文档表明您通过将 -S4 传递给命令行来启用敏感性。在 R 中,您可以在 lpsolve() 函数调用中传递 compute.sens=true。

但是,我使用的是 Java API,我看不到这样的设置选项。

我确实看到了一个 setSense(布尔最大化)函数。是这样吗?

4

1 回答 1

0

Hi I am also struggling with LPSolve, but I did find some useful code, that included the code line

lp.setSense(true);

lp is the name of the var assigned to the makeLP command.

I however do not know how to set the degree as stated in the docs...

I hope this answers your question.

于 2012-10-18T21:41:40.827 回答