Skip to content

关于狼群算法中探狼游走的更新公式 #2

@cptbtptp1992

Description

@cptbtptp1992

同学,你好,有点小疑问,看来你matlab中代码关于探狼游走的更新公式: XJ_every_h = wolf_position(detective_wolf_index(j),:) + sin(2pi(1:h)'/h) .* step_a; 假设是在二维空间,个体狼坐标 [x, y], 更新公式后XJ = [x, y] + [0.1, 0.3, 0.4]’(假设这是sin后求出的值) = [x+0.1 y+0.1; x + 0.3 y + 0.3; x+0.4 y+0.4] ,那这个是不是意味着个体狼始终在一个与y =x平行的直线上来回运动搜索?并没有实现h个方向的搜索,不知道我有没有表达清楚,希望得到你的回复。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions