Skip to content

Commit

Permalink
Fix notebook flight-planning
Browse files Browse the repository at this point in the history
Starting from openap 2.0, the fuel model needs further parameters.
They are not available for A380 in openap so we keep only the cell using
Poll-Schumann performance model.
  • Loading branch information
nhuet authored and g-poveda committed Oct 18, 2024
1 parent 8a74532 commit a13d22d
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions notebooks/15_flightplanning_tuto.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -259,37 +259,6 @@
"source": [
"heuristic = \"lazy_fuel\"\n",
"\n",
"origin = \"SKCG\"\n",
"destination = \"LFBO\"\n",
"aircraft = \"A388\"\n",
"\n",
"domain_factory = lambda: FlightPlanningDomain(\n",
" origin,\n",
" destination,\n",
" aircraft,\n",
" weather_date=weather_date,\n",
" heuristic_name=heuristic,\n",
" perf_model_name=\"openap\", # a/c performance model\n",
" objective=cost_function,\n",
" fuel_loop=False,\n",
" graph_width=\"normal\",\n",
")\n",
"\n",
"domain = domain_factory()\n",
"\n",
"with Astar(\n",
" heuristic=lambda d, s: d.heuristic(s), domain_factory=domain_factory, parallel=False\n",
") as solver:\n",
" solver.solve()\n",
" domain.custom_rollout(solver=solver)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"origin = \"SKCG\"\n",
"destination = \"LFBO\"\n",
"aircraft = \"A388\"\n",
Expand Down

0 comments on commit a13d22d

Please sign in to comment.