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
When no alternative is found in a choice model, log which terms in the utility turn off all alternatives since this is really helpful info in debugging.
High
The text was updated successfully, but these errors were encountered:
Often times a choice model cannot select an alternative since all alternatives are unavailable. This is usually due to a data and/or expression issue/inconsistency. For example, school location choice may not be able to select a school location zone for a student if the school location must be within X miles of the home zone and there is no school enrollment in the zonal land use data for zones within X miles of the household and therefore no valid school zones. In this case, the model throws an exception that no school location can be found. It would be helpful in this situation to log which expressions turn off alternatives since this is typically a big clue in figuring out what the problem might be. In the example above there are two relevant expressions: school enrollment > 0 and school distance < X. Together, these two expressions return -999 (or similar) for all alternatives, thereby making no alternative available. If no alternative can be found, then ActivitySim should log the expressions that turn off alternatives. I think we can specify turning off an alternative as returning something like -999 or -9999 or < -100. I think ActivitySim could log something like "No alternative found. Note expressions 'school enrollment > 0' and 'school distance < X' turned off alternatives."
The text was updated successfully, but these errors were encountered: