Veda2.0 Released!


Making annual vehicle sale constraint for different period length
#1
Hi all,

I am curious if there is a way to limit annual vehicle sales and make it independent of time period length. So for example, I have the following UC on trucks sale:



In the main setup, we run the model with an annual resolution until 2050, which works perfectly. However, currently, for other purposes, the model should be run with a different time period structure. And when I switch to a smaller number of milestone years (with longer period length), the model needs higher limits on the RHS ( effectively multiplied by period length). But I need to do this manually or have a separate file for each period definitions.

So is there a way to define UCs' RHS with period length as a multiplier?

Thanks,
Bakytzhan
Reply
#2
> So is there a way to define UCs' RHS with period length as a multiplier?

Have you read the documentation? I had thought it gives a direct answer to that question, no?

  ● UC_TIME(uc_n,r,datayear)
  ● Default i/e: STD
  ● Used in user constraints. Adds a time constant to the RHS side.
  ● Multiplier for the number of years in model periods (static UCs), or between milestone years (dynamic UCs).

Does it not work for your purpose?
[+] 1 user Likes Antti-L's post
Reply
#3
Hi Antti,

Thanks for your answer.

Now it works properly. I was trying it previously, though I was also leaving UC_RHS with it. So without it, this works as it should be.

Thanks
Reply
#4
> I was trying it previously, though I was also leaving UC_RHS with it. So without it, this works as it should be.

To be more precise (for the sake of other readers), UC constraints never work without UC_RHS* being specified.  But by specifying UC_RHSRT = 0 (in your case) one can ensure that the RHS constant will be fully dependent on UC_TIME only.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  User Constraint not Binding slevinson 31 8,185 24-03-2025, 07:32 PM
Last Post: AKanudia
Bug user constraint nukelucas 4 264 13-03-2025, 09:07 PM
Last Post: nukelucas
  Issue with UC on cum subsidies for period of years janis 17 2,317 24-02-2025, 10:03 PM
Last Post: janis
  Power output constraint - EV battery Kristina.Haaskjold 5 562 23-01-2025, 07:19 PM
Last Post: Kristina.Haaskjold
  BEV: Battery Electric vehicle/Train anik 4 1,570 12-06-2024, 07:23 PM
Last Post: anik
  A question about User Constraint Lee 2 948 11-06-2024, 12:14 PM
Last Post: Lee
  Batteries input capacity constraint [email protected] 5 1,634 05-04-2024, 06:00 PM
Last Post: Antti-L
  TIAM - GHG constraint srchlela 19 9,212 17-08-2023, 06:49 PM
Last Post: Antti-L
  How to use ~MileStoneYears Table to declare an “EndYear” for each period? YuFeng 7 3,540 11-05-2023, 07:16 AM
Last Post: YuFeng
  Share constraint between two technology sets Anjali 1 1,460 02-05-2022, 12:36 AM
Last Post: Antti-L

Forum Jump:


Users browsing this thread: 1 Guest(s)