How to do optimisation with multiple input variables?

I also have a data set(4*100). Height(1*100), width(1*100), Spacing(1*100) and Cd(1*100). I have tried to make a Fit curve from matlab toolbox and save it as a matlab function and i can use it to find the minimum value of Cd but the problem is my objective function is a*width + b*height + c*Cd...where a,b,c are positive constant. how to optimised it ?

回答 (1 件)

Alan Weiss
Alan Weiss 2015 年 6 月 30 日

0 投票

In Optimization Toolbox you have to put all your control variables (those that you can change to try to find a minimum) into one vector. So, for example, if you have three variables a, b, c you make a vector x with
a = x(1);
b = x(2);
c = x(3);
Alan Weiss
MATLAB mathematical toolbox documentation

1 件のコメント

Shashank Bajaj
Shashank Bajaj 2015 年 7 月 3 日
but the problem is that i have created by function by doing the curve fitting using lowness option and i am using this curve fitting function to find the minimum value.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

質問済み:

2015 年 6 月 30 日

コメント済み:

2015 年 7 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by