Package: neorl
NEORLNEORL (NeuroEvolutionOptimization withReinforcementLearning) is a set of implementations of hybrid algorithms combining neural networks and evolutionary computation based on a wide range of machine learning and evolutionary intelligence architectures. NEORL aims to solve large-scale optimization problems relevant to operation & optimization research, engineering, business, and other disciplines.NEORL can be used for multidisciplinary applications for research, industrial, academic, and/or teaching purposes. NEORL can be used as a standalone platform or an additional benchmarking tool to supplement or validate other optimization packages. Our objective when we built NEORL is to give the user a simple and easy-to-use framework with an access to a wide range of algorithms, covering both standalone and hybrid algorithms in evolutionary, swarm, supervised learning, deep learning, and reinforcement learning. We hope NEORL will allow beginners to enjoy more advanced optimization and algorithms, without being involved in too many theoretical/implementation details, and give experts an opportunity to solve large-scale optimization problems.CopyrightThis repository and its content are copyright ofExelon Corporation© in collaboration withMITNuclear Science and Engineering 2021. All rights reserved.You can read the first successful application of NEORL for nuclear fuel optimisation in thisNews Article.LinksRepository:https://github.com/mradaideh/neorlMain News Article:https://news.mit.edu/2020/want-cheaper-nuclear-energy-turn-design-process-game-1217Documentation:https://neorl.readthedocs.io/en/latest/index.htmlQuick ExampleHere is a quick example of how to use NEORL to minimize a 5-D sphere function:#---------------------------------# Import packages#---------------------------------importnumpyasnpimportmatplotlib.pyplotaspltfromneorlimportDE,XNES#---------------------------------# Fitness#---------------------------------#Define the fitness functiondefFIT(individual):'''Sphere test objective function.F(x) = sum_{i=1}^d xi^2d=1,2,3,...Range: [-100,100]Minima: 0'''returnsum(x**2forxinindividual)#---------------------------------# Parameter Space#---------------------------------#Setup the parameter space (d=5)nx=5BOUNDS={}foriinrange(1,nx+1):BOUNDS['x'+str(i)]=['float',-100,100]#---------------------------------# DE#---------------------------------de=DE(mode='min',bounds=BOUNDS,fit=FIT,npop=50,CR=0.5,F=0.7,ncores=1,seed=1)x_best,y_best,de_hist=de.evolute(ngen=120,verbose=0)print('---DE Results---',)print('x:',x_best)print('y:',y_best)#---------------------------------# NES#---------------------------------x0=[-50]*len(BOUNDS)amat=np.eye(nx)xnes=XNES(mode='min',bounds=BOUNDS,fit=FIT,npop=50,eta_mu=0.9,eta_sigma=0.5,adapt_sampling=True,seed=1)x_best,y_best,nes_hist=xnes.evolute(120,x0=x0,verbose=0)print('---XNES Results---',)print('x:',x_best)print('y:',y_best)#---------------------------------# Plot#---------------------------------#Plot fitness for both methodsplt.figure()plt.plot(np.array(de_hist),label='DE')plt.plot(np.array(nes_hist['fitness']),label='NES')plt.xlabel('Generation')plt.ylabel('Fitness')plt.legend()plt.show()Citing the ProjectTo cite this repository in publications:@misc{neorl,
  author = {Radaideh, Majdi I. and Du, Katelin and Seurin, Paul and Seyler, Devin and Gu, Xubo and Wang, Haijia and Shirvan, Koroush},
  title = {NEORL},
  year = {2021},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/mradaideh/neorl}},
}