Optimization Toolbox

I want to use the optimizaztion to optimize a function if form
f = w(1)*a+w(2)*b+w(3)*c;
where w(1), w(2), w(3) are variable and a.b.c are constants.
the constraints are
0< w(1), w(2), w(3) <1
and w(1)+w(2)+w(3)=1

답변 (1개)

Sean de Wolski
Sean de Wolski 2012년 1월 27일

0 개 추천

fmincon should be able to handle that no problem.

댓글 수: 1

Surya
Surya 2012년 1월 27일
Tried it did not work tried even the optimization toolbox
can you give me syntax for the function I gave. how do I set the the constraints
0< w(1), w(2), w(3) <1
and w(1)+w(2)+w(3)=1

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

카테고리

도움말 센터File Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

태그

질문:

2012년 1월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by