aeromaps.models.air_transport.aircraft_fleet_and_operations.fleet.fleet_numeric¶
FleetEvolution ¶
FleetEvolution(name='fleet_numeric', fleet_model=None, *args, **kwargs)
Bases: AeroMAPSModel
Compute per-aircraft fleet counts, production and disposal for all passenger markets.
model_type="custom": input/output names are built dynamically in
:meth:custom_setup once the fleet_model has been injected by
AeroMAPSProcess._initialize_disciplines.
Input variables
covid_start_year, covid_end_year_passenger, dummy_fleet_model_output
Global scalars / signals.
ask_{market_id}
ASK series for each passenger market (e.g. ask_short_range).
rpk_{market_id}
RPK series for each passenger market (e.g. rpk_short_range).
Output variables
ask_aircraft_value_dict, rpk_aircraft_value_dict,
aircraft_in_fleet_value_dict, aircraft_in_fleet_value_covid_levelling_dict,
aircraft_in_out_value_dict
Dicts keyed by full aircraft name — consumed by downstream cost/abatement models.
"<market.name>: Aircraft Production" / "<market.name>: Aircraft Disposal"
Aggregated series per market (e.g. "Short Range: Aircraft Production").
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/fleet/fleet_numeric.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | |
custom_setup ¶
custom_setup()
Build dynamic input/output names from the fleet's passenger markets.
Called by AeroMAPSProcess._initialize_disciplines immediately after
fleet_model has been set and before the discipline is wrapped.
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/fleet/fleet_numeric.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
compute ¶
compute(input_data)
Compute fleet evolution outputs for each passenger market.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_data
|
dict
|
Inputs containing market ASK/RPK series and COVID timing. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Fleet-level series and per-aircraft dictionaries. |
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/fleet/fleet_numeric.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 | |
SimpleFleetCount ¶
SimpleFleetCount(name='passenger_aircraft_fleet_count', fleet_model=None, *args, **kwargs)
Bases: AeroMAPSModel
Minimal fleet-count model: number of aircraft in fleet, per type and per market.
A deliberately stripped-down alternative to :class:FleetEvolution. For each
passenger market and each aircraft in the bottom-up fleet it computes only::
aircraft_in_fleet = ceil(aircraft_ask / productivity)
with aircraft_ask = aircraft_share / 100 * market_ask and productivity
the aircraft's ask_year (a scalar, or a per-year AeroMapsCustomDataType
interpolated via :func:_ask_year_aligned) — exactly the productivity notion
FleetEvolution uses.
Everything FleetEvolution layers on top is intentionally omitted: COVID
levelling, RPK, aircraft production/disposal flows, and the extra per-aircraft
dictionaries the manufacturing-cost models consume. Use this when a scenario
only needs fleet sizes (e.g. the custom multi-region workflow). Because it
skips production/disposal it is not a drop-in replacement for
FleetEvolution upstream of the recurring/non-recurring cost models.
Like FleetEvolution it reads the per-aircraft aircraft_share columns
from fleet_model.df (so FleetModel.compute must have run first) and
writes {aircraft_full_name}:aircraft_in_fleet back onto it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Model instance name ('passenger_aircraft_fleet_count' by default). |
'passenger_aircraft_fleet_count'
|
Documentation
Inputs
- dummy_fleet_model_output: Fleet-model trigger placeholder.
- ask_fleet_model is injected by AeroMAPSProcess._initialize_disciplines.
Attributes:
| Name | Type | Description |
|---|---|---|
fleet_model |
FleetModel
|
Bottom-up fleet model supplying the aircraft inventory and share columns. |
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/fleet/fleet_numeric.py
341 342 343 344 345 346 347 348 349 | |
custom_setup ¶
custom_setup()
Build dynamic input/output names from the fleet's passenger markets.
Called by AeroMAPSProcess._initialize_disciplines immediately after
fleet_model has been set and before the discipline is wrapped.
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/fleet/fleet_numeric.py
351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 | |
compute ¶
compute(input_data)
Compute the number of aircraft in fleet for each aircraft and market.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_data
|
dict
|
Inputs containing the per-market ASK series. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
|
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/fleet/fleet_numeric.py
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 | |
filter_columns ¶
filter_columns(df, prefix, suffix)
Filters columns of a dataframe by prefix and suffix
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/fleet/fleet_numeric.py
271 272 273 274 275 | |
sum_positive ¶
sum_positive(row)
Calculates the sum of positive values in a row of a dataframe
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/fleet/fleet_numeric.py
278 279 280 281 282 | |
sum_negative ¶
sum_negative(row)
Calculates the absolute sum of negative values in a row of a dataframe
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/fleet/fleet_numeric.py
285 286 287 288 289 | |