How to make MATLAB loop not use the same number?

1 回表示 (過去 30 日間)
Rose Toto
Rose Toto 2023 年 3 月 11 日
コメント済み: Walter Roberson 2023 年 3 月 16 日
i ask about matlab give me the same bus , i want location be for example 2,19,25
N=50; % Number of search agents
Max_iter=100; % Maximum number of iterations
lb=[2 975 2 975 2 975 ];
ub=[33 975 33 975 33 975 ];
dim=6;
fobj= @(x) Sphere(x);
but it give me loc 2 2 2
X_opt_loc =
2 2 2
X_opt_size =
975 975 975
I would be glad to give me solution for my problem.
  37 件のコメント
Jan
Jan 2023 年 3 月 16 日
Sorry, as long as I cannot guess what "those lines on sphere" means, I'm out of this discussion, because I cannot understand the problem.
Walter Roberson
Walter Roberson 2023 年 3 月 16 日
Jan, the OP is asking why you are saying that those particular lines in the function "sphere" are useless clutter.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by