foxes_opt.problems.layout.geom_layouts.derivatives

Functions

extreme_derivative(→ float)

Differentiate a minimum or maximum across active scalar branches.

layout_data(→ tuple[numpy.ndarray, numpy.ndarray, ...)

Return layout points, validity, and one Jacobian column.

maximin_distance_derivative(→ float)

Differentiate the largest probe-to-nearest-point distance.

nearest_distance_derivatives(→ tuple[numpy.ndarray, ...)

Calculate nearest-neighbour distances and one derivative column.

Module Contents

foxes_opt.problems.layout.geom_layouts.derivatives.extreme_derivative(values: numpy.ndarray, derivatives: numpy.ndarray, maximize: bool) → float[source]

Differentiate a minimum or maximum across active scalar branches.

foxes_opt.problems.layout.geom_layouts.derivatives.layout_data(problem: iwopy.Problem, vars_int: numpy.ndarray, vars_float: numpy.ndarray, var: int) → tuple[numpy.ndarray, numpy.ndarray, numpy.ndarray] | None[source]

Return layout points, validity, and one Jacobian column.

foxes_opt.problems.layout.geom_layouts.derivatives.maximin_distance_derivative(probes: numpy.ndarray, points: numpy.ndarray, valid: numpy.ndarray, point_derivatives: numpy.ndarray) → float[source]

Differentiate the largest probe-to-nearest-point distance.

foxes_opt.problems.layout.geom_layouts.derivatives.nearest_distance_derivatives(points: numpy.ndarray, point_derivatives: numpy.ndarray, scale: float) → tuple[numpy.ndarray, numpy.ndarray][source]

Calculate nearest-neighbour distances and one derivative column.