inbFun: Fitness function from contribution theory using only the...

inbFunR Documentation

Fitness function from contribution theory using only the group relationship

Description

Simple function for fitness where we only use the group relationship.

Usage

inbFun(Y,b,Q,D,a, lambda)

Arguments

Y

A matrix of trait values. See details.

b

A vector of trait weights. See details.

Q

A QTL matrix. See details.

D

An LD matrix. See details.

a

A named list with vectors of average allelic effects per trait. See details.

lambda

A numeric value to weight the Q'DQ portion of the objective function (to be provided by the user with the lambda argument). See details.

Details

A simple apply function of a regular index weighted by a vector of relationships.

Matrix::diag(Q%*%Matrix::tcrossprod(D,Q)) of dimensions n x n

Notice that Q represents the marker of QTLs (columns) for all solutions (rows) and D the LD between QTLs. The user can modify this function as needed and provide it to the evolafit function along with other arguments.

Value

$res

a vector of values

References

Giovanny Covarrubias-Pazaran (2024). evola: a simple evolutionary algorithm for complex problems. To be submitted to Bioinformatics.

See Also

evolafit – the core function of the package

Examples


Q <- matrix(1,3,3) # QTL matrix available internally
D <- diag(3) # LD matrix
inbFun(Q=Q, D=D) # group relationship


evola documentation built on Aug. 8, 2025, 7:54 p.m.