Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'findminimum' topicStudent Support Forum > General > "findminimum"

Next Comment >Help | Reply To Topic
Author Comment/Response
Christian
11/30/02 3:02pm

Hello,

Sorry for the basic question, but I couldn't find any example in the FAQ (or maybe more likely, I didn't understand it)

I want to minimize a function of the kind

f:=(const-Sum[x[i],{i,1,many}])^2

The function is actually more complicated than this but that is not important for the question. I can calculate the gradient and each derivative will contain the Sum[x[i],{i,1,many}] -part. How can I tell FindMinimum in the gradient function definition not to evaluate this sum again and again but to use the summation already known from the function evaluation?

Regards
Christian

URL: ,

Subject (listing for 'findminimum')
Author Date Posted
findminimum Christian 11/30/02 3:02pm
Re: findminimum Forum Modera... 12/07/02 11:45am
Next Comment >Help | Reply To Topic