Coder Social home page Coder Social logo

atoosaparsa / gecco-2023 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 488 KB

Code for "Universal Mechanical Polycomputation in Granular Matter", Parsa et al., GECCO 2023

Python 100.00%
evolutionary-computation inverse-design metamaterial-design metamaterials unconventional-computing granular-mat polycomputation

gecco-2023's Introduction

Universal Mechanical Polycomputation in Granular Matter

This repository contains the source code for all the experiments in the following paper:

Parsa, A., Witthaus, S., Pashine, N., O'Hern, C. S., Kramer-Bottiglio, R., & Bongard, J. (2023, July). Universal Mechanical Polycomputation in Granular Matter. In Proceedings of the Genetic and Evolutionary Computation Conference (pp. 193-201).





Experiments

1. Examination of the parameter space

  • All the codes for sweeping the parameter space are in the parameter sweep folder. Run plotAll.py for Figure 3 of the paper.

2. Generalization

All the codes for the results in section 2.4 of the paper are in the exp1 - single nand folder.

  • Run evolveAfpo.py to redo the experiments.

  • Run afpoPlots.py and plotInOut.py for Figures 4, 5 and 6 of the paper.

  • Code for the frequency sweep experiment from Figure 7 is in the frequency sweep folder.

3. Distributed computation

  • Run plotHeatmap.py from the exp2 - heatmaps folder to recreate the heatmap in Figure 8.

4. Polycomputation

Folder exp3 - polycomputation contains all the codes from section 4 of the paper.

  • Run evolveAfpo.py to redo the experiments.

  • Run afpoPlots.py and plotInOut.py for Figures 9 and 10 of the paper.

  • Folder exp4 - heatmaps contains codes to recreate Figure 11 showing the distribution of polycomputation.

5. Robustness analysis

  • Run robustness.py to redo the experiment and plotRobustness.py to make Figure 12.

Notes about the code

  • evolveAfpo.py launches an evolutionary algorithm (Age-Fitness Pareto Optimization) with two or three objectives. constants.py contains the algorithm's parameters such as population size and number of generations.
  • switch_float.py is the main simulator file. It simulators the 2D granular material taking as input the stiffness matrix and some gate parameters such as the positions of the ports, frequency of vibrations, and phase offset.

Bibtex

@article{parsa2023universal,
      title={Universal Mechanical Polycomputation in Granular Matter},
      author={Parsa, Atoosa and Witthaus, Sven and Pashine, Nidhi and O'Hern, Corey S and Kramer-Bottiglio, Rebecca and Bongard, Josh},
      journal={arXiv preprint arXiv:2305.17872},
      year={2023}
}

gecco-2023's People

Contributors

atoosaparsa avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.