AI4OPT / OPFGenerator

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

[DNMY] OPF formulation documentation #105

Closed mtanneau closed 5 days ago

mtanneau commented 1 week ago

See https://ai4opt.github.io/OPFGenerator/previews/PR105/ for this version of the docs

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

mtanneau commented 1 week ago

I have the problem that most symbols are not displayed correctly

🤨 Which browser do you use and does this happen on mobile as well? I tried Firefox on Windows and iOS, and the symbols render correctly. Let me try a couple more browsers --> on a Windows laptop, Firefox / Edge / Chrome all render correctly.

I would bet on either a browser issue or font issue. Those symbols that don't display all use \mathcal symbols. PowerModels documentation doesn't use any mathcal symbols AFAICT

mtanneau commented 5 days ago

In equation (3) of DC-OPF, there is a minus and a plus on the left hand side. Shouldn't they both be plus (usually)?

Are you referring to the sign of the power flow variables?

In AC (and SOC) formulation, we have "to" and "from" flows pf_fr and pf_to variables. In the DC formulation, we only consider one flow variable per branch, representing the active power flow from the source bus to the destination bus. The signs in Eq. (3) of the DC-OPF formulation reflect the orientation of the branches. The left-hand side represents the active power injection at bus i, and the right-hand side represents the (constant) active power withdrawal at that bus.