Giter Site home page Giter Site logo

battery_model's Issues

Fix SOC in last hour for full year optimization

I'm starting SOC at half of maximum. Finish as same in last hour to avoid model discharging all power? The max discharge in 24-hour constraint might prevent this though - check results.

Explore lmp data

Nothing too fancy. Maybe a heat map of mean/median price by hour/week?

Multiple-period optimization

Once #2 is done, wrap the code in a function. Allow for parameter inputs (length of look-ahead, length of schedule to keep). Output charge state, charge/discharge data. Use outputs to ensure charge continuity and build record of activity of the full year.

To keep the 24-hour discharge constraint, each optimization will probably need to know the proceeding 23-hour discharge schedule. I suppose this could be done by passing in the entire discharge schedule up to that point and using the values as a constraint.

Potentially incorrect operator in the Positive_charge Function

Background
The positive_charge function in the read battery_model.py file appears to constrain Eout when the S < Rmax.

Current Behavior
Currently the battery is exporting more power than it can hold. for example; When S = 100, RMax = 250 and eta = 0.90, Eout currently equals 105

Expected Behavior
the desired output should be as follows; When S = 100, RMax = 250 and eta = 0.90, Eout should equal 95

Possible Solution
In the positive_charge function switch the operator from divide to multiply

Aggregate results

Need to know most profitable month and plot dispatch/LBMP for the most profitable week. Aggregate and do calculations using pandas and the timestamp from original data.

Use integer index rather than datetime

I forgot about having to deal with daylight savings and don't think it's worth the bother to convert to UTC for this exercise. Just use 8760 instead.

Write out parameters

All parameters/constraints/variables and the objective. Might as well get in equations to keep as a nice reference when writing code.

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.