opt: opt

Description Usage Arguments Details Value Author(s) Examples

Description

Compute the optimal solution to the CCNP-k problem using brute force

Usage

1
  opt(ccg, ...)

Arguments

ccg

a ccgraph object

...

Arguments to be passed to compgraph

Details

Tries all possible subsets of edges

Value

An optimal solution, or NULL is the tasks are unsolvable

Author(s)

Ben Baumer

Examples

1
2
3
4
n = 20
p = 1/2
ccg = ccg.game(n, p)
opt(ccg)

beanumber/compgraph documentation built on May 12, 2019, 9:42 a.m.