geatpy-dev / geatpy

Evolutionary algorithm toolbox and framework with high performance for Python
http://www.geatpy.com
GNU Lesser General Public License v3.0
1.96k stars 725 forks source link

HV 计算方式 #327

Open codingpleasant opened 1 year ago

codingpleasant commented 1 year ago

作者您好,请问hv系数在不指定参考函数时的计算方式是什么?

我在使用代码时使用了NSGA-II算法,但是由于是实际问题,无法指定理论最优值 algorithm = ea.moea_NSGA_2_templet(problem, popluation) 而后使用algorithm.log['hv'][-1]就可获得解的hv系数

issue #133 查看了其他人的问题,发现前面版本可能涉及参考点的计算,请问未指定参考点时仍然按照这种方式计算吗? 如果是的话,根据我的理解,对于一个双目标规划问题,其参考点位于(1.1Max(x), 1,1Max(y))的位置?

geatpy-dev commented 1 year ago

对的。不指定的话,会直接按当前ObjV的(1.1Max(x), 1,1Max(y))数值作为参考点。

codingpleasant commented 1 year ago

Thanks for help. 此外还有一个关于评价指标的问题,spacing系数的计算方式是什么呢?在我的问题中,无论指定怎样的参数,最终spacing系数均为0,repo中似乎也没有看到计算spacing系数的代码