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

Define variable tables #884

Closed
Tracked by #701
datejada opened this issue Oct 16, 2024 · 0 comments · Fixed by #887
Closed
Tracked by #701

Define variable tables #884

datejada opened this issue Oct 16, 2024 · 0 comments · Fixed by #887

Comments

@datejada
Copy link
Member

datejada commented Oct 16, 2024

The way that we control the indexing - to prevent sparsity issues - is to precompute the indexes of the variables. The way that we are doing it right now is to compute tables for these indexes. Assuming that keeps being the case, we have to define what is necessary for these tables and define their names.
These tables will probably also save the final result, so they are used outside of the model as well.
If we use tables as DuckDB tables, currently have 1:3 in the column but we have to change to two columns (?) 1 and 3.
Maybe it makes sense to keep these tables (only) as DF, so we keep storing ranges and possibly JuMP variables in them
Create a TulipaVariable struct and store the DuckDB table with the indexes (i.e., each row corresponds to a index), and store also a Vector of JuMP variables

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

Successfully merging a pull request may close this issue.

1 participant