[SciPy-dev] Multiple constraints in fmin_cobyla

Nils Wagner nwagner at mecha.uni-stuttgart.de
Tue Nov 8 08:35:06 CST 2005


Hi all,

How can I apply multiple constraints (e.g. all design variables x \in
\mathds{R}^n should be positive) in fmin_cobyla ?

x_opt=optimize.fmin_cobyla(func, x, cons, args=(), consargs=(),maxfun=1200)

def cons(x):

    ?????

Nils
 




More information about the Scipy-dev mailing list