Inequality constraints in gamultiobj

Hello,
I have got a problem with inequality constraints in file 'constraintfunction': when I introduced A and b as constraints, optimization does not work anymore (file 'mainfunction_11') and my Pareto front plot is not showing anything. The principle is that decision variables x and y at each time step j and EV i should be less than trans_percent_w_ch and trans_percent_w_dch, respectively. I thought that with an introduction of inequality constraint I could satisfy this requirement, however, it fails to work completely. Could you help me to figure out how to fix it so that my decision variables are constrained?
Thanks in advance!

2 件のコメント

Alan Weiss
Alan Weiss 2020 年 12 月 13 日
編集済み: Alan Weiss 2020 年 12 月 13 日
Your constraintfunction code is over 600 lines long. I wonder if there is a small subset of your code or something like it that shows what you are trying to do and exactly how it fails. I do not plan to read through that much code, and doubt that others are willing to, either.
Alan Weiss
MATLAB mathematical toolbox documentation
olga_vm
olga_vm 2020 年 12 月 14 日
Alan, thank you for pointing this out. Indeed, I should have been more specific.
The problem occurs in file 'constraintfunction' lines 563 - 579, where inequality constraints A and b are introduced:
A_1 = [];
A_2 = [];
A=[A_1;A_2];
A=[];
%
for j=1:num_slot
for i=1:num_EV
b_1(i,j)=trans_percent_w_ch(i,j);
end
end
for j=1:num_slot
for i=1:num_EV
b_2(i,j)=trans_percent_w_dch(i,j);
end
end
b=[b_1;b_2];
b_1 should be a constraint for x and b_2 - for y. If I run gamultiobj without these contraints, it normally gives me Pareto front.
Thank you for having a look at my problem.

サインインしてコメントする。

回答 (0 件)

カテゴリ

質問済み:

2020 年 12 月 12 日

コメント済み:

2020 年 12 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by