Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

obs, action_set, reward, done, info = env.reset(instance) returns 'None' in obs, action_set and 'True' in done variables in set cover problem. #369

Open
azraaziz00 opened this issue Nov 23, 2023 · 0 comments

Comments

@azraaziz00
Copy link

import ecole
env = ecole.environment.Branching(
observation_function=ecole.observation.NodeBipartite(),)
reward_function=-ecole.reward.NNodes())
# set up an instance generator
instances = ecole.instance.SetCoverGenerator(n_rows=100, n_cols=1000, density=0.05, max_coef=100)

generate ten MDP episodes

for i in range(10):
instance = next(instances)
obs, action_set, reward, done, info = env.reset(instance)

Why does the env.reset returns None in obs and action_set and True in done variables?

Although, it works well with the instances generated with CombinatorialAuctionGenerator function i.e.,

import ecole
env = ecole.environment.Branching(
observation_function=ecole.observation.NodeBipartite(),)
reward_function=-ecole.reward.NNodes())
# set up an instance generator
instances = ecole.instance.CombinatorialAuctionGenerator (n_items=100, n_bids=100)

generate ten MDP episodes

for i in range(10):
instance = next(instances)
obs, action_set, reward, done, info = env.reset(instance)

Where am I going wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant