using quasi-newton for maximizing a function
sham_IIT
05-11-2007, 04:09 AM
In the Quasi-Newton method dfpmin minimize the function....suppose there is a function to be maximized......where the changes should be done in dfpmin and lnsrch???.........i tried only by multiplying the max function by negative to make it min function.....but its not giving me proper answer.......can anybody please help....
thank you
sham_IIT
05-12-2007, 06:12 AM
Its urgent....please tell me.....i'm stuck with my problem.......by multiplying the max function with -1 to make it min func and then using dfpmin and lnsrch is not giving me answer....function which i've used is F = (sin(x1+1.5*pi))^2. the numerical recipes authors can you please help me.....or anybody tried such kind of problem? please help me..........i'm somehow unable to do.......:confused:
xilman
03-10-2008, 07:18 AM
Its urgent....please tell me.....i'm stuck with my problem.......by multiplying the max function with -1 to make it min func and then using dfpmin and lnsrch is not giving me answer....function which i've used is F = (sin(x1+1.5*pi))^2. the numerical recipes authors can you please help me.....or anybody tried such kind of problem? please help me..........i'm somehow unable to do.......:confused:Perhaps I'm missing something, but is not maximizing f(x) exactly the same as minimizing -f(x)?
Paul