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
  A quick question about Cost_INV [email protected] 8 358 25-04-2025, 08:19 PM
Last Post: Lukas
  A quick question to further understand INPUT and SHARE-IN [email protected] 1 63 23-04-2025, 04:54 PM
Last Post: Antti-L
  A quick question about day-by-day connectiveness [email protected] 3 186 09-04-2025, 05:54 PM
Last Post: Antti-L
  User SETs janis 7 370 31-03-2025, 02:55 PM
Last Post: janis
  User Constraint not Binding slevinson 31 8,382 24-03-2025, 07:32 PM
Last Post: AKanudia
Bug user constraint nukelucas 4 286 13-03-2025, 09:07 PM
Last Post: nukelucas
  PCG Observation and question Antti-L 19 7,033 06-02-2025, 12:42 AM
Last Post: olexandr
  Power output constraint - EV battery Kristina.Haaskjold 5 588 23-01-2025, 07:19 PM
Last Post: Kristina.Haaskjold
  Making annual vehicle sale constraint for different period length BSR 3 299 17-01-2025, 05:33 PM
Last Post: Antti-L
  A question about timeslice [email protected] 1 300 30-09-2024, 01:23 AM
Last Post: Antti-L

Forum Jump:


Users browsing this thread: 1 Guest(s)