genetic algorithm 'too many input arguments'
이전 댓글 표시
I want to minimize a function with a constraint which has 8 inputs. The problem is I cannot call the by x(1), x(2),etc because they are generated in another program in each loop and thos variables are used in other places. Does anyone have suggestion?
댓글 수: 2
Walter Roberson
2013년 12월 1일
Please show your code attempt, and show how the functions are being generated.
Ali Meghdadi
2013년 12월 2일
편집: Walter Roberson
2013년 12월 2일
답변 (1개)
Walter Roberson
2013년 12월 2일
Something like,
constraint_function = @(x) LPS(x(1), x(2), x(3), tilt, TArray, KtArray, LArray, WindArray);
??
카테고리
도움말 센터 및 File Exchange에서 Genetic Algorithm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!