Hi All,
How can I minimize a function with varying parameters?
For example: f(x;a) is a function of x with parameter a, but a is updated each time I minimize f.
That is, given first a (a0), I minimize f, and I update a to a1 based on the first minimization. And then given a1, I minimize f again, and so on.
Is there any minimization subroutine can minimize f with this sort of changing parameters? I know matlab can do this easily by choosing which variable to minimize with other parameters given, but how this can be implemented in Fortran?
Thanks in advance!!
Jun
How can I minimize a function with varying parameters?
For example: f(x;a) is a function of x with parameter a, but a is updated each time I minimize f.
That is, given first a (a0), I minimize f, and I update a to a1 based on the first minimization. And then given a1, I minimize f again, and so on.
Is there any minimization subroutine can minimize f with this sort of changing parameters? I know matlab can do this easily by choosing which variable to minimize with other parameters given, but how this can be implemented in Fortran?
Thanks in advance!!
Jun