Skip to content

Variables unique indices ordering #237

Answered by gasse
th-yoon asked this question in Questions
Aug 16, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @th-yoon ,

SCIP keeps track of two problems internally:

Each problem then contains, among other things, a list of variables (prob->vars array). The index of a variable then directly indicates the position of that variable in the array where it is stored, and variable are problem-specific (a variable belongs to one problem only). Hence, variable indices are unique only within a specific problem.

In general, I think most variables from the original problem (say, x25) will have an equivalent transformed variable in the transformed problem (t_x25), and probably the indices of the variables will be correlated.…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@th-yoon
Comment options

@gasse
Comment options

@th-yoon
Comment options

Answer selected by th-yoon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants