Coder Social home page Coder Social logo

决策变量最优解输出 about geatpy HOT 7 CLOSED

geatpy-dev avatar geatpy-dev commented on August 16, 2024
决策变量最优解输出

from geatpy.

Comments (7)

1061655504 avatar 1061655504 commented on August 16, 2024

在多目标求解的结果中,如何输出帕累托最优解对应的各个决策变量的值。

您好!调用算法模板后会得到一个非支配种群NDSet,此时通过print(NDSet.Phen)即可查看各个决策变量的值。(Phen是种群个体的表现型,对应着决策变量的值,更多相关属性可详见Population.py源码。)

from geatpy.

liwei066000 avatar liwei066000 commented on August 16, 2024

from geatpy.

remmas avatar remmas commented on August 16, 2024

您好,我刚接触遗传算法。对您写的目标函数的定义不是太明白,x或者说Vars如何与MyProblem中的决策变量联系在一起

from geatpy.

1061655504 avatar 1061655504 commented on August 16, 2024

您好,我刚接触遗传算法。对您写的目标函数的定义不是太明白,x或者说Vars如何与MyProblem中的决策变量联系在一起

噢~Vars就是决策变量矩阵。每一列对应一个决策变量,每一行对应一个个体。种群染色体矩阵Chrom解码后得到的表现型矩阵Phen就是决策变量Vars了,Phen是等价于Vars的。现在新版的文档还没完善好,届时可以看得非常明白。

from geatpy.

remmas avatar remmas commented on August 16, 2024

嗯嗯,多谢指导。我现在先多看下demo吧,其实还有好多地方不太明白😁,请问文档快出来了吗,相当期待。

from geatpy.

1061655504 avatar 1061655504 commented on August 16, 2024

嗯嗯,多谢指导。我现在先多看下demo吧,其实还有好多地方不太明白😁,请问文档快出来了吗,相当期待。

文档这个应该最快这周会出炉。其实现在用help命令就可以查看内置的API文档了,比如help(ea.crtip)。

from geatpy.

remmas avatar remmas commented on August 16, 2024

好的好的,谢谢。

from geatpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.