Veda2.0 Released!


user constraint
#1
I'd like to give a bound on the ratio of diesel to gasoline ratio. Is the user constraint I modeled right?
The formulation is
   Diesel/Gasoline《1.2

~UC_T
UC_N UC_ATTR~LHS UC_ATTR~RHS Pset_Set Pset_PN Pset_CO Cset_SET Cset_CN Attribute Year LimType UC_COMPRD~LHS UC_COMPRD~RHS UC_RHSRTS UC_RHSRTS~0
UC_GDRATIO COMPRD COMPRD,SYNC OILGAS 2015 UP 1.5 0 5
OILGAS 2050 1.2
OILDST 2015 1
OILDST 2050 1
Reply
#2

It looks almost right to me.  But make sure the ~UC_T is above the last index column (LimType in your example).

In addition, the UC_ATTR specification requires two indexes, and so I wonder what is the purpose of your UC_ATTR~LHS, with just COMPRD under it?  I would suggest to remove that column.

Reply
#3
Thanks a lot!
I've changed the location of ~UC_T, and it does work.
Reply
#4
And when I remove the  column of UC_ATTR~LHS, it also works. What situation can the UC_ATTR~LHS be ignored? Only the same attribute with RHS?
Reply
#5
In your example, you want to apply the SYNC modifier to the COMPRD component of the constraint on the RHS side, and therefore you need the UC_ATTR~RHS with COMPRD,SYNC. But for the LHS side, you are obviously not applying any modifier to any component of this constraint. Therefore, you should not specify any UC_ATTR~LHS.
Reply
#6
Thanks a lot!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Tradeoff for user-defined objective function Sandro_Luh 27 16,570 14-02-2023, 03:50 PM
Last Post: Antti-L
  user constraint on subset of emissions Stefan 2 2,832 10-11-2021, 08:26 PM
Last Post: Stefan
  DACCS Emissions Constraint not working UKTM User 10 9,407 07-10-2021, 03:30 PM
Last Post: UKTM User
  Functionality of the RPS constraint xavier 3 4,360 02-05-2021, 07:07 PM
Last Post: Antti-L
  User constraint for minimum storage activity Anjali 4 4,618 15-01-2021, 07:38 PM
Last Post: Anjali
  Issue with constraint: Error Code 172 NeilGrant 5 7,414 28-05-2020, 02:08 PM
Last Post: NeilGrant
  Aggregated constraint in a VT_file? Pernille.S 3 5,611 19-09-2019, 01:46 PM
Last Post: Antti-L
  Constraint on LUMPINV kristofferand 1 4,113 03-09-2019, 04:39 PM
Last Post: Antti-L
  Minimum Utilization Constraint on activity Giulia Realmonte 5 10,205 23-04-2019, 01:53 PM
Last Post: NeilGrant
  Help with user constraint newbie1 12 18,892 02-06-2018, 07:07 PM
Last Post: newbie1

Forum Jump:


Users browsing this thread: 1 Guest(s)