Learn R Programming

mcMST (version 1.1.1)

genRandomMCGP: Generate a bi-criteria graph with two uniformly randomly distribted edge weights.

Description

The instance is composed of two symmetric weight matrices. The first weight is drawn independently at random from a \(\mathcal{R}[10, 100]\) distribution, the second one from a \(\mathcal{R}[10, 50]\) distribution (see references).

Usage

genRandomMCGP(n)

Value

[grapherator] Graph.

Arguments

n

[integer(1)]
Instance size, i.e., number of nodes.

References

Zhou, G. and Gen, M. Genetic Algorithm Approach on Multi-Criteria Minimum Spanning Tree Problem. In: European Journal of Operational Research (1999).

Knowles, JD & Corne, DW 2001, A comparison of encodings and algorithms for multiobjective minimum spanning tree problems. in Proceedings of the IEEE Conference on Evolutionary Computation, ICEC|Proc IEEE Conf Evol Comput Proc ICEC. vol. 1, Institute of Electrical and Electronics Engineers , pp. 544-551, Congress on Evolutionary Computation 2001, Soul, 1 July.

Examples

Run this code
g = genRandomMCGP(10L)
if (FALSE) {
pl = grapherator::plot(g)
}

Run the code above in your browser using DataLab