Thanks!!
I actually found out how to solve this problem I had. It is to pass the global "a" into the function. I am new in programming, so I thought only constant can be global in Fortran.
My question is in the area of optimization. Often one needs to find the desired "a". You start by...
Thank you, GerritGroot!!
I agree that I can make "a" and "x" together as a vector "X". But the question is that finally I am not going to minimize a two-dimensional function. Instead, I am going to fix "a" and maximize along the dimension of x. So this problem is more or less like a constrained...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.