Python + FuncDesigner错误纠正

时间:2013-10-27 15:01:30

标签: python

from FuncDesigner import *
a, b, c = oovars('a', 'b', 'c')
f = [2*a+3*b-2*c+5, 2*a+13*b+15, a+4*b+2*c-45]
linSys = sle(f)
r = linSys.solve()
A, B, C =  r(a, b, c)
maxRes = r.ff 

当我在终端中执行此代码时,它显示错误

"TypeError: formDictOfFixedFuncs() takes exactly 4 arguments (3 given)"

我不知道该怎么办 请帮帮我

1 个答案:

答案 0 :(得分:0)

适合我(我有最新的svn快照v 0.51 +)

  
    
      

A,B,C       (24.999999999999996,-4.9999999999999991,19.999999999999996)       maxRes       7.1054273576010019e-15