Skip the optimised parameters result if the objective function fails

조회 수: 2 (최근 30일)
SM
SM 2021년 6월 22일
댓글: Matt J 2021년 6월 25일
Hi
I am using matlab "isqnonlin" and "gamultiobj" (in two different codes) in matlab to optimise six parameters.
My objective function, is a function that calls ABAQUS and run some finite element models (FEMs) and export the result into matlab and matlab should optimised some coficient.
In some cases, matlab uses some coeficient that when the ABAQUS uses them to export the result, the FEM does not converge and it exists unfinished and matlab exports the results and generates the new optimised parametrs based on those unfinished data, which result in inaccurate optimisation.
My question is:
How can I define a condition that, if the condition was true MATLAB would ignore the esimated paramerts and goes to next iteration and estimates new parametrs?
Thanks

채택된 답변

Matt J
Matt J 2021년 6월 23일
Most optimization solvers have an OuputFcn option that will let you define your own stopping criteria:
  댓글 수: 8
SM
SM 2021년 6월 25일
편집: SM 2021년 6월 25일
Thanks, I will give it a go.
However, it poses a new challenge to my problem.
I am trying the gt optimum set of coeficinet to yield the displacment error of zero (or close to that).
by selecting differnet set of ceof the error may be negative or positive hence my cost function may become negative or positive.
I cannot get the absolute value, since the physical meaning of being negative and positive is different.
is there anyway to push the optimisation to tailor the cost function value to zero?
Thanks
Matt J
Matt J 2021년 6월 25일
If it is a "new challenge", I think you should probably post it as a different question, with a more detailed description.
Meanwhile, if you consider this question answered, please do Accept-click it.

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

추가 답변 (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