Choice Model
__init__
__init__(
name: str,
type: Literal["logit", "pods"],
random_generator: Generator | None = None,
)
Create a choice model object.
Parameters:
-
name
(str
) –Name of the choice model.
-
type
(Literal['logit', 'pods']
) –Type of the choice model.
-
random_generator
(Generator
, default:None
) –Random number generator. If not provided, a default generator is used.
add_parm
Add a parameter value to the choice model
get_dwm_penalty
get_dwm_penalty(
choice_model: ChoiceModel,
distance: int,
startTime: int,
endTime: int,
path: Path,
reference_fare: float,
debug: bool,
) -> float
Get DWM penalty - used for Unit Tests
get_time_disutility
Get time (short connection and/or long elapsed) penalty - used for Unit Tests
get_window
get_window(
dmd: Demand, midpoint: int, distance: int, z_val: float
) -> tuple[int, int]
Get decision window start & end - used for Unit Tests