I have been unable to find documentation specific to diagnosing issues with models.
I have found a few useful helper functions, such as model.variables.get_name_by_label() which returns the mapping from the numeric variable number found in the LP file to the variable name of the Python object.
Are there any other useful functions I should know about to help diagnose problems with an LP formulated in linopy (collating ideas here for a section in the documentation)?
Some ideas:
- Force writing out full variable names to LP generation to aid debugging
- Tutorial to demonstrate visualisation of the constraints, matrix, coefficient ranges etc.
I have been unable to find documentation specific to diagnosing issues with models.
I have found a few useful helper functions, such as
model.variables.get_name_by_label()which returns the mapping from the numeric variable number found in the LP file to the variable name of the Python object.Are there any other useful functions I should know about to help diagnose problems with an LP formulated in linopy (collating ideas here for a section in the documentation)?
Some ideas: