public class Generation
{
int NumOfPop;
int NumOfCrew;
int NumOfPair;
Chromosome[] Pop;
public Generation(int NCh,int NC,int NP)
{
NumOfPop=NCh;
NumOfPair = NP;
NumOfCrew = NC;
Pop = new Chromosome[NumOfPop];
for (int i = 0; i < NumOfPop; i++)
{
Pop[i]=new Chromosome(NumOfCrew,NumOfPair);
}//End for
}//end generation
public void Write()
{
string [] Sol;
Sol = new string [NumOfPop];
for (int j = 0; j < NumOfPop; j++)
{
System.Console.Write("\nChromosome {0} ",j+1);
System.Console.WriteLine(Pop[j]);
}
}//end write
public static void Main()
{
Generation obj = new Generation(30,20, 12);
obj.Write();
System.Console.ReadLine();
}//end main
}//end class