lopf

75 views
Skip to first unread message

maryam...@gmail.com

unread,
Oct 14, 2016, 7:40:46 AM10/14/16
to pypsa
Hi,

First of all thank you for useful informations about Pypsa.I worte a simple program acutally a small net in pypsa with  2 buses , 2generators and 1 line .I would like to do optimal power flow (lopf) in this small net, but lopf doesn't work in net however it works for power flow (pf) .
Please guide me .What should i do?
Thanks
Maryam


Tom Brown

unread,
Oct 14, 2016, 10:12:32 AM10/14/16
to py...@googlegroups.com
Dear Maryam,

If the PF works but the LOPF doesn't, probably the interface with the
solver isn't working. The solver is an external program for the
optimisation that PyPSA calls, see the installation notes here:

http://pypsa.org/doc/installation.html#getting-a-solver-for-linear-optimisation

If these notes don't help, please send to the list the error output and
the versions of your software, including details on the solver you're using.

Thanks,

Tom
> --
> You received this message because you are subscribed to the Google
> Groups "pypsa" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to pypsa+un...@googlegroups.com
> <mailto:pypsa+un...@googlegroups.com>.
> To post to this group, send email to py...@googlegroups.com
> <mailto:py...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/pypsa/15374d1b-e1d3-4763-9246-7b70b52b985f%40googlegroups.com
> <https://groups.google.com/d/msgid/pypsa/15374d1b-e1d3-4763-9246-7b70b52b985f%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
Tom Brown
Postdoctoral Researcher
Frankfurt Institute for Advanced Studies
https://fias.uni-frankfurt.de/physics/schramm/complex-renewable-energy-networks/
Personal site: http://www.nworbmot.org
Phone: +49 69 798 47693

maryam...@gmail.com

unread,
Oct 14, 2016, 10:31:05 AM10/14/16
to pypsa
 Thanks for your answer , i have the solver and new version of  packages , but accutally the equation doesn't solve.I send my file.



Slack bus is My bus1
# ==========================================================
# = Solver Results                                         =
# ==========================================================
# ----------------------------------------------------------
#   Problem Information
# ----------------------------------------------------------
Problem:
- Name: unknown
  Lower bound: 0.0
  Upper bound: 0.0
  Number of objectives: 1
  Number of constraints: 7
  Number of variables: 6
  Number of nonzeros: 11
  Sense: minimize
# ----------------------------------------------------------
#   Solver Information
# ----------------------------------------------------------
Solver:
- Status: ok
  Termination condition: optimal
  Statistics:
    Branch and bound:
      Number of bounded subproblems: 0
      Number of created subproblems: 0
  Error rc: 0
  Time: 0.012000560760498047
# ----------------------------------------------------------
#   Solution Information
# ----------------------------------------------------------
Solution:
- number of solutions: 0
  number of solutions displayed: 0
name  My Slack  My generator
now        0.0           0.0
name  My line1
now        0.0
name  My bus1  My bus2
now       0.0     -0.0
name  My bus1  My bus2
now       1.0      1.0

opf.py

Tom Brown

unread,
Oct 14, 2016, 10:36:19 AM10/14/16
to py...@googlegroups.com
Maryam,

The LOPF has solved correctly. You have no loads in the model, so the
generators dispatch at 0 and there are also then no flows in the model.

TOm
> > an email to pypsa+un...@googlegroups.com <javascript:>
> > <mailto:pypsa+un...@googlegroups.com <javascript:>>.
> > To post to this group, send email to py...@googlegroups.com
> <javascript:>
> > <mailto:py...@googlegroups.com <javascript:>>.
> <https://groups.google.com/d/msgid/pypsa/15374d1b-e1d3-4763-9246-7b70b52b985f%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/optout>.
> --
> You received this message because you are subscribed to the Google
> Groups "pypsa" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to pypsa+un...@googlegroups.com
> <mailto:pypsa+un...@googlegroups.com>.
> To post to this group, send email to py...@googlegroups.com
> <mailto:py...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/pypsa/236f8ce2-00f8-44d1-8074-0ef6eb239394%40googlegroups.com
> <https://groups.google.com/d/msgid/pypsa/236f8ce2-00f8-44d1-8074-0ef6eb239394%40googlegroups.com?utm_medium=email&utm_source=footer>.

maryam...@gmail.com

unread,
Oct 14, 2016, 10:43:02 AM10/14/16
to pypsa
but why  does it solve without load in pf?

Tom Brown

unread,
Oct 14, 2016, 10:52:06 AM10/14/16
to py...@googlegroups.com
Both the PF and the LOPF have solved, I don't understand the question.

The PF gives the same, trivial solution of all voltages being 1.
magnitude and reference voltage angle. The generators have no set points
p_set, so they also dispatch at zero.
> https://groups.google.com/d/msgid/pypsa/236f8ce2-00f8-44d1-8074-0ef6eb239394%40googlegroups.com
> <https://groups.google.com/d/msgid/pypsa/236f8ce2-00f8-44d1-8074-0ef6eb239394%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/pypsa/236f8ce2-00f8-44d1-8074-0ef6eb239394%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/pypsa/236f8ce2-00f8-44d1-8074-0ef6eb239394%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> but why does it solve without load in pf?
>
> --
> You received this message because you are subscribed to the Google
> Groups "pypsa" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to pypsa+un...@googlegroups.com
> <mailto:pypsa+un...@googlegroups.com>.
> To post to this group, send email to py...@googlegroups.com
> <mailto:py...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/pypsa/1149dc12-ea09-4f0a-9e9f-26748335ea9e%40googlegroups.com
> <https://groups.google.com/d/msgid/pypsa/1149dc12-ea09-4f0a-9e9f-26748335ea9e%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages