Random Function and Subscript
Posted: Sat Jan 30, 2021 4:32 pm
Hello there,
It has been a while i've been here. Hope all is good, especially in this pandemic.
Anyway, i wolud like to ask regarding on this one issue that i got upon completing my model.
I have a variable that i have assigned to a subscript. This subscript contains 10 elements. Let me put it this way;
variable name : Generator A
subscript : Units Gen A
subscript elements : Unit 1 - Unit 10
What i want is, i want Generator A to generate at random any value ranged in Total Demand. By that, i mean each elements in Generator A will be having a random values according to the range set in Total Demand. So the output will looks like this:
Generator A
[Unit 1] 10000
[Unit 2] 12790
[Unit 3] 0
................ and so on.
I'm so looking forward to any solution that u guys can give me. Thanks in advance.
It has been a while i've been here. Hope all is good, especially in this pandemic.
Anyway, i wolud like to ask regarding on this one issue that i got upon completing my model.
I have a variable that i have assigned to a subscript. This subscript contains 10 elements. Let me put it this way;
variable name : Generator A
subscript : Units Gen A
subscript elements : Unit 1 - Unit 10
What i want is, i want Generator A to generate at random any value ranged in Total Demand. By that, i mean each elements in Generator A will be having a random values according to the range set in Total Demand. So the output will looks like this:
Generator A
[Unit 1] 10000
[Unit 2] 12790
[Unit 3] 0
................ and so on.
I'm so looking forward to any solution that u guys can give me. Thanks in advance.