nsga2.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:py4design 作者: chenkianwee 项目源码 文件源码
def xml(self):
        """
        This function writes the individual to an xml format.

        Returns
        ----------
        xml individual : str
            The xml string of the individual.

        """
        doc = Document()
        if self.live:
            status = "true"
        else:
            status = "false"

        xml_doc = analyse_xml.create_xml_individual(doc, self.id, self.generation, status, self.genotype, self.derivedparams, self.scores)
        return xml_doc.toxml()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号