English 中文(简体)
是否有办法用粉碎模块进行多目标分析?
原标题:is there a way to perform multi-objective analysis with pygad module?

I m试图利用遗传学算法(使用python 3.x)解决等距系统。 是否采用PyGAD模块或提高大会产出准确性的方法进行多目标分析?

问题回答

From version 3.2 PyGAD is supporting multi-objective optimization. Citing documentation:

把这个问题视为多目标,只是回到一个清单、图谋或假设。 脱离健身功能。

Example of code from documentation:

def fitness_func(ga_instance, solution, solution_idx):
    output1 = numpy.sum(solution*function_inputs1)
    output2 = numpy.sum(solution*function_inputs2)
    fitness1 = 1.0 / (numpy.abs(output1 - desired_output1) + 0.000001)
    fitness2 = 1.0 / (numpy.abs(output2 - desired_output2) + 0.000001)
    return [fitness1, fitness2]

Update 27 Jan 2024: PyGAD supports multi-objective optimization

千年大会并不支持现阶段的多目标优化。 只有单一目标优化得到支持。





相关问题
Get webpage contents with Python?

I m using Python 3.1, if that helps. Anyways, I m trying to get the contents of this webpage. I Googled for a little bit and tried different things, but they didn t work. I m guessing that this ...

What is internal representation of string in Python 3.x

In Python 3.x, a string consists of items of Unicode ordinal. (See the quotation from the language reference below.) What is the internal representation of Unicode string? Is it UTF-16? The items ...

What does Python s builtin __build_class__ do?

In Python 3.1, there is a new builtin function I don t know in the builtins module: __build_class__(...) __build_class__(func, name, *bases, metaclass=None, **kwds) -> class Internal ...

what functional tools remain in Python 3k?

I have have read several entries regarding dropping several functional functions from future python, including map and reduce. What is the official policy regarding functional extensions? is lambda ...

Building executables for Python 3 and PyQt

I built a rather simple application in Python 3.1 using PyQt4. Being done, I want the application to be distributed to computers without either of those installed. I almost exclusively care about ...

热门标签