-
Notifications
You must be signed in to change notification settings - Fork 457
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
Default setting for 'mutationRangeStep ' #3647
Comments
Hi Luk, There is now a mutationRangeStep and a mutationRange. The step is indeed set by default to 1 second, whereas the mutationRange is 1800 seconds. |
hello Joshka,
- i am using 5 minutes in my simulations (after discovering the strange
default value)
thanks for your help
luk
…On Mon, Jan 13, 2025 at 4:01 PM Joschka Bischoff ***@***.***> wrote:
Hi Luk,
I have worked a bit on the TimeAllocationMutator during the last code
sprint, there is only one TimeMutator now left:
https://github.com/matsim-org/matsim-libs/blob/fb982e55294034d1afe44084b7b0322bcd9d17a0/matsim/src/main/java/org/matsim/core/population/algorithms/MutateActivityTimeAllocation.java
There is now a mutationRangeStep and a mutationRange. The step is indeed
set by default to 1 second, whereas the mutationRange is 1800 seconds.
The step can be set to e.g., 60 seconds or 5 minutes to achieve more
relevant time mutations.
—
Reply to this email directly, view it on GitHub
<#3647 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHKFB4E45Q3EKQ737PFD4D2KPIN5AVCNFSM6AAAAABUIR5WY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOBXGM2DGMBSGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
make sense ? In
org/matsim/core/population/algorithms/PlanMutateTimeAllocation.java
and
org/matsim/core/population/algorithms/PlanMutateTimeAllocationSimplified.java
the second term inalways equals zero for the default setting due to the 'double to int' type casting.
Hence, the default value does not induce timeMutation.
This is because
(int)(someDoubleValue)
uses the 'rounding to zero method';see https://docs.oracle.com/javase/specs/jls/se17/html/jls-5.html#jls-5.1.3
logFile.log
It now just says<!-- Mutation Range Step, default = 1 second -->
which is correct but may be insufficient.The text was updated successfully, but these errors were encountered: