1

I've tried many ways but I could not find a way to efficiently minimize a function in python (preferable in sympy) of the form

Min f(x,y,z) s.to g(x,y,z)>k

Could somebody help me out?

Nonlinear
  • 11
  • 1
  • Examples of what you've tried so far would help. – Laur Ivan Sep 16 '15 at 14:41
  • I donot know any optimization methods in python. So given two three variable function f and g I've defined 3 for loops like for x in range(), for y and for z and checked whether g(x,y,z)>k if so I defined a variable m representing the minimum and updated m continuously. – Nonlinear Sep 16 '15 at 14:48
  • @LaurIvan If you know a manual or something let me know because the manual of sympy seems not enough to understand to solve these problems – Nonlinear Sep 16 '15 at 15:01
  • 1
    possible duplicate of [how to minimize a function with discrete variable values in scipy](http://stackoverflow.com/questions/17864474/how-to-minimize-a-function-with-discrete-variable-values-in-scipy) – user Sep 17 '15 at 08:13

0 Answers0