Surrogate Optimization Error: 'Dimensions of arrays being concatenated are not consistent'
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello there, I am trying to optimize a 5 variable function using the surrogateopt algorithm in a live script using the task optimize. When I run the code the error: 'Dimensions of arrays being concatenated are not consistent' comes. What could this mean? I think it is about the intial points structure but are we required to input InitialPoints structure for the algorithm to run?
I am attaching the code of interest. Do not mind the AdiabaticReactor function, this solve an ODE System. Thank you very much for your time.
댓글 수: 0
답변 (1개)
Alan Weiss
2021년 3월 14일
You say "Do not mind the AdiabaticReactor function" but I cannot tell what sizes the inputs and outputs are for the objconstrAdiabticReactorSurgoate function, and your problem seems to be a size mismatch. I suggest that you use the debugger and see what sizes various inputs and outputs are, and see exactly where the dimension mismatch arises.
Alan Weiss
MATLAB mathematical toolbox documentation
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surrogate Optimization에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!