Home > Archive > Matlab > December 2005 > genetic algorithms
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
genetic algorithms
|
|
| berniecr@clarkson.edu 2005-12-02, 9:43 pm |
| How can i modify the algorithms to output several answers.
I have, after much work, used GA to find optimal subsets of variables
to solve my problem. It returns one subset. It isn't even the best
one. Subsets from earlier generations had lower errors. I want to
output several subsets, and include some not from the last generation.
| |
| Rakesh Kumar 2005-12-02, 9:43 pm |
|
berniecr@clarkson.edu wrote:
> How can i modify the algorithms to output several answers.
>
> I have, after much work, used GA to find optimal subsets of variables
> to solve my problem. It returns one subset. It isn't even the best
> one. Subsets from earlier generations had lower errors. I want to
> output several subsets, and include some not from the last generation.
>
You may want to look at 'OutputFcns' options. You can write an output
function which will write any member of the population you like. Look at
the 'state' variable which you get as input argument in output function.
To start look at 'gaoutputfcntemplate.m'.
hth
rakesh
| |
| berniecr@clarkson.edu 2005-12-17, 7:05 pm |
| thank you. I'm going to look at that today. I'm ready to try writing
it.
|
|
|
|
|