I am trying to optimize a simple function that takes a parameter as an argument. Something like:
a=2 f(x)=-(x-a)^2 optimize(f) Is there any way to do this? I have played quite a bit with optimize without success. Thanks a lot Mathieu
Mathieu Taschereau-Dumouchel Tue, 08 Jul 2014 11:52:32 -0700
I am trying to optimize a simple function that takes a parameter as an argument. Something like:
a=2 f(x)=-(x-a)^2 optimize(f) Is there any way to do this? I have played quite a bit with optimize without success. Thanks a lot Mathieu