2019-12-12 18:44:52 +0200 | received badge | ● Notable Question (source) |
2018-03-20 22:13:56 +0200 | received badge | ● Popular Question (source) |
2012-04-09 19:14:19 +0200 | received badge | ● Editor (source) |
2012-04-09 18:45:16 +0200 | answered a question | Minimization with symbolic calculations in a function I am trying to expand this solution to multiple variables, but I am having no success. What is the syntax for the problem below? I am unsure of the syntax for the minimize_constrained function, and the syntax in the return statement. Also, is there a way to add a constraint to a value returned by the function? In this case Vt? I would like to minimize Vs while forcing Vt to equal the variable Target. |
2012-04-08 17:45:14 +0200 | answered a question | Minimization with symbolic calculations in a function Thanks! That was the problem. I also moved the derivative out of the optimization loop. a,b,c,z,dy=var('a b c z dy') y=5*c^3 dy=y.diff(c) def f(x): minimize_constrained(f, [(-10,10)],[9]) |
2012-04-07 01:15:58 +0200 | asked a question | Minimization with symbolic calculations in a function I am a new Sage user, and I am unable to get the constrained minimization function working if I include a symbolic differentiation. The code below works fine This code gives an error Any assistance would be greatly appreciated. |