How do I write the code for 3 dimention rosenbrock function?
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!