Hello all,
What if I want to define a new objective for running OPF in PowerModelsDistribution.jl? How can I do this? If someone can share me an example, I would really appreciate it.
Thank you!
Hello all,
What if I want to define a new objective for running OPF in PowerModelsDistribution.jl? How can I do this? If someone can share me an example, I would really appreciate it.
Thank you!
You can create model without optimising as follows:
pm = instantiate_mc_model(case, SOCConicUBFPowerModel, build_mc_opf);
Inside pm
is a JuMP model that you can then access and modify as needed:
pm.model
so I can write and add constraints and variables as required?
Yes. If you run into problems, please make a post with a reproducible example of what you are trying to do. It always helps to have a specific question rather than a generic “can I do X”
will do, thank you!