轮盘赌for遗传算法(genetic algorithm)中,求最小的cost,如果cost有正有负,

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/04 07:24:39
轮盘赌for遗传算法(genetic algorithm)中,求最小的cost,如果cost有正有负,

轮盘赌for遗传算法(genetic algorithm)中,求最小的cost,如果cost有正有负,
轮盘赌for遗传算法(genetic algorithm)中,求最小的cost,如果cost有正有负,

轮盘赌for遗传算法(genetic algorithm)中,求最小的cost,如果cost有正有负,
求最小的cost?那么在做适应度函数时为何不将求最小的问题转化为求最大的问题?
适应度值最好不要出现负值,因为轮盘赌选择法只适合求最大以及正值.
适应度函数可不等于就是目标函数.
目标函数cost越小越好,适应度函数可以将其转化为越大越好嘛.
转化方法很多,最常见的就是用1除目标函数,或者其线性组合.