How do I model a "booster" in a linear ramp-up?

Hi guys!

I’m trying to model the following:

  • Let’s say Variable M grows at a constant rate, going from 0% to 10%, beginning in period 4 ending in period 16
    i can model that piece nicely using the ramp function:
ramp(timeStep, 4, 16, 0%, 10%)
  • Now I’d like to incorporate a booster. For each multiple of X spent in a period t, the growth rate should increase by y% (or by a factor y if that makes things easier) in that period t - and continue growing at the normal rate in all other periods until it reaches the target of 10%.

ideally the solution is in a way that start and end period as well as start and end values can be easily adjusted without having to modify formulas in multiple periods.

Thank you & Best Regards

What I’ve come up with is using 2 helper variables:

ramp =

ramp2 =

booster = {1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, …}

Looking good…

… wondering though whether there is an easier way ?

Thanks & Regards

Hey Fabian - we think that looks good! No easier way springs to mind.

1 Like