Git Product home page Git Product logo

r_to_gams's Introduction

R_to_GAMS

This repository contains fuctions to facilitate the transfer of data between R and GAMS through the creation and reading of GDX files. A sample project is included to illustrate the operation of the developed functions. I developed these functions in collaboration with Javier Saez Gallego during my PhD studies at the Technical University of Denmark.

The functions that facilitate the read/write of GDX files are contained in R_to_GDX.R, while their use is briefly demonstrated in R_to_GDX_Sample_Script.R. To run the script, you must change the path of the GAMS exectutable at the points indicated in the script to the path relevant for your system. R_to_GDX_Sample_Script.R builds the input GDX files required for the optimisation contained in Sample_Script.gms (which is part of the GAMS project Sample_project.gpr) using the functions contained in R_to_GDX.R. This is very simple optimisation problem that determines the optimal dispatch of power generation units to meet a time varying load. The outputs of this optimisation, the cost of meeting the load and the operating points of the generation units, are passed back to the R script through the Output.gdx file that is created by GAMS. These outputs are then read and reshaped to an easily understood form by the functions that we developed in R_to_GDX.R.

r_to_gams's People

Contributors

niamhoc avatar

Watchers

 avatar

Forkers

jsga

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.