What if you modify this matlab optimization example?

2 次查看(过去 30 天)
Hello
what if w2 is between 1 and 199 instead of 1-100? In that case wx and wy would have different sizes and it would throw an error at K1.
  6 个评论
Torsten
Torsten 2019-8-6
编辑:Torsten 2019-8-6
yes. The number of elements created by meshgrid (or ndgrid) in the arrays wx and wy equals the number of grid points in two (or n) dimensions - and that's where the constraint is evaluated.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile 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!

Translated by