Beispiel #1
0
 public ConicalGA(int popSize, int chromoCount, GAType type)
 {
     m_xProp = 0.7;
        m_mutProp = 1.0 / chromoCount;
        m_size = chromoCount;
        m_type = type;
        m_population = new List<List<int>>(popSize);
        Initialize();
        SetupLambdas();
 }
Beispiel #2
0
 public ConicalGA(int popSize, int chromoCount, GAType type, bool usecig, GA_Type dimension)
 {
     m_dimension = dimension;
     useCIGAR = usecig;
     m_xProp = 0.7;
     m_mutProp = 1.0 / chromoCount;
     m_size = chromoCount;
     m_type = type;
     m_population = new List<List<int>>(popSize);
     GA_Threads = new List<GAThread>(GAThreadcount);
     GADoneEvents = new ManualResetEvent[GAThreadcount];
     Initialize();
     SetupLambdas();
 }