Hi,
I am trying to minimise the following function to get as close to 0 as possible (i.e. x*B = c);
min(x) = x*B + c;
where x is a 200 x 1 column vector, B is a 1 x 200 row vector and c is a scalar constant. Is it possible to do this in matlab with fmincon or is another method better suited to the task?

댓글 수: 1

Matt J
Matt J 2020년 1월 22일
x is a 200 x 1 column vector, B is a 1 x 200 row vector and c is a scalar constant
Are you sure you don't mean that x is 1 x 200 and B is 200x1 ? Otherwise, you have a system of 200 identical equations.

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

 채택된 답변

Matt J
Matt J 2020년 1월 22일
편집: Matt J 2020년 1월 22일

0 개 추천

With no constraints, it would simply be,
x=ones(200)/(-c*B);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2020년 1월 22일

댓글:

2020년 1월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by