trans_identity#

pybrops.breed.prot.sel.prob.trans.trans_identity(decnvec, latentvec, **kwargs)[source]#

Treat all elements in a latent vector as unconstrained objectives.

Parameters:
  • decnvec (numpy.ndarray) – An array of shape (ndecn,) containing decision variables corresponding the latentvec values.

  • latentvec (numpy.ndarray) – An array of shape (l,) to be transformed.

  • kwargs (dict) – Additional keyword arguments. Not used by this function.

Returns:

out – An array identical to the input.

Return type:

numpy.ndarray