09-07-2025, 04:34 PM
I would like to introduce a user constraint to impose market shares per region. By that I mean bounds on the production of a commodity defining the contribution of each region to the total production of the commodity from all regions.
For example, a model with two regions REG1 and REG1, each has two processes PRC1 and PRC2, producing commodity COM1. The condition should be that 20%-30% of the production of COM1 should come from REG1 (regardless of which process), whereas the remaining 70%-80% should come from REG2.
As per the attached screenshot, my thinking was to use UC_COMPRD for COM1 combined with UC_FLO for the target regions and processes, while summing over regions (UC_Sets: R_S). However, the intended effect is not achieved. The constraint is not met. I wonder if this is a problem with the logic of the constraint formulation or it is more about the syntax.
Your feedback and tips are much appreciated.
For example, a model with two regions REG1 and REG1, each has two processes PRC1 and PRC2, producing commodity COM1. The condition should be that 20%-30% of the production of COM1 should come from REG1 (regardless of which process), whereas the remaining 70%-80% should come from REG2.
As per the attached screenshot, my thinking was to use UC_COMPRD for COM1 combined with UC_FLO for the target regions and processes, while summing over regions (UC_Sets: R_S). However, the intended effect is not achieved. The constraint is not met. I wonder if this is a problem with the logic of the constraint formulation or it is more about the syntax.
Your feedback and tips are much appreciated.

![[+]](https://forum.kanors-emr.org/images/collapse_collapsed.png)