How to create folder in GA Optimization toolbox

I'm using GA toolbox for optimization. How do I create a folder with different numbering in each population in each generation of the GA run to save objective function operations in it?

답변 (1개)

Alan Weiss
Alan Weiss 2014년 2월 28일

0 개 추천

I am not sure what you want. Do you want to save the population at every iteration? You can use an output function to save the population. The state.Poplulation field of the state structure has the population. The state.Generation field hold the iteration number that you can use to number your file.
Alan Weiss
MATLAB mathematical toolbox documentation

댓글 수: 1

Uswah
Uswah 2014년 2월 28일
Hi Alan, No, that is not what i want. I need to create a folder with generation and population number for example folder "Gen2Popu3" for generation number 2 and population number 3.
I want a folder for each population in each generation to save some model designed in each GA iteration. This model was created in the objective function.

이 질문은 마감되었습니다.

질문:

2014년 2월 28일

마감:

2021년 8월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by