GA for single variable
Mostrar comentarios más antiguos
Can I use genetic algorithm for single variable constrained optimization?
my function is f (x) = a/(x-log(x/t))
s.t. f(x) < 1
where a & t are constants
Respuestas (1)
Yes, you can. Howerver, no gurantee of the optimal solution (just like any other non-linear optimization approaches).
a = 1;
t = 1;
xopt = ga(@(x) min(a./(x-log(x/t)), 1), 1)
a./(xopt-log(xopt/t))
2 comentarios
Swapnil Kavitkar
el 23 de Jul. de 2021
Chunru
el 23 de Jul. de 2021
"doc ga" to find out all the options available.
Categorías
Más información sobre Genetic Algorithm en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!