You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes based on new version of ProblemReductions (#88)
* "Dependences: maybe different with paths"
* "New codes in src/"
* "New codes in test/"
* docs and example
* fix tests
* fix documents
* fix documents
* rm Printf
* fix set-packing test
* correct .
* deprecate GraphProblem, chweights,ZeroWeight and UnitWeight
* fix test
* fix cuda tests
---------
Co-authored-by: GiggleLiu <cacate0129@gmail.com>
Copy file name to clipboardExpand all lines: docs/src/ref.md
+26-19
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
# References
2
-
## Graph problems
2
+
## Constraint Satisfaction Problems
3
3
```@docs
4
4
solve
5
5
GenericTensorNetwork
6
-
GraphProblem
6
+
ConstraintSatisfactionProblem
7
7
IndependentSet
8
8
MaximalIS
9
9
Matching
@@ -15,28 +15,35 @@ PaintShop
15
15
Satisfiability
16
16
SetCovering
17
17
SetPacking
18
-
OpenPitMining
19
18
```
20
19
21
-
#### Graph Problem Interfaces
20
+
#### Constraint Satisfaction Problem Interfaces
22
21
23
-
To subtype [`GraphProblem`](@ref), a new type must contain a `code` field to represent the (optimized) tensor network.
24
-
Interfaces [`GenericTensorNetworks.generate_tensors`](@ref), [`labels`](@ref), [`flavors`](@ref) and [`get_weights`](@ref) are required.
25
-
[`nflavor`](@ref) is optional.
22
+
To subtype [`ConstraintSatisfactionProblem`](@ref), a new type must contain a `code` field to represent the (optimized) tensor network.
23
+
Interfaces [`GenericTensorNetworks.generate_tensors`](@ref), [`flavors`](@ref) and [`weights`](@ref) are required.
24
+
[`num_flavors`](@ref) is optional.
26
25
27
26
```@docs
28
27
GenericTensorNetworks.generate_tensors
29
-
labels
30
-
energy_terms
31
28
flavors
32
-
get_weights
33
-
chweights
34
-
nflavor
29
+
weights
30
+
set_weights
31
+
is_weighted
32
+
num_flavors
35
33
fixedvertices
36
34
```
37
35
38
-
#### Graph Problem Utilities
36
+
#### Constraint Satisfaction Problem Utilities
39
37
```@docs
38
+
hard_constraints
39
+
is_satisfied
40
+
local_solution_spec
41
+
solution_size
42
+
energy_mode
43
+
LargerSizeIsBetter
44
+
SmallerSizeIsBetter
45
+
energy
46
+
40
47
is_independent_set
41
48
is_maximal_independent_set
42
49
is_dominating_set
@@ -46,10 +53,7 @@ is_set_covering
46
53
is_set_packing
47
54
48
55
cut_size
49
-
spinglass_energy
50
56
num_paint_shop_color_switch
51
-
paint_shop_coloring_from_config
52
-
mis_compactify!
53
57
54
58
CNF
55
59
CNFClause
@@ -60,8 +64,7 @@ satisfiable
60
64
¬
61
65
∧
62
66
63
-
is_valid_mining
64
-
print_mining
67
+
mis_compactify!
65
68
```
66
69
67
70
## Properties
@@ -145,7 +148,12 @@ MergeGreedy
145
148
146
149
## Others
147
150
#### Graph
151
+
Except the `SimpleGraph` defined in [Graphs](https://github.com/JuliaGraphs/Graphs.jl), `GenericTensorNetworks` also defines the following types and functions.
0 commit comments