I'm trying to minimize a quadratic energy with linear equality constraints in Maple. Currently I'm issuing things like:
with(Optimization):
p := (t) -> c3*t^3 + c2*t^2;
m := Minimize(int(diff(p(t),t)^2,t=0..1),{eval(p(t),t=1)=1,eval(diff(p(t),t),t=1)=0});
but this seems to give me a numerically optimized solution complete with floating point error:
m := [1.19999999999997, [c2 = 3.00000000000000, c3 = -2.00000000000000]]
(The correct answer is m:= [6/5,[c2=3,c3=-2]])
Is there a way to compute the solution symbolically using maple?
I'd rather not have to work out the Lagrangian myself. I'm hoping for a flag like symbolic=true.