Hello
I am using PowerModelsDistribution.jl to solve my 3-phase OPF, how can I only change the objective function? By default it is the minimization of fuel cost, I want to replace it with a non-linear function.
Thanks in advance.
Hello
I am using PowerModelsDistribution.jl to solve my 3-phase OPF, how can I only change the objective function? By default it is the minimization of fuel cost, I want to replace it with a non-linear function.
Thanks in advance.
Hi @alireza33zz, welcome to the forum.
See Getting Started · PowerModelsDistribution
The pm
power model that you get from instantiate_model
has a .model
field that is a JuMP model. You can change this objective using JuMP.@objective(pm.model, Min, ... expression goes here...)
.