フィルターのクリア

How do I write the code for 3 dimention rosenbrock function?

2 ビュー (過去 30 日間)
민제 강
민제 강 2021 年 6 月 28 日
function Y = objectivefunction (X)
x1 = -7.86586;
x2 = -1.20733;
Y = 100*(x2-x1^2)^2 + (x1-1)^2;
end
This is a 2-dimensional function code.
However, this function can also be written in 3 dimention.
Please tell me the 3 dimention rosenbrock function code.

回答 (0 件)

カテゴリ

Help Center および File ExchangeProblem-Based Optimization Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by