Clear Filters
Clear Filters

cvx matlab toolbox for a specific problem

10 views (last 30 days)
Marianna
Marianna on 28 Feb 2023
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.

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!