English
Languages
English
Bengali
Japanese
Shortcuts



GoemansWilliamsonOptimizationResult

class GoemansWilliamsonOptimizationResult(x, fval, variables, status, samples, sdp_solution=None)[source]

Bases: OptimizationResult

Contains results of the Goemans-Williamson algorithm. The properties x and fval contain values of just one solution. Explore samples 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

sdp_solution

Returns: Returns an SDP solution of the problem.

Methods