Skip to contents

Fitness function to calculate the SUM of the selected submatrix

Usage

fitness_function(solution, matrix, n, m)

Arguments

solution

a vector of n+m numbers.

matrix

the original matrix to optimize.

n

row numbers.

m

column numbers.