I was trying to find the optimised design variables using GA in MATLAB. When I run the program it was running and running. Can anyone please check the loops used in the codes?

1 次查看(过去 30 天)
Please help me to find out the optimised design variables using GA. When I run it, it was running and running. Not showing any error also. Please help me by checking the loops used.
  3 个评论

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2024-3-12
Your objective function calls
[~, ~, ~, ~, ~, ~, ~, ~, ~, ~, ~, ~, E_MCP, E_PIP, E_DIP] = calc_EFG(x);
Your nonlinear constraint calls
[E3, F3, G3, E6, F6, G6, E10, F10, G10, E13, F13, G13, E_MCP, E_PIP, E_DIP] = calc_EFG(x);
Your calc_EFG is defined as
function [E3, F3, G3, E6, F6, G6, E10, F10, G10, E13, F13, G13, E_MCP, E_PIP, E_DIP] = calc_EFG(~)
which completely ignores its input.
You should not be ignoring the input: you should be calculating given the input.
  11 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by