With the current reward function implementation we are unable to declare multiple reward function in a single environment.
Setting
OS: Any
Compiler: Any
Python version: Any
Ecole version: dev and integral_fix branches
To Reproduce
Declare an environment with at least two integral reward functions either in the reward_function or information_function and call reset on an instance.
Exception: [scip_event.c:76] ERROR: event handler <ecole::reward::IntegralEventHandler> already included.
[objeventhdlr.cpp:229] ERROR: Error <-9> in function call
Expected behavior
No exceptions.
Additional context
We need to decide on how we want to resolve the issue of multiple integral reward functions since they will create an event handler with the same name causing an exception in scip.
Describe the bug
With the current reward function implementation we are unable to declare multiple reward function in a single environment.
Setting
dev
andintegral_fix
branchesTo Reproduce
Declare an environment with at least two integral reward functions either in the
reward_function
orinformation_function
and call reset on an instance.This will give the error:
Expected behavior
No exceptions.
Additional context
We need to decide on how we want to resolve the issue of multiple integral reward functions since they will create an event handler with the same name causing an exception in scip.