How to skip paretosearch iteration
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (1)
Gifari Zulkarnaen
am 26 Feb. 2020
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 Kommentare
Gifari Zulkarnaen
am 26 Feb. 2020
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
Siehe auch
Kategorien
Mehr zu Multiobjective Optimization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!