필터 지우기
필터 지우기

How to make fmincon faster?

조회 수: 6 (최근 30일)
Sina
Sina 2014년 6월 14일
댓글: Sina 2014년 6월 16일
I try to to use fmincon for my optimizer my system is nonlinear and my contraints are also nonlinear. As I want to use it in real system speed of it is very important. I already try different options of fmincon but doesn't change a lot. Is there anyway to make it faster except changing options that I already tried?

채택된 답변

Matt J
Matt J 2014년 6월 14일
You can code your objective and constraint functions better, i.e., make sure it executes as speed-efficiently as possible.
Supplying accurate computations of the gradient and Hessian for algorithms that use them would also probably speed things up. This is in contrast to turning GradObj and GradConstr 'off' and using the default finite difference derivative computations.
  댓글 수: 3
Matt J
Matt J 2014년 6월 15일
It sounds like you're talking about the scenario discussed in this thread,
If your objective function and constraints share some quantity that takes a long time to compute, you can use the technique discussed there to cut down on unnecessary re-computations of this quantity.
Sina
Sina 2014년 6월 16일
Thank you very much

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

추가 답변 (0개)

카테고리

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