Edit on Gitlab Launch with Binder

Obstacle-Bypassing Esau-Williams (OBEW) example

OBEW is a heuristic from interarray (optiwindnet’s predecessor). It takes in the raw location L and outputs the routeset G.

[1]:
from optiwindnet.importer import load_repository
from optiwindnet.svg import svgplot
from optiwindnet.heuristics import OBEW
from optiwindnet.interarraylib import calcload

Load Borkum Riffgrund 2

[2]:
locations = load_repository()
[3]:
L = locations.borkum2
[4]:
svgplot(L)
[4]:
../_images/notebooks_14-OBEW_6_0.svg

Optimize Borkum Riffgrund 2

[5]:
G = OBEW(L, capacity=6, rootlust='0.6*cur_capacity/capacity')
calcload(G)
svgplot(G)
[5]:
../_images/notebooks_14-OBEW_8_0.svg
[6]:
G = OBEW(L, capacity=6)
calcload(G)
svgplot(G)
[6]:
../_images/notebooks_14-OBEW_9_0.svg