The sample strategy does not repeat the same set of parameters during repetitions:
Expected output:
Running simulation 1/3 (X = 1, Y = 1, repetition 1/3)
Simulation finished in 0 seconds
Estimated time to finish all simulations: 14:47 (0 seconds)
Running simulation 2/3 (X = 1, Y = 1, repetition 2/3)
Simulation finished in 0 seconds
Estimated time to finish all simulations: 14:47 (0 seconds)
Running simulation 3/3 (X = 1, Y = 1, repetition 3/3)
Simulation finished in 0 seconds
Estimated time to finish all simulations: 14:47 (0 seconds)
Got:
Running simulation 1/3 (X = 1, Y = 1, repetition 1/3)
Simulation finished in 0 seconds
Estimated time to finish all simulations: 14:47 (0 seconds)
Running simulation 2/3 (X = 1, Y = 2, repetition 2/3)
Simulation finished in 0 seconds
Estimated time to finish all simulations: 14:47 (0 seconds)
Running simulation 3/3 (X = 2, Y = 1, repetition 3/3)
Simulation finished in 0 seconds
Estimated time to finish all simulations: 14:47 (0 seconds)
Model:
local MyModel = Model{
x = 0,
y = 0,
finalTime = 1,
init = function(self)
self.timer = Timer{
Event{action = function()
self.value = 2 * self.x ^2 - 3 * self.x + 4 + self.y
end}
}
end
}
import ('calibration')
MultipleRuns{
model = MyModel,
strategy = "sample",
parameters = {
x = Choice{min = 1, max = 2, step = 1},
y = Choice{min = 1, max = 2, step = 1},
},
quantity = 1,
repetition = 3,
output = {"value"}
}
The sample strategy does not repeat the same set of parameters during repetitions:
Expected output:
Got:
Model: