From: Sonja on
My software needs to choose "good" start point for GA. The GA is choosing points which define membership functions for Fuzzy logic controler. I need to inclued constrains which will make sure that these points are not the same (I want triangle MFs).
1. How can I include constraints - GA chooses initial population and these constraints need to be included

abs(x1-x2)<0.1 and x1<x2

(where x1,x2,..x30. are points that define MFs).

If I try to define constrains as function or as linear constraints but then they are not applied on intial population.

Any ideas?

Many thanks
From: Alan Weiss on
Supply an initial population. See "Initial population" in
http://www.mathworks.com/access/helpdesk/help/toolbox/gads/f6174dfi10.html#f14223

Alan Weiss
MATLAB mathematical toolbox documentation

On 4/22/2010 2:03 PM, Sonja wrote:
> My software needs to choose "good" start point for GA. The GA is
> choosing points which define membership functions for Fuzzy logic
> controler. I need to inclued constrains which will make sure that these
> points are not the same (I want triangle MFs). 1. How can I include
> constraints - GA chooses initial population and these constraints need
> to be included
>
> abs(x1-x2)<0.1 and x1<x2
> (where x1,x2,..x30. are points that define MFs).
>
> If I try to define constrains as function or as linear constraints but
> then they are not applied on intial population.
>
> Any ideas?
>
> Many thanks

 | 
Pages: 1
Prev: converting ASCII to hex
Next: DATA TYPES