GoemansWilliamsonOptimizationResult¶
- class GoemansWilliamsonOptimizationResult(x, fval, variables, status, samples, sdp_solution=None)[source]¶
Bases:
OptimizationResult
Contains results of the Goemans-Williamson algorithm. The properties
x
andfval
contain values of just one solution. Exploresamples
for all possible solutions.- Parameters
x (
Union
[List
[float
],ndarray
,None
]) – the optimal value found in the optimization.fval (
float
) – the optimal function value.variables (
List
[Variable
]) – the list of variables of the optimization problem.status (
OptimizationResultStatus
) – the termination status of the optimization algorithm.samples (
Optional
[List
[SolutionSample
]]) – the solution samples.sdp_solution (
Optional
[ndarray
]) – an SDP solution of the problem.
Attributes
Returns: Returns an SDP solution of the problem.
Methods