How to skip paretosearch iteration

조회 수: 1 (최근 30일)
Volodymyr Rodin
Volodymyr Rodin 2019년 7월 4일
댓글: Gifari Zulkarnaen 2020년 2월 26일
Hi everyone,
I am using paretosearch for multi-objective optimization based on another program output.
However, some certain values of variables, that I am optimizing may cause 0 or a blank result of the function.
Can I somehow skip these iterations in further analysis or I just need to make boundaries tighter?
Best wishes,
Volodymyr Rodin

답변 (1개)

Gifari Zulkarnaen
Gifari Zulkarnaen 2020년 2월 26일
In the objective function, you can put a large penalty or result to make it like a bad result, so pattern search won't consider it and move to next step. For example:
function fval = objective(x)
program_output = function_to_call_your_program(x);
if iszero(program_output) | isempty(program_output)
fval = 1000; % large value
else
fval = program_output;
end
end
  댓글 수: 2
Volodymyr Rodin
Volodymyr Rodin 2020년 2월 26일
Hi,
That's actually what I did to continue optimization.
Thanks, for reply.
Gifari Zulkarnaen
Gifari Zulkarnaen 2020년 2월 26일
There is a "Revival" badge for answering question more than a month old. So I looked around for an unanswered question and came to yours for the badge. I didn't expect you would even check :D

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

카테고리

Help CenterFile Exchange에서 Multiobjective Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by