-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ControlSignal costs are calculated twice #2721
Comments
Removing the
The test modulations are |
likely, both |
Note that this is not the only place that recalculates the costs. |
The function (TransferWithCosts) calculates costs during execution. Closes: PrincetonUniversity#2721 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
The function (TransferWithCosts) calculates costs during execution. Partly closes: PrincetonUniversity#2721 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
The function (TransferWithCosts) calculates costs during execution. The expected results for the modulation simple test reflect halving of calculated costs: [20, 24, 28, 32, 36] -> [10, 12, 14, 16, 18] Partly closes: PrincetonUniversity#2721 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
The function (TransferWithCosts) calculates costs during execution. The expected results for the modulation simple test reflect halving of calculated costs: [20, 24, 28, 32, 36] -> [10, 12, 14, 16, 18] Partly closes: PrincetonUniversity#2721 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Considering duration cost uses an integrator by default, I wonder if instead removing the recalculation in Side note - this is also related to #2695 I think. |
The port function (TransferWithCosts) calculates costs during execution. The expected results for the modulation simple test reflect halving of calculated costs: [20, 24, 28, 32, 36] -> [10, 12, 14, 16, 18] Partly closes: PrincetonUniversity#2721 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Even if the getter is fixed the current overload of
Could this be why the costs appear to start at 8 in the |
Got it, I see that now. Makes sense.
Yes it could be. Right now the integration should be a couple steps too far after initialization, and after this issue is solved it should just be a single step ahead. |
The port function (TransferWithCosts) calculates costs during execution. The expected results for the modulation simple test reflect halving of calculated costs: [20, 24, 28, 32, 36] -> [10, 12, 14, 16, 18] Partly closes: PrincetonUniversity#2721 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
I think we should leave this open until all the other issues are investigated e.g.:
|
the Port
_update()
method is overloaded inControlSignal
with the following:All
ControlSignal
costs are aliases for the function parameters of theTransferWithCosts
function:thus the above method first calls the
TransferWithCosts
function, which calculates all the enabled costs for the current intensity and then proceeds to call executeself.compute_costs
with the current intensity again.The text was updated successfully, but these errors were encountered: