Functions | |
| def | gcp (V, E, K) |
| def | gcp_low (V, E, K) |
| def | gcp_sos (V, E, K) |
| def | make_data (n, prob) |
Variables | |
| dictionary | color = {} |
| dictionary | cpu = {} |
| E | |
| int | K = 10 |
| def | model = gcp_low(V, E, K) |
| list | models = [gcp, gcp_low, gcp_sos] |
| int | N = 25 |
| name = m.__name__ | |
| tend = time.time() | |
| tinit = time.time() | |
| V | |
| def | x = model.data |
| def gcp.gcp | ( | V, | |
| E, | |||
| K | |||
| ) |
gcp -- model for minimizing the number of colors in a graph
Parameters:
- V: set/list of nodes in the graph
- E: set/list of edges in the graph
- K: upper bound on the number of colors
Returns a model, ready to be solved.
Definition at line 10 of file gcp.py.
References pyscipopt.expr.quicksum().
| def gcp.gcp_low | ( | V, | |
| E, | |||
| K | |||
| ) |
gcp_low -- model for minimizing the number of colors in a graph
(use colors with low indices)
Parameters:
- V: set/list of nodes in the graph
- E: set/list of edges in the graph
- K: upper bound to the number of colors
Returns a model, ready to be solved.
Definition at line 38 of file gcp.py.
References pyscipopt.expr.quicksum().
| def gcp.gcp_sos | ( | V, | |
| E, | |||
| K | |||
| ) |
gcp_sos -- model for minimizing the number of colors in a graph
(use sos type 1 constraints)
Parameters:
- V: set/list of nodes in the graph
- E: set/list of edges in the graph
- K: upper bound to the number of colors
Returns a model, ready to be solved.
Definition at line 70 of file gcp.py.
References pyscipopt.expr.quicksum().
| def gcp.make_data | ( | n, | |
| prob | |||
| ) |