Weather routing: Difference between revisions
Content added Content deleted
(julia example) |
|||
Line 390: | Line 390: | ||
const tp = minimumtimeroute(routeprob, sp) |
const tp = minimumtimeroute(routeprob, sp) |
||
println("The route taking the least time found was:\n", tp.path, |
println("The route taking the least time found was:\n ", tp.path, |
||
"\ |
"\nwhich has duration $(div(tp.duration, 60)) hours, $(rem(tp.duration, 60)) minutes.") |
||
</lang> |
</lang> |
||
The polar CSV file used for this solution, named polar.csv, is as follows. Note that this is a very detailed |
The polar CSV file used for this solution, named polar.csv, is as follows. Note that this is a very detailed |
||
Line 444: | Line 444: | ||
<pre> |
<pre> |
||
The route taking the least time found was: |
The route taking the least time found was: |
||
Point{2,Int64}[[1, 4], [1, 5], [2, 6], [3, 7], [4, 7], [5, 7], [6, 7], [7, 7], [8, 6], [9, 5], [9, 4]] |
Point{2,Int64}[[1, 4], [1, 5], [2, 6], [3, 7], [4, 7], [5, 7], [6, 7], [7, 7], [8, 6], [9, 5], [9, 4]] |
||
which has duration 4.0 hours, 39.72104601694747 minutes. |
|||
</pre> |
</pre> |