This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import time | |
from shapely.geometry import Point, Polygon | |
from topfarm import TopFarmProblem | |
from topfarm.cost_models.cost_model_wrappers import CostModelComponent | |
from topfarm.easy_drivers import EasyScipyOptimizeDriver | |
from topfarm.constraint_components.spacing import SpacingConstraint | |
from topfarm.constraint_components.boundary import XYBoundaryConstraint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import time | |
from shapely.geometry import Point, Polygon | |
from topfarm import TopFarmProblem | |
from topfarm.cost_models.cost_model_wrappers import CostModelComponent | |
from topfarm.easy_drivers import EasyScipyOptimizeDriver | |
from topfarm.constraint_components.spacing import SpacingConstraint | |
from topfarm.constraint_components.boundary import XYBoundaryConstraint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import time | |
from shapely.geometry import Point, Polygon | |
from topfarm import TopFarmProblem | |
from topfarm.cost_models.cost_model_wrappers import CostModelComponent | |
from topfarm.easy_drivers import EasyScipyOptimizeDriver | |
from topfarm.constraint_components.spacing import SpacingConstraint | |
from topfarm.constraint_components.boundary import XYBoundaryConstraint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import time | |
from shapely.geometry import Point, Polygon | |
from topfarm import TopFarmProblem | |
from topfarm.plotting import XYPlotComp | |
from topfarm.cost_models.cost_model_wrappers import CostModelComponent | |
from topfarm.easy_drivers import EasyScipyOptimizeDriver | |
from topfarm.constraint_components.spacing import SpacingConstraint | |
from topfarm.constraint_components.boundary import XYBoundaryConstraint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ed_win.plot import plot_network | |
from ed_win.drivers.drivers import TwoStepHeuristicDriver, NCC, Planarize | |
import pandas as pd | |
import numpy as np | |
class WindFarmNetwork(): | |
def __init__(self, turbine_positions, substation_positions, drivers=[TwoStepHeuristicDriver()], cables=[], T=None, sequence=None): | |
if not isinstance(drivers, list): | |
drivers = [drivers] | |
self.turbine_positions = turbine_positions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import time | |
from shapely.geometry import Point, Polygon | |
from topfarm import TopFarmProblem | |
from topfarm.plotting import XYPlotComp | |
from topfarm.cost_models.cost_model_wrappers import CostModelComponent | |
from topfarm.easy_drivers import EasyScipyOptimizeDriver | |
from topfarm.constraint_components.spacing import SpacingConstraint | |
from topfarm.constraint_components.boundary import XYBoundaryConstraint |
NewerOlder