Formulation to Matlab code
Show older comments
How to write this formulation in Matlab:

where p = 1; g is a vector; j= length(g); x is a vector
phi = sum( norm(max(0,g)) );

phi = max( max(0,g) );
are they corect or not?
1 Comment
Answers (1)
Alex Pedcenko
on 27 Sep 2019
0 votes
seems OK
Categories
Find more on Software Development Tools in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!