AI4OPT / OPFGenerator

Instance generator for OPF problems
MIT License
2 stars 3 forks source link

Formulate branch-level Jabr inequality in SOCWR #66

Closed mtanneau closed 6 months ago

mtanneau commented 6 months ago

closes #60

This PR makes the following changes:

TODO:

mtanneau commented 6 months ago

@klamike @ivanightingale our unit tests currently check the objective value of our formulation against that found by PowerModels. Since this PR breaks the equivalence with PowerModels, that check is no longer valid.

https://github.com/AI4OPT/OPFGenerator/blob/e66221e661e8dfe7c2e06eeb5e2275d907b1bf87/test/opf/opf.jl#L36

I can do two things to fix the broken tests:

  1. relax the relative tolerance to 1e-3 in the test. This seems to work for our setting, but may not be valid in general
  2. remove this test altogether (which would require me to update things so that we deactivate it only for SOCWR problems)
klamike commented 6 months ago

I think the latter is worth doing since other custom formulations will probably also need custom tests.

ivanightingale commented 6 months ago

I agree with number 2. I think the test for feasibility in this PR is sufficient.

mtanneau commented 6 months ago

OK, I'm putting the update to unit tests in #67