I am doing Genetic algorithm for optimisation , but it is very slowly optimising, 1st itteration is not complete since 5hours but it is showing optimisation running.
조회 수: 15 (최근 30일)
이전 댓글 표시
Please guide me how to speed up the genetic algorithm optimisation
댓글 수: 0
답변 (1개)
Alan Weiss
2022년 3월 22일
ga is a slow algorithm. Most likely you have nonlinear constraints, which makes the algorithm even slower. If you do not have integer constraints, then I strongly suggest that you do not use ga, and instead give patternsearch a try. It, too, takes a lot of time with nonlinear constraints, but it is often much faster than ga. This assumes, of course, that your problem is nonsmooth.
If you have a nonsmooth problem with integer and nonlinear constraints, you have few solver choices. The only other choice is surrogateopt, which has its own overhead, but can sometimes be effective. And surrogateopt allows for checkpointing, which can be very helpful in long-running optimizations.
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!