News for hackers. Stuff that matters.
Re:How Southwest Airlines melted down by burlesona on Wednesday December 28, 2022 @04:10PM (#34166003)
It’s fascinating that the same hopscotch travel pattern that allows SWA to offer better service to more places is also what caused the network to suffer cascading failure. Once a critical mass of pieces (planes/crew) were out of position the whole network fell apart, and it’s large enough that it seems like neither the humans nor software can easily reason about how to resume operations. Hence the need for a “full system reboot” over many days.

Anecdotally, I flew Southwest just before Christmas. The network was already buckling and we had major delays, but we were lucky and made it through. Despite the stress, the SWA crews were helpful, empathetic, and polite. They handled it better than I would have if I had been in their shoes.

Re:How Southwest Airlines melted down by TheCondor on Wednesday December 28, 2022 @04:27PM (#34166211)
Is resumption difficult or is it resumption and then make whole the tens of thousands of customers that were supposed to be moved a week prior?

No idea what SkySolver actually does in totality, I'm sure it's complicated but I would think a flight crew could indicate where they are right now and then it could maybe pickup the next possible course they could perform. Not sure why the phone lines "jam up" exactly, don't you have a hierarchical management structure for this sort of thing? Or do 1000 pilots all report to one person?

They've got like 1000 planes and like 100-150 destinations, it's not the traveling sales man problem, an optimal plan isn't needed now so much as a functional one.

Of course, it's easy to bitch about it not being hard when I've never seen the code. Maybe is also tracks hours and does payroll and a dozen other functions.

Re:How Southwest Airlines melted down by lbotos on Wednesday December 28, 2022 @04:36PM (#34166311)
I suspect crews timing out also play a big factor into this planning challenge:

https://flyingbynumbers.com/cabin-crew-duty-timeouts/

Re:How Southwest Airlines melted down by landemva on Wednesday December 28, 2022 @05:48PM (#34167084)
The safety rules for work hours have been known for ages, so this is not a new challenge for management.
Re:How Southwest Airlines melted down by TheCondor on Wednesday December 28, 2022 @07:23PM (#34167893)
Yes, but this has to be less of a problem when they've been canceling tons of flights, right?
Re:How Southwest Airlines melted down by toast0 on Thursday December 29, 2022 @01:04AM (#34170026)
Depends on the specifics of the duty time rules and how the flights were canceled. If the crew showed up and started getting the flight ready, but the flight was cancelled before takeoff, that may count as duty hours and could reduce their availability in the near term.

If the duty time rules only count time after takeoff, or only time after doors are closed, those both offer a different set of times.

Re:How Southwest Airlines melted down by masklinn on Wednesday December 28, 2022 @04:43PM (#34166383)
> Is resumption difficult

The resumption itself.

> Not sure why the phone lines "jam up" exactly, don't you have a hierarchical management structure for this sort of thing? Or do 1000 pilots all report to one person?

It's not a problem of management (well it is a problem of 15 years of management fuckup which is the root cause), it's a problem of the scheduling system needing manual updates when things didn't go to plan.

At this point it's completely screwed, so it needs to be completely reset, as in the entire scheduling system needs to be reconfigured from empty, more or less.

And because SouthWest operates entirely on point to point, the same cascading properties which led to its complete collapse mean it needs to restart in a somewhat synchronised manner, otherwise you fly 3 planes, there's no followup, and you're hosed again.

> They've got like 1000 planes and like 100-150 destinations, it's not the traveling sales man problem, an optimal plan isn't needed now so much as a functional one.

The system completely lost track of crews, so all of them need to be relocated, their work cycles reworked, flight slots need to be reallocated, flights need to be re-encoded.

Re:How Southwest Airlines melted down by flandish on Wednesday December 28, 2022 @06:34PM (#34167489)
Here is where we should take note of how things were resolved (or are in the process of) and note where “throw more money at it” (fly inefficient routes, farm out fares, etc) would have also helped.

Then next earnings release - when they post shareholders profits - that’s exactly how much they were willing to hold back to fix this, trading profit for people stuck for days.

Re:How Southwest Airlines melted down by smugma on Wednesday December 28, 2022 @08:24PM (#34168367)
Good point. I think it will be smart for them to post a record loss for this quarter.

Accrue a few billion for refunds, depreciate your software to zero, and start to set aside a few billion for new cloud whatever.

Basically, take this as a huge loss and communicate that you’ve lost a lot of goodwill and trying to make passengers whole is #1 priority (after safety, of course).

Re:How Southwest Airlines melted down by philwelch on Thursday December 29, 2022 @02:47AM (#34170471)
Airlines are extremely low-margin businesses, discount airlines like SWA doubly so. “Posting a record loss” of this magnitude isn’t something that can be afforded. What you’re talking about is likely to turn into some form of bankruptcy. Maybe it’s a relatively minor Chapter 11 where all those refunds get written down by the bankruptcy court, or maybe SWA goes the way of TWA and Pan-Am.
Re:How Southwest Airlines melted down by scarface74 on Thursday December 29, 2022 @06:40AM (#34171669)
Airlines make a lot of their money from loyalty programs

https://www.forbes.com/sites/advisor/2020/07/15/how-airlines...

And loyalty programs are bigger business for the higher end airlines that cater to business travels and the more affluent.

On top of that, the top 3 airlines make a lot of money off a first class and business travelers who are using other people’s money.

Re:How Southwest Airlines melted down by philwelch on Thursday December 29, 2022 @10:02AM (#34173265)
You just listed a bunch of revenue sources SWA doesn’t have.
Re:How Southwest Airlines melted down by scarface74 on Thursday December 29, 2022 @10:15AM (#34173434)
That’s the point…
Re:How Southwest Airlines melted down by philwelch on Thursday December 29, 2022 @10:19AM (#34173475)
Gotcha.
Re:How Southwest Airlines melted down by cmmeur01 on Thursday December 29, 2022 @08:26AM (#34172367)
Or maybe their lobbyists get on the phones and secure them a nice bailout, since they’re so “essential” as we’ve just seen.
Re:How Southwest Airlines melted down by chasd00 on Thursday December 29, 2022 @08:52AM (#34172582)
Replying to a sibling comment. There will never be a bailout for SWA. Too small, too many competitors and based in a red state with a blue administration in power.
Re:How Southwest Airlines melted down by smugma on Thursday December 29, 2022 @02:52PM (#34177080)
They lost $300M in Q1 and made $800M in Q2. They can take another $300M loss (1B?) in the short term to mitigate reputational damage and legislation.
Re:How Southwest Airlines melted down by panarky on Sunday January 01, 2023 @06:24PM (#34212240)
In the last fiscal quarter pre-pandemic, they had operating income of $3 billion on revenue of $22 billion, or 13%. This is not a low-margin business.

If they have operating income of eight to ten billion a year, spending a third of a billion to upgrade systems seems like it would have been a reasonable investment instead of buying back shares and increasing the dividend.

Re:How Southwest Airlines melted down by TimTheTinker on Wednesday December 28, 2022 @06:22PM (#34167390)
It's essentially an optimizing constraint solving problem. As far as I know, there are 2 main known approaches to this class of problem:

- use a tree traversal algorithm with a lot of built-in optimizations and pruning. Google OR-Tools is one well-known solver.

- use a set of meta-heuristics (Tabu search, simulated annealing, etc.) against arbitrary predicate expressions. The best example of this kind of silver is OptaPlanner.

The advantage of tree traversal is that it is exhaustive and guaranteed to be optimal; but it requires a fixed computing budget for a given set of constraints. Given a large compute cluster it's ideal, but on individual machines/servers these solutions tend to take hours or days. Southwest's system would likely require a significant supercomputer to run its scheduling through an exhaustive optimizing constraint solver, since it would have to re-run the entire solution (or significant numbers of subtrees) when any variable changes (which happens likely several times per second).

Meta-heuristics are more flexible and allow for all sorts of interesting, convenient features that can be very helpful when your compute budget is less than a Tiobe-500 supercomputer. They offer time-constrained solving, real-time monitoring of a solution in progress (you can watch it get better as more of the solution space is searched), and over-constrained solving (where the requested solution is impossible, but we need to make a best-effort attempt).

Re:How Southwest Airlines melted down by geethree on Thursday December 29, 2022 @04:44AM (#34171055)
Other paid constraint solvers are Gurobi and IBM’s Cplex. I only have experience with the later - scheduling giant chemistry and biology experiences into a robotic factory - there are a ton of foot guns in this space.
Re:How Southwest Airlines melted down by 0xfaded on Thursday December 29, 2022 @06:53AM (#34171743)
IBM has ILOG as well which is likely a better match for scheduling problems.

Fun Fact: google-ortools was written by the same people that wrote ILOG. You used to have to "bring your own search" when using ortools, which I used to assume was to avoid conflict with IBM. I haven't used it in a while, but looks like there's a one-size-fits-all search algorithm now. I'd be curious to try it sometime.

Re:How Southwest Airlines melted down by ge0ffrey on Tuesday January 03, 2023 @06:07AM (#34230096)
OptaPlanner (Java) or OptaPy (Python) doesn't need any other installations. Just add a dependency in Maven/Gradle (Java) or pip install it (Python).
Re:How Southwest Airlines melted down by scarface74 on Thursday December 29, 2022 @05:02AM (#34171129)
I’m by no means an expert in this area. But from my experience writing field service software in another life, even on a city wide scale when you may have 20 people and around 200 stops it got tedious when the system went down and you had to manually schedule it.

I use to write field service software for ruggedized Windows CE devices.

Re:How Southwest Airlines melted down by firstSpeaker on Wednesday December 28, 2022 @04:20PM (#34166122)
I imagine the system cannot account for where all the planes, staff, passengers are and where they want to go economically.
Re:How Southwest Airlines melted down by bumby on Wednesday December 28, 2022 @04:37PM (#34166321)
According the the article, the system makes some non-sensical tasking:

"In one example during the storm, the system assigned a pilot to deadhead on a flight from Baltimore to Manchester, N.H., and then back to Baltimore the next day, without ever flying a plane"*

* The article defines deadheading as sending a pilot as a passenger to get to another location.

It would be interesting to look at what the system is trying to optimize for to make such choices.

Re:How Southwest Airlines melted down by brazzy on Wednesday December 28, 2022 @04:45PM (#34166409)
Sounds to me more like a bug in an edge case rather than trying to optimize for the wrong thing.

Or (more likely, I think) the first deadhead was planned to have the pilot take over a flight which was then cancelled after the pilot was already underway.

Re:How Southwest Airlines melted down by smaudet on Wednesday December 28, 2022 @05:29PM (#34166897)
Also sounds like a case of not throwing enough adversarial data at the system - you can't just code coverage your code, you can't even establish KPIs, you have to establish its performance under system failure (does it freeze or gracefully shut down, does it persist to disk, what happens when the disk is yanked out of the system), etc.

Very few software shops I am aware of that do anything like this.

Re:How Southwest Airlines melted down by twobitshifter on Wednesday December 28, 2022 @04:59PM (#34166573)
If the solver is updating based on current events, it’s completely reasonable that something like that could happen. Manchester was projected to be short a pilot, but the flight made it on time, and Baltimore unexpectedly ended up short.
Re:How Southwest Airlines melted down by prewett on Wednesday December 28, 2022 @08:46PM (#34168505)
This sounds like what you might expect from a using a random process (genetic algorithms, simulated annealing) to solve the NP-complete problem. The randomness injects suboptimal routes like this, as well as more optimal ones, but the fitness/cost function has to distill a whole bunch of things into one scalar. In my experience what happens is that the different things you want to value sort of compete with each other. I'm guessing the current state of the system is quite suboptimal, and it might not be able to remove the randomness.

It's quite feasible to get within a factor of 2 of the optimal solution (with much less processing power), which sounds great from a CS algorithm analysis standpoint, but a factor of 2 looks like an awful schedule from a human standpoint.

Re:How Southwest Airlines melted down by bell-cot on Thursday December 29, 2022 @05:35AM (#34171317)
Compare the cost of keeping one surplus pilot forever deadheading around the system to the cost & disruption of canceling (say) one flight a month because "a pilot got sick, it was not legal to fly short-handed".

Having a (relative) bunch of surplus critical-task workers, forever being shuffled to where they system guesses they're most likely suddenly be needed, makes perfect sense.

(Yes, you'd have to be a bit more sophisticated, so your surplus pilots got enough flying time to stay certified. And didn't get pissed and quit. Assume that I know why RAID 5 is better than RAID 4:)

Re:How Southwest Airlines melted down by taway22323 on Thursday December 29, 2022 @08:16AM (#34172289)
"non-sensical tasking"

That could also be the result of thrashing after they were really far into the mess. That is, the solver maybe did output something sensible, but that solution has to get into the system that's used at runtime. Someone may have run another solution, or did manual updates while it was too overwhelmed to get all the changes posted. The solvers also depend on other context that's changing underneath them.

Re:How Southwest Airlines melted down by cratermoon on Wednesday December 28, 2022 @04:28PM (#34166222)
> Hence the need for a “full system reboot” over many days.

My understanding is that the full system reboot wouldn't have taken all that long, it's just the the company was trying to do a major fix while keeping whatever was still sort-of-working running. As any sysop will tell you, patching a running system is all kinds of crazy risky.

Re:How Southwest Airlines melted down by amluto on Wednesday December 28, 2022 @04:51PM (#34166494)
I don’t see how a full system reboot should take days. If you don’t care about serving customers (which they don’t right now), then the problem could be simplified to getting every plane and every crew home to where they would spend the night under a normal schedule. With few or no paying customers on each plane, there should be plenty of capacity to move misplaced crew members around. None of this needs to approximate normal routing, and fewer segments than normal are needed, since passengers can be ignored.

That being said, the software sucks. Southwest may have lost track of where their employees are. The ground crews are quitting. I wouldn’t be utterly shocked if management doesn’t even have a good overview of their the planes are.

(Obviously anyone halfway competent could hack up a script to find all the planes based on ADS-B data in a few hours. And it wouldn’t be terribly hard to text a link to all crew asking them to fill out a simple form with their location, nearest airport, and when they can get there. But this requires competence and agility.)

Re:How Southwest Airlines melted down by jasonwatkinspdx on Wednesday December 28, 2022 @05:00PM (#34166579)
It's far more complicated than that. For example, there's a lot of strict regulation around how many hours crew can work, how much rest they need between, etc. Likewise planes can't just randomly fly where-ever they want, whenever they want. There's mandatory maintenance, etc. You also have a limited number of hangers and jetways at each airport, so you have to coordinate how planes move around to not overload things. Oh we need to be sure there's enough fuel, fresh oxygen bottles, and so many other things.

The problem is nothing like writing a script to scrape ADS-B data. This is the classic fallacy of a programmer thinking the most cartoonish imagination of the technology is the problem while being completely blind to the fundamental difficulty of organizing large groups of humans in some activity.

Re:How Southwest Airlines melted down by landemva on Wednesday December 28, 2022 @05:50PM (#34167098)
The other carriers made it through this high volume period. Do they have better programmers?
Re:How Southwest Airlines melted down by taway22323 on Wednesday December 28, 2022 @06:41PM (#34167547)
The other carriers do also have a tipping point of no return. They were more aggressive about canceling flights in careful waves before they got to that point. Some of the observations here are correct, but there's that big missing piece that Southwest went too far in with an overoptimistic schedule. They won't say that because then there's no easy scapegoat.
Re:How Southwest Airlines melted down by angry_octet on Thursday December 29, 2022 @07:07AM (#34171828)
There is always a trade-off between robustness and efficiency. By leaving less slack the SWA schedule is more efficient, but also more tightly strung. When failures exceeded the slack capacity the whole schedule fell apart.

The problem of recovery is also extensively studied. But it seems like SW did not put enough effort into having fault tolerant restart.

This whole event is a management decision.

Re:How Southwest Airlines melted down by taway22323 on Thursday December 29, 2022 @08:18AM (#34172307)
Right. I'm saying though, it's not just the initial state of less slack in their system due to hub and spoke versus point to point. It's also that other airlines were more realistic about backing off flights earlier and more aggressively as a reaction to the developing info on the storm.
Re:How Southwest Airlines melted down by angry_octet on Thursday December 29, 2022 @10:49PM (#34181564)
It paints a picture of an organisation which didn't see the need to accurately assess risk on a real time basis. If I was the COO I would want rolling projections for the week based on good/bad/ugly weather. But it seems SW was too busy cutting costs and building capacity as cheaply as possible to think about that.
Re:How Southwest Airlines melted down by jasonwatkinspdx on Wednesday December 28, 2022 @06:11PM (#34167300)
No, as the article explains they use more of a hub and spoke dispatch pattern, which has less chained dependencies.
Re:How Southwest Airlines melted down by inferiorhuman on Thursday December 29, 2022 @01:38AM (#34170164)
Yes. Globally the vast majority of airlines use either Amadeus, Apollo, or SABRE for everything from reservations to crew scheduling. United wrote Apollo, American wrote SABRE. Southwest pushes ticketing data to those three, but as of a few years ago they were doing things by hand (like tracking bags and likely scheduling) that other airlines had already automated. If anecdotes from crew are accurate the other problem is that Southwest did nothing to optimize their disaster recovery plan (if there even is one). Manual data entry can scale more than it is at Southwest, but they're still stuck in the teensy airline state of mind where even wildly inefficient workflows can scale.

As for ADS-B, that's hopelessly naive. ADS-B tracks planes, not people. The problem Southwest is having is trying to figure out who is legal to work and where they are. Tracking equipment is so trivial in comparison it's largely a secondary concern.

Re:How Southwest Airlines melted down by smitty1e on Wednesday December 28, 2022 @07:30PM (#34167953)
Modeling and simulation has the concept of Emergent Behavior[1].

Once that complexity tipping point is reached (and other comments suppose that SA competitors were more aggressive at cancellations, avoiding that point in their systems) the system takes on a life of its own.

What follows, for those running the system, is called a "Significant Emotional Event".

[1] https://en.wikipedia.org/wiki/Emergence

Re:How Southwest Airlines melted down by nemothekid on Wednesday December 28, 2022 @04:57PM (#34166556)
>then the problem could be simplified to getting every plain and every crew home to where they would spend the night under a normal schedule.

I'm confused, maybe my calibration of the scale involved here is wrong, but how do you not see this process taking days? Even if you had perfect information of where all the planes and crews were and where they should be, just coordinating with various airports to schedule the flights would take days; and that's assuming every plane is (1) flying empty, (2) fueled and (3) isn't carrying any passenger luggage.

Re:How Southwest Airlines melted down by smaudet on Wednesday December 28, 2022 @05:22PM (#34166833)
As others have said, you are ridiculously oversimplifying the process.

If you are running a little video game that plots flight charts, sure perhaps you could write such a script. You cannot, however, script a bunch of logisitics support together across disparate, independent, multinational airports.

Add the obligitary paperwork (we don't really want to be shipping people around in coffins, enabling human trafficking or illegal substance smuggling, trust me), and add your standard bit of managerial incompetence managed from an excel document and sharepoint, and it's actually downright impressive if it's only a couple days to completely reboot the system.

Arguably, management doing the standard "oh that will never happen" is probably why it's not even better - you would think the airports would be able to automatically "fix" themselves with a self healing protocol, but that was probably deemed too expensive and left out of the feature set.

Re:How Southwest Airlines melted down by amluto on Wednesday December 28, 2022 @05:42PM (#34167014)
Of course I’m oversimplifying the process. But my point is the actual number of flights, passenger and luggage loads and unloads, etc can be a lot lower than a normal workload. On a normal day, an average Southwest plane flies quite a few hops, loads many passengers, unloads many passengers, etc. For a worst case reset, the normal routing doesn’t need to be followed.

Of course this will introduce complexity. But it will also need decently less than a normal day’s number of operations.

If I were designing a solver for where to move aircraft and crews (which is apparently what SkySolver does), I would test it on random and malicious inputs. If it’s initialized with every crew member and every plane at an independent random airport in the US (where Southwest has service) with a few broken for good measure and a few airports shut down, it should still find a solution. Waiting 12-24 hours to start so none of the crew is timed out could be part of a valid solution.

Re:How Southwest Airlines melted down by bfung on Thursday December 29, 2022 @03:15AM (#34170601)
It’s still probably not that simple; the problem seems like it can be analogous to some sort of knapsack and/or traveling salesman problem, which are NP-hard! Even testing would take a long time.
Re:How Southwest Airlines melted down by amluto on Thursday December 29, 2022 @10:37AM (#34173676)
That’s true if you want an optimal solution. If you just want a decent solution (for various definitions of decent), the complexity may not be too bad.
Re:How Southwest Airlines melted down by irjustin on Wednesday December 28, 2022 @05:17PM (#34166777)
I'm downvoting.

It's simple to say, "oh it would be this easy..." and not consider a single real life scenario.

> problem could be simplified to getting every plain and every crew home to where they would spend the night under a normal schedule

This alone would take days under your own recommendation.

Re:How Southwest Airlines melted down by aliswe on Thursday December 29, 2022 @02:34AM (#34170416)
Weeks
Re:How Southwest Airlines melted down by Sakos on Thursday December 29, 2022 @04:14AM (#34170913)
"If I ignore all real-world constraints and all the regulatory burdens, it's TRIVIAL. Why can't they figure this out when I could solve it in an internet comment?"

He's ignorant and naive and disrespectful of the workers involved.

Re:How Southwest Airlines melted down by mgsouth on Wednesday December 28, 2022 @09:44PM (#34168843)
Well, let's see... A bit of internet searching shows SWA has about 60,000 total employees. Roughly 6,000 of those are pilots. So probably about 10,000 cabin crew (3 or 4 flight attendants, 2 pilots per flight). Most of those 15,000+ people need to be in exactly the expected place at the expected time, or things will get snarled up. If any one of those 5 or 6 people is a no-show then the plane can't legally fly passengers. There's limited fungibility; one of the pilots has to be a Captain. You don't want two Captains flying, if for no other reason than some other flight will then be short a Captain. One of the cabin crew has to be a Purser (supervisor). It's really preferable to have at least one of the pilots flying to the airports they usually frequent. Off-shift crew still need to be in the proper place at the proper time, or the plane has to stop mid-cycle. Then there's the ground and gate crews.

And you can't just say "go to your usual starting airport". Flights are 24/7. Days of the week matter. Holidays matter. Even your local burger joint doesn't have cast-in-stone schedules. Much less a huge interconnected network that's trying to reboot. Even if 80% of the crew could go to a "usual airport", how would you know if you were in the 20%? Oh... everybody has to phone in, or the system has to send a huge number of notifications out. System crash. (Remember, normally the system depends on scheduling in advance, and only a few last-minute changes need to be handled.)

And how do these what, 20k+ people get where they should be? If they aren't already at that airport, then normally by hopping on a SWA flight. Which aren't happening. So now what? Book flights on other airlines? Who's going to be doing the booking? How does it get paid? How many employees have a company credit card (any?) Use the employee's cards? How many are maxed out for Christmas?

So let's suppose you're scheduled everyone and everybody knows where there's supposed to be and when. What happens when 10% call back in (without crashing the system!) and say they can't get there on time. (Remember, many SWA customers are stuck and are having a hard time arraning alternate travel. Crew without access to SWA flights would have the same trouble.) You're going to either apply massive changes to the existing schedule, or start all over and reschedule everyone. Which is exactly the problem they're currently having. They can't handle massive corrections. What's worse, a crew member may think they're good, and then their travel gets delayed somehow.

How sensitive is the scheduling? If 10% of the crew are no-show or delayed then about 9% of the planes are affected; every 8 hours 90 planes will have the following 8 hours of flights cancelled or delayed (throwing further monkey wrenches in the schedule). About 40 of those planes will be missing a pilot, which means they can't even be deadheaded to where they're supposed to be next.

So how to reboot? They've had to cancel two-thirds of their flights, so apparently they're able to keep 1/3 of them going. Keep those flying so they can shuttle crew around. You're initially only scheduling 1/3 of the crew, so the poor overloaded system can handle it. 2/3 of the flights are just outright cancelled, days in advance, so the customer support load is reduced. ("I'm sorry, your flight has been cancelled. We can't reschedule you until x days from now." vs. much back-and-forth trying to find something with an overloaded system.) Slowly add additional crew and flights so the number of phone-ins is kept manageable.

Re:How Southwest Airlines melted down by amluto on Wednesday December 28, 2022 @10:58PM (#34169372)
As you said, this is certainly a complicated situation.

But this is HN, and, from an optimization / constraint satisfaction problem perspective / scale perspective, it’s really not a very large problem. The “going home” problem is a standard programming contest problem. This is more constrained, but a globally optimal solution isn’t needed. Southwest literally has a program called SkySolver. It should work.

So you need to choose destinations for a few thousand planes? Pick the place you would normally have them at 4 AM two days hence. Need captains familiar with the airports? Surely the captains who would normally fly from a given airport at 4 AM two days hence are familiar with those airports. This gives a good starting solution for further optimization.

You need to get a message to ~20k people? Great, Twilio will do that with minimal effort.

Will a budget of a couple million dollars, this is not hard. There are good SMT solvers available for free. CPLEX is expensive but not on this scale. Managing test cases on this scale is straightforward.

Even in an emergency, something good enough to get to the point where SkySolver starts working again should be doable.

People who manage electric grids have protocols for “black starts”. These protocols are messy and complicated, but they are developed in advance, and they work. Airlines should have the equivalent capability.

Re:How Southwest Airlines melted down by mgsouth on Wednesday December 28, 2022 @11:52PM (#34169663)
You touched upon the core issues. Yes, SkySolver should be able to get a solution quickly. Yes, there should be systems in place to co-ordinate invidividual actions of 20k people with rapid adjustments. Yes, they should have procedures in place to do "black starts". But they don't. And you can't design, test, and roll out even a new communications system to 20k users literally overnight. If they existing scheduling system doesn't already email crew, then do they have email addresses for all them? If so, it's probably in HR somewhere; if that's outsourced then it could take days for SWA to get that pulled out even on an expedited basis. If they send email, what percentage of crew will receive it? In what timeframe? Email campaigns are notoriously porous. And how do crewmembers provide feedback? A standalone web page? Great--how do you authenticate? By interfacing the existing system? What will that take? Probably not, though--it appears the existing feedback mechanism is a manual phone call to a person. Do crewmembers even have login IDs?

Finally, even with perfect communication there's the problem of getting people where they need to be when the transport system is very flaky. I think that's probably the issue when the CEO said 'they would get things manually set up, and then something would happen and we'd have to start all over again.'

The pilot's union and others have been critizing SWA for not investing in infrastructure. The previous CEO, responding to the previous melt-down, said something about 'you can't test for these kind of scenarios.' That's wrong. You can't do it easily or cheaply, but it is possible. They haven't done it, they haven't developed robust systems, and now they can't instantly resolve the problem.

Re:How Southwest Airlines melted down by sigstoat on Thursday December 29, 2022 @01:14AM (#34170067)
> But this is HN, and, from an optimization / constraint satisfaction problem perspective / scale perspective, it’s really not a very large problem.

i can't even begin to imagine what the utility function _alone_ must look like.

the solver can't just produce a blank slate solution every time, it's got to optimize... something, subject to some constraints about not changing too much from the previous plan it came up with. and it's probably got to do this every time there's new real world input.

> The “going home” problem is a standard programming contest problem.

the hubris and handwaving on here is hitting epic levels.

Re:How Southwest Airlines melted down by inferiorhuman on Thursday December 29, 2022 @02:52AM (#34170496)

  this is certainly a complicated situation.
uhh

  it’s really not a very large problem
Ok.

  So you need to choose destinations for a few thousand planes? 
No. You need to figure out which planes are where, which of those planes are legal to fly out of which airports, which planes can be made legal to fly with low effort, and which planes need to go in for service (potentially requiring a non-revenue flight).

Ostensibly Southwest operates a fleet of Boeing 737s with two subfleets (ETOPS and non). The ETOPS planes can be used anywhere but the others cannot be used to Hawaii. Some of the ETOPS routes require the range of the MAX and some do not. Some of the airports Southwest flies into can only handle the smallest planes. It's entirely possible that everything stuck in Oakland is too big to fly into Burbank for instance. Or its entirely possible that all of the ETOPS fleet is stuck in Hawaii (so all of the routes too Hawaii are no-gos).

Then you've got to figure out what's broken on each plane. Depending on what's inoperative a plane may not be able to fly into a specific airport if the weather is anything but perfect. If enough stuff is broken the plane may be stuck away from a maintenance base and illegal to fly in revenue service. There goes a plane and a flight crew. These are laws, not optimizations.

And finally you need to figure out where all the diverted flights went. No idea what's normal but Southwest had to divert two flights today (one due to mechanical issues and one due to an unruly passenger). So there's at least one plane that's out of position and unable to fly until it's been repaired.

  Need captains familiar with the airports? 
No. In fact I'm pretty sure that unlike RyanAir and EasyJet, Southwest doesn't fly into any airports that categorically require specific familiarity and training beyond the ETOPS certs required for the Hawaii routes. You do need to figure out who's legal to fly in revenue service and who might be legal to fly on a ferry permit though. Southwest was pretty late to the autopilot game but at other airlines some captains are qualified to land in worse weather than others. So even if you have a flight crew ready to go they may be unable to complete your desired route today – and that's been a problem. The Southwest scheduling software assumes that every pilot completes their assigned flights successfully. Whoops.

Then you've gotta do the same with the cabin crew. And then you've gotta make sure none of this runs afoul of the various CBAs.

And you haven't even addressed the issue of out of position luggage. It's not just that luggage is piling up at airports, but Southwest's actually flown some of the luggage without the passengers.

When that's all said and done you're going to need to handle everything that goes tits up as service resumes. As I pointed out earlier, Southwest had at least two diversions today. So now you have two more out of position planes, crews, and more out of position luggage and passengers.

It's a massively complex, dynamic problem. If a couple million bucks would solve things, Southwest would've spent it already. List price on a single 737 is around $40 million. Even if Southwest got half off you're still talking tens of millions of dollars per plane.

  People who manage electric grids have protocols for “black starts”. These protocols are
  messy and complicated, but they are developed in advance, and they work. Airlines should
  have the equivalent capability.
Most airlines do but, based on the anecdotes from Southwest crew, Southwest does not. Again it's not really that Southwest flies point-to-point, and it's not just a software issue at this point. Procedures that worked when Southwest was a scrappy little airline simply don't scale and Southwest management is ill-equipped to handle this. It's all compounded by the employee contempt that Kelly's managed to foment.
Re:How Southwest Airlines melted down by itissid on Thursday December 29, 2022 @04:59AM (#34171121)
I think the guy you are replying to does not realize that all these are not data in some MySQL database to "use" to solve this quickly.
Re:How Southwest Airlines melted down by inferiorhuman on Thursday December 29, 2022 @03:28PM (#34177508)
To be fair it seems like Southwest management fell for the same trap.
Re:How Southwest Airlines melted down by quartesixte on Thursday December 29, 2022 @11:11AM (#34174077)
I mean, let’s assume that this problem is as simple and everything else on the ground and with scheduling works perfectly (which it isn’t and everyone here is rightly calling you out on. Ever work in an operations environment? Shit goes wrong fast).

You still have to contend with the laws of physics. AKA the speed of aircraft and distance between airports. Compound that thousands of planes making potentially cross country trips and it will take days to do what you are suggesting, leading to the same problem SWA is already facing.

Re:How Southwest Airlines melted down by benced on Thursday December 29, 2022 @01:25AM (#34170113)
Something worth pointing out here is that according to levels.fyi, a tech lead there who has worked for 20 years has a TC of 174K. It’s unlikely their technical talent would be up to what you propose which is related to the apparent decision at Southwest to underinvest - by their own reckoning - in technology.
Re:How Southwest Airlines melted down by scarface74 on Thursday December 29, 2022 @07:05AM (#34171813)
This again the HN tech bubble. That TC is around average for most senior software engineers in most corporations in most US cities in the US.

And getting into a tech company and having high compensation doesn’t require “top talent”. Just the ability to memorize DS&A (junior to mid) and memorize system design and being able to regurgitate answers to behavioral questions showing “scope” and “impact”.

It takes knowing two or three well known algorithms to implement the scheduling problem they are trying to solve and system design chops to know how to scale it.

But, as far as having to be on hold for hours, that’s a staffing issue.

Most of their issues are symptoms of poor management - not software engineers.

Re:How Southwest Airlines melted down by benced on Thursday December 29, 2022 @04:39PM (#34178381)
To be clear, I don’t think you can blame these software engineers. Management has decided the average value of a tech lead to them is about 175K and they are getting that quality of engineer. I think their current tech issues suggest that the value management is placing on engineers is lower than it should be.

Like I said earlier in the thread - there are many bad engineers that are overpaid and many good engineers that are underpaid. On average though, compensation and quality are correlated. In the absence of additional information, compensation is the best metric we have to asses the quality of the underlying engineering talent. It also passes the sniff test - try using the Southwest Airlines app!

Re:How Southwest Airlines melted down by scarface74 on Thursday December 29, 2022 @07:03PM (#34179846)
Again, you are just as deep in your bubble as everyone else. There are 2.7 million developers in the US. The vast majority of them are paid between $80K-$170k. They are working in banks, government, smaller startups, etc.

And it doesn’t take a $400K senior developer that can reverse a binary tree on the whiteboard while juggling bowling balls while riding a unicycle on a tightrope to make a mobile app.

How much do you think Delta developers make in Atlanta (hint: they aren’t making over 200K). Their app is excellent.

It never ceases to amaze me how little most people on HN know about compensation throughout the industry.

Re:How Southwest Airlines melted down by bumby on Thursday December 29, 2022 @08:51AM (#34172567)
1) These types of comments always make me cringe because it's built on an assumption that everyone is solely trying to optimize for income. I know plenty of people who would take a pay cut to continuously work on what they consider more interesting problems than, say, a social media app or basic CRUD app.

2) COLA matters. $174k in, say, Southwest HQ in Dallas is roughly equated to $422k in SV.

Re:How Southwest Airlines melted down by benced on Thursday December 29, 2022 @04:36PM (#34178341)
It’s ridiculous to suggest that compensation isn’t correlated with quality. There are many exceptions but it’s a good rule of thumb in the absence of additional information. It also just passes the sniff test - try comparing the Southwest Airlines app to the united airlines app.

I don’t think COLA matters all that much. The reason SV pays such high salaries reflects the underlying higher productivity of those engineers. The fact that much of that income goes to landlords in the Bay Area is orthogonal to the underlying quality of the engineers.

Re:How Southwest Airlines melted down by bumby on Thursday December 29, 2022 @07:20PM (#34179978)
Nobody is claiming they aren't correlated. The question is: how strong is the correlation? The OP seems to insinuate they are extremely correlated on account that it is the sole consideration in the comment.

Like so many strong claims made online, it's an overly simplified mental model for something that is much more complex in reality. Like you said, we need more information before making strong claims.

Re:How Southwest Airlines melted down by MR4D on Wednesday December 28, 2022 @05:39PM (#34166989)
I wonder if it’s that or simply a lack of slack in their system.

It seems to me that just like pre-staged inventory helps in logistics management, that extra planes and crews in the rotation could improve operations under these circumstances.

Re:How Southwest Airlines melted down by Tao3300 on Wednesday December 28, 2022 @05:53PM (#34167111)
They probably had that kind of wiggle room once upon a time. Then some sort of pandemic turned everything to just enough planes and skeleton crews.
Re:How Southwest Airlines melted down by MR4D on Wednesday January 04, 2023 @04:37PM (#34252109)
It'll be interesting to see. I'm sure Congress with go through it pretty strongly (opinions, that is), assuming they ever have a successful vote for a Speaker.
Re:How Southwest Airlines melted down by EMM_386 on Thursday December 29, 2022 @01:42AM (#34170176)
With a normal airline, you have pilots sitting on "reserve" at bases, who can be called in at any time to fill in any gaps that may occur. They are being paid but are not flying, it's quite a good gig if you can get on the reserve list.

I don't know how this is handled at Southwest, who does not fly hub-and-spoke and thus doesn't have a bunch of pilots sitting reserve around a base at, say, Atlanta.

Re:How Southwest Airlines melted down by mjevans on Thursday December 29, 2022 @06:43AM (#34171682)
In the past I had a job where some contract required a trained body to be on site 24/7. The company hired EXACTLY enough workers to fill the position, with _zero_ slack for anything.

That lack of slack is hell. It makes any disruption, even minor ones, require the other workers to work more time. Major disruptions mean soul-crushing crunch level hours to just get by.

Slack _must_ be planned into a system, otherwise there won't be any safety / recovery margin, and you're seeing the results live with Southwest's implosion.

Re:How Southwest Airlines melted down by bogomipz on Thursday December 29, 2022 @01:33AM (#34170143)
>"Anecdotally, I flew Southwest just before Christmas. The network was already buckling and we had major delays, but we were lucky and made it through."

Interesting. You don't say how far before Christmas you were traveling. Had this crazy weather system already started moving from West to East at that point? Or was the system buckling just from passenger volume at the point i.e similar to the Summer meltdown that Southwest had?

Re:How Southwest Airlines melted down by DrBazza on Thursday December 29, 2022 @05:22AM (#34171233)
> Once a critical mass of pieces (planes/crew) were out of position the whole network fell apart, and it’s large enough that it seems like neither the humans nor software can easily reason about how to resume operations. Hence the need for a “full system reboot” over many days.

We had days like that in the UK but with the rail system. And it when it happens it’s also due to snow. We’ve seen it on global scale recently due to covid putting ships in the wrong places so that optimised shipping routes become a mess.