Skip to content

Commit

Permalink
fixing bug in AC-TNEP formulation
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoffrin committed Feb 7, 2017
1 parent 180d82d commit b114c84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ PowerModels.jl Change Log
=================

### Staged
- Added missing function for AC-TNEP models

### v0.3.0
- Updated to JuMP v0.15 syntax
Expand Down
4 changes: 4 additions & 0 deletions src/form/acp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ function constraint_voltage{T <: AbstractACPForm}(pm::GenericPowerModel{T})
return Set()
end

function constraint_voltage_ne{T <: AbstractACPForm}(pm::GenericPowerModel{T})
# do nothing, this model does not have complex voltage constraints
end

function constraint_theta_ref{T <: AbstractACPForm}(pm::GenericPowerModel{T}, ref_bus)
c = @constraint(pm.model, getvariable(pm.model, :t)[ref_bus] == 0)
return Set([c])
Expand Down

0 comments on commit b114c84

Please sign in to comment.