JSSEnv icon indicating copy to clipboard operation
JSSEnv copied to clipboard

Trouble running the repository

Open SorakaMafaka opened this issue 3 years ago • 2 comments

Hello! I am a complete beginner with the OpenAI Gym and I am not entirely sure how to use the repository. What would be the quickest way to run the implementation (e.g. on Google Colab) on an example dataset (like the ones under JSS>Instances), and then get a nice Gantt chart like the one you have in your example.

SorakaMafaka avatar Sep 13 '22 11:09 SorakaMafaka

Hi,

Sorry for the late answer. To render the solution, you can have a look to this piece of code: https://github.com/prosysscience/JSSEnv/blob/master/tests/test_rendering.py

To load an instance, you can use the gym interface: env = gym.make('jss-v1', env_config={'instance_path': 'INSTANCE_PATH'})

If you download one of the instances inside the path of the instance you can directly start with one of those. Otherwise, you can also use yours.

ingambe avatar Nov 24 '22 15:11 ingambe

Hey! I get 12 errors for the test_solutions of the 12 tests. The error is that there is no environment named jss. All the errors point to this equivalent line in the different tests: env = gym.make('jss-v1', env_config={'instance_path': 'INSTANCE_PATH'}) I am trying to run the project on pycharm but don't seem to find a solution for this problem. I tried to read the source code for the gym.make method but still nothing. Can you help please ?

achraf-oujjir avatar Dec 19 '22 22:12 achraf-oujjir