trans_max_inbreeding_constraint#
- pybrops.breed.prot.sel.transfn.trans_max_inbreeding_constraint(vec, maxinb, **kwargs)[source]#
Convert the first element in a latent vector into an inbreeding inequality constraint and leave the rest of the objectives unconstrained.
- Parameters:
vec (numpy.ndarray) – An array of shape
(l,)
to be transformed.maxinb (Real) – Maximum inbreeding value.
kwargs (dict) – Additional keyword arguments. Not used by this function.
- Return type:
Tuple
[ndarray
,ndarray
,ndarray
]