Coder Social home page Coder Social logo

gamsr's People

Contributors

arnyeinstein avatar rengervn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gamsr's Issues

Check for empty parameters

The compress = TRUE causes an errory when using rgd.param from gdxrrw on an empty parameter. Same probably for variables.

Long comments not handled

library(gamsr)

Load file

gdx = "C:/Daten/Projekte/UNSEEN/data/THG95_2050.gdx"

myselectedcols <- c("ConvBase_CostInfo")

import_gdxfile(gdx, selection = myselectedcols)

He got the following error:
Fehler in source("gdxtext.R") : gdxtext.R:199:245: unerwartetes Symbol
198: arameter'
199: l.all[[40]] <- list(name ='ConvBase_CostInfo', data = ConvBase_CostInfo, description = 'Cost overview, all outputs in kEUR, Caution: specific costs are average values over yearBuild; allInstC

We guess the error occurs due to the unusual length of the explanatory text of the parameter “ConvBase_ConstInfo”. Here its declaration:

PARAMETER ConvBase_CostInfo( nodesModelAll, convBase_technologies, CostInfoSet, years) "Cost overview, all outputs in kEUR, Caution: specific costs are average values over yearBuild; allInstCaps = sum of all power plants which generate or don't generate electricity; totalCaps = sum addCaps + instCaps"

We fixed the issue by simply shortening the explanatory text.

By the way: Thanks for the package!

Code for the chapter II of your doctoral thesis

Hello, I am a Postgraduate student in South China University of Technolog. I have been reading your doctoral thesis Transportation Networks and Economic Equilibrium recently. I am particularly interested in the content of chapter II, A traffic equilibrium model with paid-parking search. I'm trying to implement your appendix code, but my code ability is very poor, and the appendix code you provided did not run through. Now I am about to face my master's thesis, I am so anxious. So, I hope to have your code support(chapter II), thank you.

My email: [email protected] or [email protected]

Best wishes!

Single quote in description not handled

Importing a gdx with a ' in a description causesto the following error:

Error in source("gdxtext.R") : gdxtext.R:2479:114: unexpected symbol
2478:  attributes(HARVCOST_SHAREFIXED)$type <- 'scalar'
2479:  l.all[[496]] <- list(name ='HARVCOST_SHAREFIXED', data = HARVCOST_SHAREFIXED, description = 'share of the Georg's

Presumably, some escaping should be done on line 112 of import_gdxfile.R.

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.