mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[yul-phaser] AlgorithmRunner: Duplicate chromosome randomisation
This commit is contained in:
@@ -43,6 +43,9 @@ public:
|
||||
{
|
||||
std::optional<size_t> maxRounds = std::nullopt;
|
||||
std::optional<std::string> populationAutosaveFile = std::nullopt;
|
||||
bool randomiseDuplicates = false;
|
||||
std::optional<size_t> minChromosomeLength = std::nullopt;
|
||||
std::optional<size_t> maxChromosomeLength = std::nullopt;
|
||||
};
|
||||
|
||||
AlgorithmRunner(
|
||||
@@ -61,6 +64,12 @@ public:
|
||||
|
||||
private:
|
||||
void populationAutosave() const;
|
||||
void randomiseDuplicates();
|
||||
static Population randomiseDuplicates(
|
||||
Population _population,
|
||||
size_t _minChromosomeLength,
|
||||
size_t _maxChromosomeLength
|
||||
);
|
||||
|
||||
Population m_population;
|
||||
Options m_options;
|
||||
|
||||
Reference in New Issue
Block a user