genetic algorithm 'too many input arguments'
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 1 de Dic. de 2013
Please show your code attempt, and show how the functions are being generated.
Ali Meghdadi
el 2 de Dic. de 2013
Editada: Walter Roberson
el 2 de Dic. de 2013
Respuestas (1)
Walter Roberson
el 2 de Dic. de 2013
Something like,
constraint_function = @(x) LPS(x(1), x(2), x(3), tilt, TArray, KtArray, LArray, WindArray);
??
2 comentarios
Ver también
Categorías
Más información sobre Genetic Algorithm en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!