i am getting the following error while i am runnig water cycle algorithm, for optimum location placing DG pleasae please help me how to solve this issue. i am attaching files

1 回表示 (過去 30 日間)
Array indices must be positive integers or logical values.
Error in WCA (line 45)
pop(i).cost=objective_function(pop(i).position);
Error in BackwardFarwardNew_28bus (line 126)
[Xmin,Fmin,NFEs,Elapsed_Time]=WCA(objective_function,LB,UB,nvars,Npop,Nsr,dmax,max_it)
i am really facing this issue, its an important work please answer as soon as possible

採用された回答

Walter Roberson
Walter Roberson 2021 年 5 月 1 日
objective_function is expected to be a function handle, but you are passing in a numeric value instead.
  7 件のコメント
Walter Roberson
Walter Roberson 2021 年 5 月 3 日
No, I do not know how you want to go from the values calculated for the busses into a single loss value, and I do not know how you want to calculate the bus values from a proposed position.
AR Hithesh
AR Hithesh 2021 年 5 月 3 日
sure sir, thank you for your valuable information and help, for futher help i wll approach you, thank you so much

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet 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