Skip to content

Conversation

@jtcooper10
Copy link
Collaborator

Temporary fixes for pause-resume behavior in C++ solvers.

Fixes

  • Fixed repeated output on pause-resume, caused by identical seeds between runs
    • Uses simulation process id as part of seed
    • Note: getpid() is deprecated on Windows, so getting the process id is platform-specific
  • Fixed rounding issue for variable solvers by passing command-line args as floats rather than ints

- Changed `--init_pop` to accept `float` rather than `int` to remove rounding on startup
- Use `getpid()` as a temporary fix for RNG seed
@jtcooper10 jtcooper10 added this to the 1.6.8 milestone Jan 14, 2022
@briandrawert briandrawert merged commit fbb02f8 into develop Jan 18, 2022
@briandrawert briandrawert deleted the fix/pause-resume-rounding branch January 18, 2022 02:12
@seanebum seanebum mentioned this pull request Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants