gym-poly-reactor
a discrete version of industrial polymerization reactor environment. this package is a gym-style warapping of do-mpc
industrial polymerization reactor model.
the original formulation and documentation about the model can be found from here.
Installation
we support pip
installation.
pip install gym-poly-reactor
Dependencies
gym-poly-reactor
is build upon followings:
numpy
gym
do-mpc
If you install the package through pip
, then the pip installation procedure would install the dependencies also.
Quick start
You can easily simulate one episode of industrial polymerization reactor environment by using the following code snippet
from gym_poly_reactor.envs.poly_reactor import PolyReactor
env = PolyReactor() # instantiate industrial polymerization reactor environment
s0 = env.reset() # setup the model
while True:
action = env.action_space.sample()
next_state, reward, done, _ = env.step(action)
if done: # if termination condition is satisfied
break