GoemansWilliamsonOptimizationResult#
- class GoemansWilliamsonOptimizationResult(x, fval, variables, status, samples, sdp_solution=None)[fuente]#
Bases:
OptimizationResult
Contains results of the Goemans-Williamson algorithm. The properties
x
andfval
contain values of just one solution. Exploresamples
for all possible solutions.- Parámetros:
x (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 (List[SolutionSample] | None) – the solution samples.
sdp_solution (ndarray | None) – an SDP solution of the problem.
Attributes
- fval#
Returns the objective function value.
- Devuelve:
The function value corresponding to the objective function value found in the optimization.
- raw_results#
Return the original results object from the optimization algorithm.
Currently a dump for any leftovers.
- Devuelve:
Additional result information of the optimization algorithm.
- samples#
Returns the list of solution samples
- Devuelve:
The list of solution samples.
- sdp_solution#
Returns: Returns an SDP solution of the problem.
- status#
Returns the termination status of the optimization algorithm.
- Devuelve:
The termination status of the algorithm.
- variable_names#
Returns the list of variable names of the optimization problem.
- Devuelve:
The list of variable names of the optimization problem.
- variables#
Returns the list of variables of the optimization problem.
- Devuelve:
The list of variables.
- variables_dict#
Returns the variable values as a dictionary of the variable name and corresponding value.
- Devuelve:
The variable values as a dictionary of the variable name and corresponding value.
- x#
Returns the variable values found in the optimization or None in case of FAILURE.
- Devuelve:
The variable values found in the optimization.
Methods
- get_correlations()#
Get <Zi x Zj> correlation matrix from the samples.
- Devuelve:
A correlation matrix.
- Tipo del valor devuelto: