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

ALBP file reader #4

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

ALBP file reader #4

micheleurbani opened this issue Mar 22, 2024 · 0 comments

Comments

@micheleurbani
Copy link
Owner

micheleurbani commented Mar 22, 2024

ALBP file reader

Accessing ALBP information directly to guide the search process is necessary because retrieving them from the ecole.scip.Model is pretty inconvenient. The assumption of having all the problem information available is largely accepted in the literature and is a basic assumption in all papers.

Inherit from FileGenerator class

The ecole.instance.FileGenerator iterates over a folder and its subfolders to find .mps and .lp files.
The class is written in C++ and could be used to read row ALBP files, retrieve the information, and create a scip.Model which stores ALBP information directly.

A list of possible issues is the following:

  • Each problem presents a different dataset structure and a switch statement would be required to differentiate the procedure for all of them.

Python objects and .lp model

pyscipopt.Model objects are not serializable, therefore it is impossible to rely on these only.

Problem data are stored as plain Python dictionaries using pickle. The instance generator iterates over .lp problem files, reads the model, initializes a pyscipopt.Model, reads model data, and appends this to the data attribute of the pyscipopt.Model object.

Randomization of results

The ecole.RandomGenerator class controls the fetching process.

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