evomatic.mutation.add_element(alloy: Alloy, constraints: dict) Alloy[source]

Mutate an alloy composition by adding an element, taking constraints into account.

Parameters
alloy: Alloy

The alloy composition being mutated.

constraints: dict

The constraints on alloy compositions that can be generated.


Last update: Dec 07, 2022