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]:
Optimize Borkum Riffgrund 2¶
[5]:
G = OBEW(L, capacity=6, rootlust='0.6*cur_capacity/capacity')
calcload(G)
svgplot(G)
[5]:
[6]:
G = OBEW(L, capacity=6)
calcload(G)
svgplot(G)
[6]: