Giter VIP home page Giter VIP logo

Comments (3)

ADGEfficiency avatar ADGEfficiency commented on June 18, 2024

Hi Tom,

This does seem like a real bug - Gross export during the $/MWh 200 price period should be 1 MW, with losses of 0.1 MW and net export of 0.9 MW.

The Export and Losses are ok (they sum to one) - the issue is with the Gross and Net, which I think is calclulated in generate_outputs.

from energy-py-linear.

ADGEfficiency avatar ADGEfficiency commented on June 18, 2024

Fixed this - the issue was in Battery.calc_net - changed to net = import - export - loss

This now results in

[OrderedDict([('Import [MW]', 1.0),
              ('Export [MW]', 0.0),
              ('Gross [MW]', 1.0),
              ('Net [MW]', 1.0),
              ('Losses [MW]', 0.0),
              ('Charge [MWh]', 0.0),
              ('Prices [$/MWh]', 100),
              ('Forecast [$/MWh]', 100),
              ('Actual [$/1hr]', 100.0),
              ('Forecast [$/1hr]', 100.0)]),
 OrderedDict([('Import [MW]', 0.0),
              ('Export [MW]', 0.90909091),
              ('Gross [MW]', -0.90909091),
              ('Net [MW]', -1.000000001),
              ('Losses [MW]', 0.090909091),
              ('Charge [MWh]', 1.0),
              ('Prices [$/MWh]', 200),
              ('Forecast [$/MWh]', 200),
              ('Actual [$/1hr]', -200.00000020000002),
              ('Forecast [$/1hr]', -200.00000020000002)]),
 OrderedDict([('Import [MW]', None),
              ('Export [MW]', None),
              ('Gross [MW]', None),
              ('Net [MW]', None),
              ('Losses [MW]', None),
              ('Charge [MWh]', 0.0),
              ('Prices [$/MWh]', None),
              ('Forecast [$/MWh]', None),
              ('Actual [$/1hr]', None),
              ('Forecast [$/1hr]', None)])]

from energy-py-linear.

tomharvey avatar tomharvey commented on June 18, 2024

👍

from energy-py-linear.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.