Giter Site home page Giter Site logo

pyomoapp's Introduction

##plugin name: PyomoExporter

The plug-in provides an easy to use tool for exporting data from HydraPlatform to custom Pyomo models. The basic idea is that this plug-in exports a network and associated data from HydraPlatform to a text file which can be imported into an existing Pyomo model.

###Using the command line tool

####Mandatory Args:

Option Short Parameter Description
--network -t NETWORK ID of the network where results will be imported to. Ideally this coincides with the network exported to Pyomo.
--scenario -s SCENARIO ID of the underlying scenario used for simulation
--template-id -tp TEMPLATE ID of the template used for exporting resources. Attributes that don't belong to this template are ignored.
--output -o OUTPUT Filename of the output file.

####Server-based arguments:

Option Short Parameter Description
--server_url -u SERVER_URL Url of the server the plugin will connect to Defaults to localhost.
--session_id -c SESSION_ID Session ID used by the calling software If left empty, the plugin will attempt to log in itself.

####Switches:

Option Short Description
--export_by_type -et Set export data based on types or based on attributes only, default is export data by attributes unless this option is set.

####Specifying the time axis

One of the following two options for specifying the time domain of the model is mandatory:

Option 1:

Option Short Parameter Description
--start-date -st START_DATE Start date of the time period used for simulation.
--end-date -en END_DATE End date of the time period used for simulation.
--time-step -dt TIME_STEP Time step used for simulation. The time step needs to be specified as a valid time length as supported by Hydra's unit conversion function (e.g.1 s, 3 min, 2 h, 4 day, 1 mon, 1 yr)

Option 2:

Option Short Parameter Description
--time-axis -tx TIME_AXIS Time axis for the modelling period (alist of comma separated time stamps).

##plugin name: PyomoAutoRun

The plug-in provides an easy way to:

        - Export a network from Hydra to a pyomo input text file.
        - Rum pyomo model.
        - Import a results into Hydra.

###Using the command line tool

####Mandatory Args:

Option Short Parameter Description
--network -t NETWORK ID of the network where results will be imported to. Ideally this coincides with the network exported to Pyomo.
--scenario -s SCENARIO ID of the underlying scenario used for simulation
--template-id -tp TEMPLATE ID of the template used for exporting resources. Attributes that don't belong to this template are ignored.
--output -o OUTPUT Filename of the output file.
--model -m MODEL Pyomo model file (*.py), needs to have a method called run_model which takes the datafile as an argument and return 2 lists containing results and model instances. Example is provided with the plugin

####Server-based arguments

Option Short Parameter Description
--server_url -u SERVER_URL Url of the server the plugin will connect to Defaults to localhost.
--session_id -c SESSION_ID Session ID used by the calling software If left empty, the plugin will attempt to log in itself.

####Switches:

Option Short Description
--export_by_type -et Set export data based on types or based on attributes only, default is export data by attributes unless this option is set.

####Specifying the time axis

One of the following two options for specifying the time domain of the model is mandatory:

Option 1:

Option Short Parameter Description
--start-date -st START_DATE Start date of the time period used for simulation.
--end-date -en END_DATE End date of the time period used for simulation.
--time-step -dt TIME_STEP Time step used for simulation. The time step needs to be specified as a valid time length as supported by Hydra's unit conversion function (e.g.1 s, 3 min, 2 h, 4 day, 1 mon, 1 yr)

Option 2:

Option Short Parameter Description
--time-axis -tx TIME_AXIS Time axis for the modelling period (a list of comma separated time stamps).

##plugin name: PyomoRunImport

The plug-in provides an easy way to:

        - Rum pyomo model.
        - Import a results into Hydra.

###Using the command line tool

####Mandatory Args:

Option Short Parameter Description
--network -t NETWORK ID of the network where results will be imported to. Ideally this coincides with the network exported to Pyomo.
--scenario -s SCENARIO ID of the underlying scenario used for simulation
--template-id -tp TEMPLATE ID of the template used for exporting resources. Attributes that don't belong to this template are ignored.
--output -o OUTPUT Filename of the output file.
-- model -m Pyomo model Pyomo model file (*.py), needs to file implement a method called run_model which takes the datafile as an argument and returns 2 lists containing results and model instances. Example isdistributed with the plugin

Server-based arguments

Option Short Parameter Description
--server_url -u SERVER_URL Url of the server the plugin will connect to defaults to localhost.
--session_id -c SESSION_ID Session ID used by the calling software If left empty, the plugin will attempt to log in itself.

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.