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
  Question on UC_ATTR charlene.barnet 4 151 30-06-2025, 05:12 PM
Last Post: charlene.barnet
  Question on EFF raghavsarda 6 294 18-06-2025, 03:55 PM
Last Post: Antti-L
  A quick question of VAR_Fin and VAR_Fout [email protected] 3 225 11-06-2025, 09:10 PM
Last Post: Antti-L
  A quick question of cost_salv and price [email protected] 1 202 05-06-2025, 11:39 PM
Last Post: Antti-L
  A quick question to further understand INPUT and SHARE-IN [email protected] 9 997 08-05-2025, 07:47 PM
Last Post: [email protected]
  A question about COM_FR [email protected] 2 411 08-05-2025, 07:35 PM
Last Post: [email protected]
  A quick question about Cost_INV [email protected] 8 940 25-04-2025, 08:19 PM
Last Post: Lukas
  A quick question about day-by-day connectiveness [email protected] 3 503 09-04-2025, 05:54 PM
Last Post: Antti-L
  User SETs janis 7 1,297 31-03-2025, 02:55 PM
Last Post: janis
  User Constraint not Binding slevinson 31 10,325 24-03-2025, 07:32 PM
Last Post: AKanudia

Forum Jump:


Users browsing this thread: 1 Guest(s)