BusInjectionModel.jl

Documentation for BusInjectionModel.jl

A work-in-progress package for optimal power flow (OPF) models based on the bus injection model.

This package is part of a federation of packages to support OPF modeling:

  • CommonOPF provides the basis for BusInjectionModel.jl and:
  • BranchFlowModel, which provides a similar interface to BusInjectionModel.jl.
using BusInjectionModel
using CommonOPF
using JuMP
using Ipopt

m = JuMP.Model(Ipopt.Optimizer)
net = CommonOPF.Network("path/to/network/yaml-or-opendss-file")
BusInjectionModel.build_bim_rectangular!(m, net, Unrelaxed)
# set objective
optimize!(m)