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

Observation function #3

Open
micheleurbani opened this issue Mar 22, 2024 · 0 comments
Open

Observation function #3

micheleurbani opened this issue Mar 22, 2024 · 0 comments

Comments

@micheleurbani
Copy link
Owner

micheleurbani commented Mar 22, 2024

Observation function

An observation function is an Ecole environment that returns features of the actions in the action set.

The set of features depends on the problem representation we want to use.

Direct problem representation

Use problem attributes directly as in the canonical form {min cx, Ax <= b}.
Variable features are harder to characterize according to the problem under study. An example of generic features is that provided by Khalil.

Indirect problem representation

A solution to the problem is described as a partition of the set of tasks, where each element corresponds to the set of tasks assigned to a station.

Features are easier to figure out than with the direct representation.

Information extraction from ecole.scip.Model

We need a fast and reliable way to extract the indirect solution representation from the ecole.scip.Model (direct representation). The availability of problem information would help the extraction of variable values. For example, by providing the number of activities and the type of problem, it is possible to understand which variables have been used and how they are indexed, hence retrieving their value and computing, e.g., the list of unassigned tasks or the list of empty stations.

The problem can be divided into two subproblems: the first concerns retrieving information about the problem and it is tackled in the issue #4, whereas accessing information from the ecole.scip.Model concerns accessing the model at runtime and is tackled in the following.

Depending on the programming language, I see two possible ways to access information from ecole.scip.Model.

Python observation function

Exploiting the model name to retrieve the type of the problem, it is possible to access variables correctly due to the different MILP formulations that were adopted.

C++ observation function

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