pythonoptimizationscip

Equivalent of xsum for pySCIPOpt


What is the equivalent of xsum from python Mip in pySCIPOpt to summarize arrays of variables in constraints?


Solution

  • You can use quicksum for that purpose. I suggest you look at some of the examples for PySCIPopt, e.g., this one