Skip to content

Commit

Permalink
insert missing arcs from source to target for each aircraft
Browse files Browse the repository at this point in the history
  • Loading branch information
Marika-K committed Nov 12, 2024
1 parent 8d2442a commit 1e10cff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion aviation_planning/airlineplanning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,12 @@
" if f1!=f2 and flight_end_time[f1] < flight_start_time[f2] and flight_dest[f1] == flight_origin[f2]: \n",
" flight_arcs_for_each_aircraft[a].append((f1,f2))\n",
" deltaplus_flightarcs[a][f1].append(f2)\n",
" deltaminus_flightarcs[a][f2].append(f1) \n"
" deltaminus_flightarcs[a][f2].append(f1) \n",
" # allow to connect source and target directly for the case that aircraft is not used at all \n",
" elif str(f1).startswith('source') and str(f2).startswith('sink'):\n",
" flight_arcs_for_each_aircraft[a].append((f1,f2))\n",
" deltaplus_flightarcs[a][f1].append(f2)\n",
" deltaminus_flightarcs[a][f2].append(f1)"
]
},
{
Expand Down

0 comments on commit 1e10cff

Please sign in to comment.