adapt_group

pyoptex.doe.cost_optimal.codex.optimization.adapt_group(groups, factor, row_start, row_end)[source]

Detects which groups should be adapted by having changed a specific factor column from row_start to row_end.

Parameters

groupsnp.array(1d)

The grouping matrix for this factor.

factornp.array(2d)

The factor column with its coordinate changed already.

row_startint

The starting row (included) where the coordinate was changed.

row_endint

The final row (excluded) where the coordinate was changed.

Returns

blist(tuple(row_start, row_end, group_from, group_to))

A list of operations to apply changing the groups of the factors.