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.

function(m)[source]
jacobian(m)[source]
length()[source]
output_workspace()[source]
class opentidalfarm.optimisation_helpers.DomainRestrictionConstraints(config, feasible_area, attraction_center)[source]

Bases: InequalityConstraint

function(m)[source]
jacobian(m)[source]
length()[source]
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.

opentidalfarm.optimisation_helpers.get_distance_function(config, domains)[source]
opentidalfarm.optimisation_helpers.get_domain_constraints(config, feasible_area, attraction_center)[source]
opentidalfarm.optimisation_helpers.position_constraints(config)[source]

This function returns the constraints to ensure that the turbine positions remain inside the domain.