GAmultiobj optimisation boxdirections error

조회 수: 3 (최근 30일)
Meddour Aissam riad
Meddour Aissam riad 2021년 12월 1일
댓글: Meddour Aissam riad 2021년 12월 3일
Hi everyone,
when using he GAmultiobj algorithm for my problem i get the following error
PS:i'm using a population of 20 with 50 generation and 7 optimisation variable, when the error occurs the MeshSize=[]
Error using /
Matrix dimensions must agree.
Error in boxdirections (line 22)
pollParam = 1/sqrt(MeshSize);
  댓글 수: 8
Alan Weiss
Alan Weiss 2021년 12월 3일
I do not understand how this can happen. You say "when the error occurs the MeshSize=[]". My reading of the code indicates that the mesh size should always be a strictly positive number, never zero or empty.
I wonder if this is somehow related to your placing gamultiobj inside of another function call. What happens if you call gamultiobj directly on your problem? I mean, set up the problem variables and call gamultiobj manually, not within another function. Do you get the same error? If so, what are the inputs to gamultiobj?
Alan Weiss
MATLAB mathematical toolbox documentation
Meddour Aissam riad
Meddour Aissam riad 2021년 12월 3일
i'll try and comeback to you

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by