Limiting the sensitivity of initial guess in NLS Optimizati​on/lsqnonl​in/fmincon

조회 수: 9 (최근 30일)
Hello everyone... If you'd like to take a look at my code/data I have it attatched here, but certainly not necessary.
For a little bit of background, I am using NLS functions in matlab, namely solvers lsqnonlin and fmincon, in combination with multistart and globalSearch (my models with nonlinear constraints), to fit a data set to hyper-elastic constitutive models. These are models that range from 1 to 6 parameters that I am solving for.
My optimizations are working perfectly, the only slight problem is sensitivity to the initial guess. I figured that the use of MultiStart/GlobalSearch would help to decrease this sensitivity tenfold, which it does, but does not completely eliminate the problem at hand. I was wondering if you all had any ideas on how I could completely eliminate sensitivity to initial guess (running all possible starting points, although not possible, is the only solution that comes to my mind). As of now I am using default settings in both MultiStart and GlobalSearch, and even fmincon and lsqnonlin(using ub,lb, and nonclon in some models), perhaps I could tweak these settings? Essentially my question is how can I maximize the chances that I am finding the global minimum rather than a number of local minima.
In summary, what do you all think I could implement in order to make sensitivty to initial guess as small as possible.
(Another idea of mine, I have noticed that plugging in previously calculated answers for the initial guess leads to decreasing fvals in consecutive trials so, perhaps running a for loop that swaps the calculated answer to the initial guess)
Let me know what you all think of this.... not looking for anything specific but simply a discussion about the topic or references to learn more.
I appreciate all the help, and enjoy the weekend!
  댓글 수: 1
Reed
Reed 2022년 7월 8일
편집: Reed 2022년 7월 8일
Also, sorry I have a lot of thoughts about this atm,but for MultiStart the trial of points is randomly selected from a uniform distribution. Does this have any relation to the initial guess? If so, are there ways of broadening this range from just this single distribution.
In addition, to my understandsting, GlobalSearch will first run fmincon at my x0 and then use a scatter algorithm to generate new trial points, thereby doing the process again. Is there a way to broaden this scatter, or am I just speaking nonsense at this point.....
Thankyou all!

댓글을 달려면 로그인하십시오.

채택된 답변

Matt J
Matt J 2022년 7월 8일
편집: Matt J 2022년 7월 8일
For every fixed choice of c4,c5,c6 your optimization problem reduces to a linearly constrained least squares sub-problem, solvable by lsqlin(). The sub-problem is convex and has no sub-optimal local minima. Therefore, you could do a sweep over a 3D search grid of [c4,c5,c6] triplets, solve the subproblem at each point, and tabulate a 3D array of the optimal objective values associated with each point. The global minimum can then be approximately located by applying min() to the 3D array.
  댓글 수: 2
Matt J
Matt J 2022년 7월 8일
편집: Matt J 2022년 7월 8일
Also, you should probaby impose the condition c4<=c5<=c6 to get rid of duplicate solutions. Obviously, in your model if c4=A,c5=B,c6=C is a global optimal solution, then any permutation such as c4=B,c5=A,c6=C will also be a global solution (with the corresponding values of c1,c2,c3 permuted accordingly).
Reed
Reed 2022년 7월 11일
편집: Reed 2022년 7월 11일
Hey, thanks I appreciate the answer. I too thought about the duplicate solutions and am working on implementing it now....... For the former, that all sounds well and good but I'll have to brainstorm on how exactly to do that haha. I am very, very new to matlab so some of those functions needed may be a little bit of a mystery to me.
I appreciate the fresh idea though.
Take care

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Global or Multiple Starting Point Search에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by