cvx matlab toolbox for a specific problem

조회 수: 4 (최근 30일)
Marianna
Marianna 2023년 2월 28일
i use cvx matlab toolbox to solve a non convex problem and it solved . I give you the code:
n = 3;
l=2*10^5
w=2*10^5
R=1.5
u=1;
a=4*10^(-20);
b=36*10^(-20);
c=36*10^(-20);
h=0.2; %0,4 maximum
cvx_begin
variables x(n) y(n) z(n)
maximize( x(n)+y(n)+z(n)-u*(sum(a * (pow_p(x(1),3)+ pow_p(x(2),3)+pow_p(x(3),3))) +sum((c* (pow_p(z(1),3)+ pow_p(z(2),3)+pow_p(z(3),3))))+ sum((b* (pow_p(y(1),3)+ pow_p(y(2),3)+pow_p(y(3),3)))+h)))
subject to
%x(n)+y(n)+z(n)-u*(sum(a * x(1:n).^3 + b*( y(1:n).^3)+h))=V
x(n)+y(n)+z(n)> 1
0 < x(n)
x(n) < l
0 < y(n)
y(n) < w
y(n)+z(n) < (1/15)*R
z(n) < (1/15)*R
0<z(n)
cvx_end
Can anyone explain if the cvx tool has the potential to solve problems like this? It says that was solved with SDPT3.

답변 (0개)

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by