필터 지우기
필터 지우기

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
Nikunja
Nikunja 2024년 3월 12일
Hello sir, when you ran the code, did you got the result? Please let me know sir.

댓글을 달려면 로그인하십시오.

답변 (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
Walter Roberson
Walter Roberson 2024년 3월 12일
Sorry, I am completely unable to understand your design. You will need to find someone else.

댓글을 달려면 로그인하십시오.

카테고리

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