Comments (4)
By using the argument ACPPowerModel
you are building a JuMP model with nonlinear terms like a*b*cos(c-d)
. For a quadratic version of the problem use ACRPowerModel
, if that works for you please close this issue.
This page has information about the variety of formulations that are supported, https://lanl-ansi.github.io/PowerModels.jl/stable/formulation-details/.
from powermodels.jl.
Thanks, it works well for the solve_opf
function. When trying to include storage units, I get the same error message again even though I am using the argument ACRPowerModel
. Is there also a workaround for that problem?
using PowerModels
using Gurobi
using MOI
data = parse_file("./test/data/matpower/case5_strg.m")
data_t3 = replicate(data,3)
result_strg = solve_mn_op_strg(data_t3, ACRPowerModel, optimizer_with_attributes(Gurobi.Optimizer, MOI.Silent() => true,"NonConvex" => 2))
from powermodels.jl.
This is because the AC model for storage includes some terms that are not QCQP (which is what gurobi expects). The key constraint is the inverter loss term in equation 9 in this documentation, https://lanl-ansi.github.io/PowerModels.jl/stable/storage/.
In the related technical report on the storage model, https://arxiv.org/abs/2004.14768, we proposed that you solve the AC version of the problem with a local solver (e.g. Ipopt) and then use a convex relaxation for bounding the solution quality. This seemed to work pretty well. Reference implementations can be found here, https://github.com/lanl-ansi/energy-storage-example
Another option would to change the storage formulation you are considering so that it is compatible with a QCQP model, for example by ignoring the inverter losses.
from powermodels.jl.
Thanks!
from powermodels.jl.
Related Issues (20)
- GenericPowerModel HOT 2
- My own objective function HOT 4
- Can't parse matpower file HOT 3
- Voltage magnitude increases HOT 2
- Trying to solve DC but PowerModels crash with a Quadratic function error HOT 4
- Unable to set lower bound to -Inf. To remove the bound, use `delete_lower_bound`. HOT 2
- Matpower case21k. AssertionError: occursin(".", matrix_assignment) HOT 4
- Generator bus voltage for pti files HOT 2
- Creating Result dict from JuMP model HOT 1
- I encountered some problems while testing PowerModels HOT 2
- Unravelling the mystery of #861 HOT 3
- SDP HOT 1
- Data Parsing Support for CIM/CGMES HOT 4
- Reproducing power flow results HOT 2
- Piecewise-linear cost objective calculation HOT 2
- Undefined variables in function calc_theta_delta_bounds HOT 2
- Drop Multiconductor Support HOT 5
- DCPLL Support for Power Flow Formulations
- Support for Duals of All Constraints
- Drop Support for Run Functions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powermodels.jl.