4.7. Optimization¶
4.7.1. Site constraints¶
4.7.2. Minimum distance constraints¶
- class opentidalfarm.optimisation_helpers.ConvexPolygonSiteConstraint(farm, vertices)[source]¶
Bases: InequalityConstraint
Generates the inequality constraints for generic polygon constraints. The parameter polygon must be a list of point coordinates that describes the site edges in anti-clockwise order.
- class opentidalfarm.optimisation_helpers.DomainRestrictionConstraints(config, feasible_area, attraction_center)[source]¶
Bases: InequalityConstraint
- opentidalfarm.optimisation_helpers.friction_constraints(config, lb=0.0, ub=None)[source]¶
This function returns the constraints to ensure that the turbine friction controls remain reasonable.