Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Add random seed parameter to command-line tools #448

Open
tturocy opened this issue Feb 28, 2024 · 0 comments
Open

ENH: Add random seed parameter to command-line tools #448

tturocy opened this issue Feb 28, 2024 · 0 comments
Labels
c++ Items which involve writing in C++ nash Items which involve Nash equilibrium computation methods

Comments

@tturocy
Copy link
Member

tturocy commented Feb 28, 2024

After commit 6c239f1 closing issue #295, we now have a clean way in C++ of passing random-number generation engines into the new functions that handle creating mixed profiles which are properly distributed uniformly.

Although the best way to generate starting points for the algorithms that make use of them - namely gambit-liap, gambit-simpdiv, gambit-ipa, and gambit-gnm at present - would be to generate them oneself, nevertheless it is quite a convenience for users to have the command-line tools generate these for them, and indeed Gambit offers that feature.

In order to control this better, it would be useful to allow users to control via command-line arguments this process.

Therefore, to the above tools, we should add:

(1) A command-line option which allows users to specify a seed;
(2) If a seed is not specified, then use std::random_device to seed the RNG.

@tturocy tturocy added c++ Items which involve writing in C++ nash Items which involve Nash equilibrium computation methods labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Items which involve writing in C++ nash Items which involve Nash equilibrium computation methods
Projects
None yet
Development

No branches or pull requests

1 participant