Open knoxsp opened 4 years ago
Thanks Steve, it looks good to me
For clarification, we would like to have the multi-scenarios running in pynsim in a sequential?? mode.
timesteps = [1, 2]
d1_demands = {
1: [9, 10],
2: [11, 12]
}
d2_demands = {
1: [100, 101],
2: [110, 111]
}
Pysim will solve Scenario 1:
timesteps = [1, 2]
d1_demands = {
1: 9,
2: 11
}
d2_demands = {
1: 100,
2: 110
}
Scenario 2:
timesteps = [1, 2]
d1_demands = {
1: 10,
2: 12
}
d2_demands = {
1: 100,
2: 110
}
Scenario 3:
timesteps = [1, 2]
d1_demands = {
1: 9,
2: 11
}
d2_demands = {
1: 101,
2: 111
}
Scenario 4:
timesteps = [1, 2]
d1_demands = {
1: 10,
2: 12
}
d2_demands = {
1: 101,
2: 111
}
The previous 4 scenarios will be solved sequentially?? one after the other.
Consider a use case where you want to run multiple variations of a simulation with different inputs, for example damand scenarios.
Currently this is achieved by running multiple pynsim simulations, and managing the scenarios externally. A more neat solution would be for pynism to manage this itself.
In practice, this would means applying multiple values to a node within a time-step.
To give a pseudo-code example:
The simulation would look like:
in the new system, the simulation woulg look like: