Exemple #1
0
    def __init__(self, Point_Matrix, ConstList, W_Matrix):
        '''
        function:初始化
        para:1、Point_Matrix 
        '''
        self.Point_Matrix = Point_Matrix  #轨迹点列表
        self.Crossover_rate = 0.7  #交叉率
        self.Mutation_rate = 0.2  #变异率
        self.ObjectNums = 3  #目标函数个数
        self.PopulationNums = 11  #种群数量
        self.Num_generations = 10  #进化代数
        self.ConstList = ConstList  #约束的列表
        self.Point_List_Len = len(Point_Matrix[0])  #插值点列 长度
        self.TargetPoint = []  #R支配目标点
        self.RetPoint = []  #结果集
        self.BSplineCurve_Population = []  #种群
        self.RetBSplineCurve_Population = []  #每次进化出来的种群
        self.Plt = []
        self.TOPSIS = None  #TOPSIS算法类
        self.W_Matrix = W_Matrix  #权重集

        self.NSGA_II_With_Constraint = NSGA_II_With_Constraint(
            self.ObjectNums, self.Mutation_rate, self.Crossover_rate)
        self.NSGA_II_With_Constraint_And_R_Dominance = None