Skip to content
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

Demand adjust (domestic/regional/intercontinental) #622

Merged
merged 10 commits into from
Nov 11, 2024

Conversation

patsonluk
Copy link
Owner

@patsonluk patsonluk commented Sep 22, 2024

Equations are combined in certain ways, so below numbers are just for reference, the end result usually is hard to describe due to combined effect, especially point 9 changes everything 🙄

  1. Change threshold to see diminished demand from 200km to 400km. The deminished amount should be relative to how short the route is instead of a constant ratio (probably was a bug). Take note that most route within this range will still see boost overall except extreme cases (NRT -> HND etc., see persepectives section)
  2. Relationship 2, 3 flights will get a ~20% boost. relationship 4 a 50% boost
  3. Short haul domestic get 100% boost
  4. Short haul international, intercontinental get 150% boost
  5. Long haul domestic get 15% reduction
  6. Long haul international and intercontinental get 40% reduction
  7. All ultra shorthaul/short haul demand < 5 will be dropped (for faster sim, still under considration)
  8. All domestic demand < 5 will be dropped (for faster sim, still under considration)
  9. Reduced tourist boost due to high income level, tourist is considered a base instead of adjustments. This in general means more domestic and regional tourists and less long hauls for rich countries

Performance/Workload

Before the change: Demand chunks 4944595. Demand total pax 37060702
After the change (w/o 7 and 8): Demand chunks 4990100. Demand total pax 43270165
After the change (with 7 and 8) :Demand chunks 4661797. Demand total pax 42620660

Perspectives

Since there are quite a few changes/parameters in the calculation. Some demand perspectives. TAKE NOTE THAT THESE ARE JUST FOR REFERENCE SINCE I'M COMPARING WITH CURRENT PROD DATA WITH MY LOCAL DATA with might have different assets bonus

Ultra Short-hauls

HND -> NRT (59km) : 4526 -> 1621
LHR -> BHX (140km): 1406 -> 4712
LHR -> CDG (347km): 18090 / 5857 / 1319 -> 31300/8670/1862
SIN -> KUL (297km): 1532 / 264 / 52 -> 2304/474/97

Short hauls

LHR -> EDI (533km): 3097 ->6136
SGN -> DAD (604km, Vietname domestic): 86 -> 174
ICN -> CJU (440km, Jeju domestic) : 1394 -> 2492
LHR -> FCO (1443km, international strong charm) : 6054 / 1647 / 349 -> 10445/2502/511
HAJ -> GOT (601km international no charm): 176 / 49 / 7 -> 413 / 134 / 25

Long-hauls

JFK -> LAX (strong charm domestic) : 14705 / 6889 / 1649 -> 13597/4821/1101
IND -> SWF (no charm domestic) : 462 / 180 / 40 -> 306/98/20
JFK -> LHR (strong charm intl.): 14462 / 6286 / 1491 -> 11459/4421/1012
JFK -> OPO (Porto no charm) : 819 / 144 / 22 -> 447/77/10
IND -> OPO (no charm both sides): 49 / 4 / 0 -> 16/2/0

1. Relationship 2 and 3 will get a ~20% boost
2. Short haul domestic get 40% boost
3. Short haul international, intercontinental get 250% boost
4. Long haul domestic get 25% reduction
5. Long haul international and intercontinental get 40% reduction
More adjustment to demand
More adjustment to demand
… reduce demand on those routes. Should use that instead, it's cleaner...
@patsonluk patsonluk changed the title Demand adjust Demand adjust (domestic/regional/intercontinental) Nov 11, 2024
@patsonluk patsonluk merged commit 1a7006f into v2.2 Nov 11, 2024
patsonluk added a commit that referenced this pull request Nov 11, 2024
* Aviation hub

* AviationHub Unit test cases and refactoring

* Code clean up and avoid loading DB for tests

* Changes to add HQ multiplier in backend

* Fixed query in AirportSource.scala

* Need to load airline for HQ for Rep multiplier

* fixed query

* Changes to add HQ multiplier in frontend

* Added demand main for comparisons

* Demand adjust (domestic/regional/intercontinental) (#622)

* Adjust demand:
1. Relationship 2 and 3 will get a ~20% boost
2. Short haul domestic get 40% boost
3. Short haul international, intercontinental get 250% boost
4. Long haul domestic get 25% reduction
5. Long haul international and intercontinental get 40% reduction

* Added ULTRA_SHORT_HAUL types

More adjustment to demand

* Added ULTRA_SHORT_HAUL types

More adjustment to demand

* Revert ULTRA_SHORT types, there's already code in Demand generator to reduce demand on those routes. Should use that instead, it's cleaner...

* Adjusted DIMINISHED_DEMAND_THRESHOLD

* Adjusted DIMINISHED_DEMAND_THRESHOLD

* Adjustment to DemandGenerator again so demand is not so far off from before

* Adjusted demand again 🤣

* Airline grade ladder adjust

* Always has business/first class demand regardless of income level/flight range

* Always has business/first class demand regardless of income level/flight range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant