Coder Social home page Coder Social logo

marcescandell / alpype Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 0.0 6.09 MB

An open source library for connecting AnyLogic models with python-based experiments

Home Page: https://alpype.readthedocs.io/en/latest/

License: Apache License 2.0

anylogic optimization reinforcement-learning simulation

alpype's Introduction

ALPype

ALPype or AnyLogic Python Pipe is an open source library for connecting AnyLogic simulation models with python-based experiments. This project primarily encompasses two major areas:

ALPypeRL

ALPypeRL is a connector for reinforcement learning frameworks that are compatible with the OpenAI Gymnasium interface (single agent). Find more details at the oficial documentation.

ALPypeRL GIF

ALPypeOpt

ALPypeOpt is a connector for sequential optimization packages such as scikit-optimize, optuna , hyperopt and bayesian optmization. Refer to the documentation to learn more about this project.

ALPypeOpt example

With ALPype you will be able to:

  • Connect your AnyLogic model to a sequential optimization package of your choice (e.g. scikit-optimize skopt).
  • Connect your AnyLogic model to a reinforcement learning framework of your choice (e.g. ray rllib).
  • Scale your RL training by launching many AnyLogic models simultaneously (requires an exported model).
  • Deploy and evaluate your RL trained policy from AnyLogic.
  • Debug your AnyLogic models during optimization loop (this special feature improves the user experience during model debugging remarkably).
  • Leverage on the AnyLogic rich visualization as the optimization runs (which ties to the previous bullet point).

There is a more comprehensive documentation available that includes numerous examples to help you understand the basic functionalities about its subpackages in greater detail.

Environments and installation

ALPype includes 2 environments that make the connection between AnyLogic and your python script possible:

  • The AnyLogic connector ('agent') to be dropped into your simulation model. You can add the library to your Palette. That will allow you to drag and drop the connector into your model. Note that further instructions are required to be followed in order for the connector to work.

ALPype Library

  • The library that you will use to create a connection from the python side to the AnyLogic model, also offering multiple configuration options.

    • alpypeopt. Run pip install alpypeopt to get access.
    • alpyperl. Use pip install alpyperl in this case.

Bugs and/or development roadmap

At the moment, ALPype is at its earliest stage. You can join the alpype project and raise bugs, feature requests or submit code enhancements via pull request.

Support ALPype's development

If you are financially able to do so and would like to support the development of ALPype, please reach out to [email protected].

License

The ALPypeOpt software suite is licensed under the terms of the Apache License 2.0. See LICENSE for more information.

alpype's People

Contributors

marcescandell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.