Code Monkey home page Code Monkey logo

Comments (4)

danielhuppmann avatar danielhuppmann commented on May 28, 2024

This behaviour actually makes sense - currently, there is no mechanism forcing the newly installed capacity to be maintained in the first period, i.e. CAP_NEW(node, tec, vintage) does not have to equal CAP(node, tec, vintage, vintage). In an optimization problem, the model wouldn't build new capacity that it doesn't maintain.

In this particular case, I guess that the model just doesn't need the capacity, so it builds it (as defined) and immediately throws it away.

@ClaraLuisa, can you confirm?

More generally, one could add a new constraint like

CAPACITY_MAINTENANCE(node,inv_tec,vintage,vintage)$( map_tec_lifetime(node,inv_tec,vintage, vintage) AND NOT historical(vintage) )..
    CAP(node,inv_tec,vintage,vintage) =E=
    remaining_capacity(node,inv_tec,vintage, vintage) * (
* new capacity built in the current period (vintage == year)
        + ( duration_period(vintage) * CAP_NEW(node,inv_tec,vintage) )
    ) ;

from message_ix.

ClaraLuisa avatar ClaraLuisa commented on May 28, 2024

It does seem like @danielhuppmann is right on that the model just doesn't really need it and thus "throws it away". However, i would very much appreciate an extension to the maintenance equation as suggested by @danielhuppmann as this would be more realistic (also in the cost accounting).

from message_ix.

ClaraLuisa avatar ClaraLuisa commented on May 28, 2024

@danielhuppmann are you going to, or should I try to implement the equation suggested by you into the gams code.

from message_ix.

danielhuppmann avatar danielhuppmann commented on May 28, 2024

@ClaraLuisa it would be great if you could give it a try!

Thinking about it, you most likely wouldn't even need a new equation, just refine the existing CAPACITY_MAINTENANCE to apply only if vintage < year (removing the section with CAP_NEW) and then adding the blurb I suggested earlier.

And you don't even need a new test for it, the 'Westeros' and 'Austria' tutorials should catch it if anything goes awry...

from message_ix.

Related Issues (20)

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.