powered by
maxkcut creates input for sqlp to solve the Max-kCut Problem - given a graph object B, determine if a cut of at least size k exists.
maxkcut
maxkcut(B, K)
A (weighted) adjacency matrix
An integer value, the minimum number of cuts in B
A list containing the solution matrix to the primal problem
A list containing the solution vector to the dual problem
A list containing the solution matrix to the dual problem
The achieved value of the primary objective function
The achieved value of the dual objective function
Determines if a cut of at least size k exists for a graph B. Mathematical and implementation details can be found in the vignette
# NOT RUN { data(Bmaxkcut) out <- maxkcut(Bmaxkcut,2) # }
Run the code above in your browser using DataLab