random_weight: Random weight generator

Description Usage Arguments Value

View source: R/util.R

Description

Generate a random set of weights for heuristics which use real-values search space.

Usage

1
random_weight(N, lb, ub)

Arguments

N

Number of vertices

lb

The upper bound of the values in the weight set (0 <= lv <= ub)

ub

The lower bound of the values in the weight set (0 <= lv <= ub)

Value

A vector with N values (double) in the interval [ub,lb]


caranha/EvoGCP documentation built on May 3, 2021, 3:40 p.m.