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 ExchangeProblem-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