Random mutations
This commit is contained in:
parent
2ebfe38bac
commit
35d186cf05
2 changed files with 22 additions and 2 deletions
|
|
@ -22,11 +22,13 @@ impl Formula {
|
|||
}
|
||||
outputs
|
||||
}
|
||||
pub fn mutate(&mut self) {}
|
||||
|
||||
pub fn modify_tree(&mut self) -> NodeModifier {
|
||||
self.tree.modify_tree()
|
||||
}
|
||||
pub fn modify_random_node(&mut self) -> NodeModifier {
|
||||
self.tree.modify_node()
|
||||
}
|
||||
pub fn display_tree(&self) {
|
||||
self.display_recursion(0, vec![&self.tree]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue