You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In numerous situations, deciding if a local search move is valid is the result of calling several functions in a row to check validity with regard to skills, capacity, time windows etc.
The current code-base usually uses something along the lines of:
From the tests I've been running based on #294, reduction in total solving time is somewhere around 5%, depending on problem type, number of threads and exploration level.
In numerous situations, deciding if a local search move is valid is the result of calling several functions in a row to check validity with regard to skills, capacity, time windows etc.
The current code-base usually uses something along the lines of:
This code does generate unnecessary checks because
another_check
it still called even iffirst_check
returnedfalse
.We should use
operator&&
instead to get the intended short-circuit evaluation behaviour.The text was updated successfully, but these errors were encountered: