Skip to main content

Evolutionary algorithm for development of alloy materials

Project description

Evomatic

Tests Documentation Status

Evomatic is an genetic algorithm tool for the development of new alloys.

Installation

The evomatic package can be installed from pypi using pip:

pip install evomatic

Evomatic makes heavy use of the metallurgy package to manipulate and approximate properties of alloys. The cerebral package can be used by evomatic to obtain predictions of alloy properties on-the-fly during evolution.

Usage

Basic usage of evomatic involves setting some targets and running an evolution, the following example shows evolution of a small population towards alloys with high mass:

>>> import evomatic as evo

>>> evolver = evo.Evolver(targets={"maximise": ["mass"]}, population_size=50)

>>> history = evolver.evolve()

>>> history["alloys"]
                       alloy        mass  generation  rank   fitness
                       Og100  295.000000           7     0  1.000000
                 Og92.4Fl7.6  294.544000          11     1  0.998433
            Og91.4Lv7.4Cm1.2  294.276000           9     2  0.997512
          Og78Mc14Lv6.2Hs1.8  293.726000          11     3  0.995622
                       Lv100  293.000000           2     4  0.993127
                         ...         ...         ...   ...       ...
  Ar38.8Li28.5B24.9Sc5.7I2.1   25.396895          10   587  0.073521
                     Si79H21   22.398830          10   588  0.063218
                Li83.7Zr16.3   20.678292           6   589  0.057305
                 Li97.9Db2.1   12.464260           5   590  0.029078
                       He100    4.002602           4   591  0.000000

In this simple example, there is no better material for the objective of maximum mass than pure Oganesson.

Documentation

Documentation is available here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evomatic-0.0.6.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

evomatic-0.0.6-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file evomatic-0.0.6.tar.gz.

File metadata

  • Download URL: evomatic-0.0.6.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for evomatic-0.0.6.tar.gz
Algorithm Hash digest
SHA256 567819870c2bf586bea924a4687bc4b9b6b243c52026068bb597083da3d974cc
MD5 17e9a0e6194beb0e6d2b85eb2208cb01
BLAKE2b-256 4bbed96bd9639604d6425903db5a9010dd5c9112929813a7bc447ae37b30ea66

See more details on using hashes here.

File details

Details for the file evomatic-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: evomatic-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for evomatic-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1223beab4d05123cb7c25eac463f288cfc09cddeed168a1f45f0f4c4cda2898b
MD5 b3466bd44fb1d74e73dfd355b047d47a
BLAKE2b-256 0e4568cc79a1c35790380966dc9cc31710407dad82c1f9d82e4af2b6d64a7e75

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page