Veda2.0 Released!


A question about User Constraint
#1
Sorry to bother again.
I just start to learn how to use Process set and Commodity set. And is demo11, it creat a Process set called PP_RENNEW. Then it was used to specifies a minimum renewable penetration share.
I saw the value is negative and Iwant to know why. If I change it to postive, the constraint will be invalid?


Attached Files Thumbnail(s)
   
Reply
#2
> I saw the value is negative and I want to know why.

It is due to basic algebra. The default form of inequality constraints is such that the terms referring to variables are all on the LHS (Left-Hand-Side). So, if your constraint is something like:

  SUM({p ∈ PP_RENEW }, 1×VAR_FLO(REG1,2050,p,ELC))  ≥  0.2×VAR_COMPRD(REG1,2050,ELC)

In the standard form the it will thus be:

  SUM({p ∈ PP_RENEW }, 1×VAR_FLO(REG1,2050,p,ELC)) − 0.2×VAR_COMPRD(REG1,2050,ELC) ≥  0

As you can see, the sign of the term referring to VAR_COMPRD has been changed due to moving it onto the LHS. And because of that, the UC_COMPRD coefficient must be −0.2 when using this default arrangement. The negative per cent values in your screenshot are defining exactly those UC_COMPRD values on the LHS. Alternatively, one can also explicitly tell the model generator, which terms are supposed to be on the LHS and which are on the RHS, but that's more like an advanced option.
[+] 1 user Likes Antti-L's post
Reply
#3
(07-06-2024, 02:46 PM)Antti-L Wrote: > I saw the value is negative and I want to know why.

It is due to basic algebra. The default form of inequality constraints is such that the terms referring to variables are all on the LHS (Left-Hand-Side). So, if your constraint is something like:

  SUM({p ∈ PP_RENEW }, 1×VAR_FLO(REG1,2050,p,ELC))  ≥  0.2×VAR_COMPRD(REG1,2050,ELC)

In the standard form the it will thus be:

  SUM({p ∈ PP_RENEW }, 1×VAR_FLO(REG1,2050,p,ELC)) − 0.2×VAR_COMPRD(REG1,2050,ELC) ≥  0

As you can see, the sign of the term referring to VAR_COMPRD has been changed due to moving it onto the LHS. And because of that, the UC_COMPRD coefficient must be −0.2 when using this default arrangement. The negative per cent values in your screenshot are defining exactly those UC_COMPRD values on the LHS. Alternatively, one can also explicitly tell the model generator, which terms are supposed to be on the LHS and which are on the RHS, but that's more like an advanced option.
Thank you Antti! You help me a lot!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Making annual vehicle sale constraint for different period length BSR 3 62 17-01-2025, 05:33 PM
Last Post: Antti-L
  Power output constraint - EV battery Kristina.Haaskjold 2 227 18-11-2024, 06:20 PM
Last Post: Antti-L
  A question about timeslice [email protected] 1 189 30-09-2024, 01:23 AM
Last Post: Antti-L
  A quick question about hydrogen storage [email protected] 0 161 11-09-2024, 12:17 AM
Last Post: [email protected]
  question on battery modeling Mahmoud 2 367 28-08-2024, 09:57 PM
Last Post: Mahmoud
  User cosnstrain on aggregated commodity (emission) Lukas 1 196 26-08-2024, 09:15 PM
Last Post: Antti-L
  User Constraint not Binding slevinson 22 7,156 19-08-2024, 12:57 PM
Last Post: VictorG
  A question about EU-TIMES [email protected] 1 254 19-08-2024, 12:07 AM
Last Post: Antti-L
  VEDA2 Question Antti-L 14 2,883 13-07-2024, 06:21 PM
Last Post: AKanudia
  A question about Run Manager Lee 2 537 25-06-2024, 02:28 PM
Last Post: Lee

Forum Jump:


Users browsing this thread: 1 Guest(s)