Coder Social home page Coder Social logo

hopp's Introduction

Hybrid Optimization and Performance Platform

As part of NREL's Hybrid Energy Systems Research, this software assesses optimal designs for the deployment of utility-scale hybrid energy plants, particularly considering wind, solar and storage.

Software requirements

  • Python version 3.5+ 64-bit

Installing from Source

  1. Using Git, navigate to a local target directory and clone repository:

    git clone https://github.com/NREL/HOPP.git
    
  2. Open a terminal and navigate to /HOPP

  3. Create a new virtual environment and change to it. Using Conda and naming it 'hopp':

    conda create --name hopp python=3.8 -y
    conda activate hopp
    
  4. Install requirements:

    conda install -c conda-forge coin-or-cbc -y
    conda install -c conda-forge shapely==1.7.1 -y
    pip install -r requirements.txt
    

    Note if you are on Windows, you will have to manually install Cbc: https://github.com/coin-or/Cbc

  5. Run install script:

    python setup.py develop
    
  6. The functions which download resource data require an NREL API key. Obtain a key from:

    https://developer.nrel.gov/signup/

  7. To set up the NREL_API_KEY required for resource downloads, you can create an Environment Variable called NREL_API_KEY. Otherwise, you can keep the key in a new file called ".env" in the root directory of this project.

    Create a file ".env" that contains the single line:

    NREL_API_KEY=key
    
  8. Verify setup by running an example:

    python examples/simulate_hybrid.py
    

Installing from Package Repositories

  1. HOPP is available as a PyPi package:

    pip install HOPP
    

    or as a conda package:

    conda install hopp -c nrel -c conda-forge -c sunpower
    

    NOTE: If you install from conda you will need to install global-land-mask from PyPi:

    pip install global-land-mask
    
  2. To set up NREL_API_KEY for resource downloads, first refer to section 7 and 8 above. But for the .env file method, the file should go in the working directory of your Python project, e.g. directory from where you run python.

Examples

The examples can be run by installing HOPP, then cloning the repo and calling each example file.

Basic Simulation

python examples/simulate_hybrid.py

Flicker Map

python examples/flicker.py

Single Location Analysis

python examples/analysis/single_location.py

Wind Layout Optimization

python examples/optimization/layout_opt/wind_run.py

Hybrid Layout Optimization

python examples/optimization/layout_opt/hybrid_run.py

HOPP-demos

The https://github.com/dguittet/HOPP-demos repo contains a more full featured example with detailed technical and financial inputs, a few scenarios and the optimal PV, Wind, and Battery design results.

hopp's People

Contributors

barker59 avatar bayc avatar caitlynclark avatar dguittet avatar jmartin4nrel avatar matthew-boyd avatar mrossol avatar pjstanle avatar qualand avatar

Watchers

 avatar

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.