필터 지우기
필터 지우기

Repeated fmincon optimization of slightly different objective functions

조회 수: 1 (최근 30일)
Rosi Marungu
Rosi Marungu 2016년 5월 6일
댓글: Rosi Marungu 2016년 5월 6일
Hi!
I have a (log-likelihood) function f(x,data), which I optimize repeatedly w.r.t x using fmincon. After each optimization one datapoint is added and I use the previous solution as the starting value for the next optimization. There are many datapoints so the optimization problem and solution only change marginally. However the optimizer diverges each time only to converge back to a solution close to the starting point. This is very time consuming. I cannot provide an analytical gradient or hessian.
How could I speed up the procedure? I thought about passing in an initial gradient and hessian, but all I could find is an option to pass in an analytical gradient and hessian.
Thank you
Rosi

답변 (1개)

Alan Weiss
Alan Weiss 2016년 5월 6일
I am not sure why you are using the procedure that you describe. Do you need the intermediate solutions after each set of data points, or are you simply trying to guide fmincon to the global solution?
If you are simply guiding fmincon, then I suggest that you try giving fmincon all the data points at the start, and instead start fmincon from a variety of initial points to search for a global solution.
If you need the intermediate solutions, then I do not have any ideas. Sorry.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 1
Rosi Marungu
Rosi Marungu 2016년 5월 6일
Thank you for your answer.
Unfortunately, I need the intermediate solutions. I try to evaluate the predictive power of my time series model. At each t I need the optimization solution to predict t+1. Then I compare all forecasts to the real data.

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

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by