linopy icon indicating copy to clipboard operation
linopy copied to clipboard

CPLEX: Warning, line 133208941: Name 'x10609872' does not exist.

Open thomgeo opened this issue 1 year ago • 2 comments

Dear all,

I am getting several of these warnings when using linopy with PyPSA:

Warning, line 133208941: Name 'x10609872' does not exist.

It looks to me like a constraint or variable, that CPLEX expects is not available? The network is a modified pypsa-eur network, to which I added different system components.

Best, Georg

thomgeo avatar Nov 26 '24 08:11 thomgeo

hey georg! this shouldn't happen .... could you look which constraint should contain the variable "133208941"? you can do that with n.model.variables.get_name_by_label(133208941)

I could imagine that there is a wrong masking of the variable which does not happen in the constraint. so in consequence the variable would appear in the constraint definition but not in the variable definition as where it is masked/filtered

FabianHofmann avatar Nov 26 '24 18:11 FabianHofmann

Thanks Fabian! After your comment, I wanted to investigate whether this has to do with linopy/PyPSA releases that came after the latest PyPSA-Eur version (0.13), and indeed I managed to solve the issue now by downgrading PyPSA (and thereby linopy) to the lowest version that was mentioned in the environment.yaml.

Don't know if this is even worth following up on, but with the latest version I also got some mentions of repeating rows, which was usually an indicator that the run would fail (for example "Row 'c6164160' repeats.")

I will just leave it here, in case it might be helpful. But it might also just be a result of incompatible packages, so feel free to ignore it, of course :-)

thomgeo avatar Nov 27 '24 16:11 thomgeo

closing this, as it might be due to the larger bug, that we had end of last year, please reopen if that is still not resolved

FabianHofmann avatar Jun 15 '25 18:06 FabianHofmann