Skip to content

There is something wrong in SA #1

@YunheWang

Description

@YunheWang

dE = nextLen-FermatLen;%能量差

Line 46: if you calculate dE as dE = nextLen-FermatLen, the subsequent value P = exp(dE/k/T) will be larger than 1 in any case.
Therefore, your code cannot accept a new point with higher energy. So, the current code is exactly a random search...

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