PartEval: Evaluate the objective value of the partition

Description Usage Arguments Value Examples

Description

Evaluate the objective value of the partition

Usage

1
PartEval(sizes, part)

Arguments

sizes

a numeric vector which represents the integers (>0) in the set S.

part

a logical vector which represents the indicator function of S1 in the partition S=S1+S2.

Value

the absolute difference between the sum of integers in S1 and S2.

Examples

1
2
3
sizes <- c(13, 11, 8, 20, 20, 11, 16, 17, 4, 13)
part <-  c(TRUE, TRUE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, TRUE)
PartEval(sizes, part)

arnaud-m/partition documentation built on May 10, 2019, 1:44 p.m.