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.