What is the difference between function and objective function in MATLAB ?

To know how to applicate the objective function for in a better way,
I want to find the difference between function and objective function, and what is the problems need to use the objective function ?

1 件のコメント

Stephen23
Stephen23 2018 年 5 月 4 日
"What is the difference between function and objective function in MATLAB"
Nothing. An objective function is just a function being used in a particular way.

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

 採用された回答

Torsten
Torsten 2018 年 5 月 4 日
編集済み: Torsten 2018 年 5 月 4 日

1 投票

No difference - "objective function" is just the terminus technicus for the function you want to maximize or mimimize in optimization problems.
Best wishes
Torsten.

3 件のコメント

Johan Johan
Johan Johan 2018 年 5 月 4 日
But in objective function the function should accept a vector, whose length is the number of independent variables, and return a scalar,and other conditions if specify the type optimization problem. How these conditions help in a better solution of the problem?
Stephen23
Stephen23 2018 年 5 月 4 日
"But in objective function the function should accept a vector, whose length is the number of independent variables, and return a scalar,and other conditions if specify the type optimization problem"
Functions can have many different kinds of inputs and outputs. Those are the requirements for a function if you want to use it as the objective function for some optimization routine.
John D'Errico
John D'Errico 2018 年 5 月 4 日
編集済み: John D'Errico 2018 年 5 月 4 日
An objective function ia still JUST A FUNCTION. That it is called an objective function is just a name. It is the function that an optimizer like fminunc will try to minimize, thus it provides the objective for the optimizer.
Shakespeare said it this way:
What's in a name? That which we call a rose By any other word would smell as sweet

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with Optimization Toolbox についてさらに検索

質問済み:

2018 年 5 月 4 日

編集済み:

2018 年 5 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by