How to write this formulation in Matlab:
form3.JPG
where p = 1; g is a vector; j= length(g); x is a vector
phi = sum( norm(max(0,g)) );
form4.JPG
phi = max( max(0,g) );
are they corect or not?

댓글 수: 1

rough93
rough93 2019년 9월 27일
Ensure your max usage is correct
max(A,B) returns an array with the largest elements taken from A or B.
If this is correct for your application then the sum, norm is correct, you need to raise your first equation to the pth power also.

댓글을 달려면 로그인하십시오.

답변 (1개)

카테고리

도움말 센터File Exchange에서 Software Development Tools에 대해 자세히 알아보기

제품

릴리스

R2018b

태그

질문:

2019년 9월 27일

댓글:

2019년 9월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by