English
Languages
English
Shortcuts



RecursiveMinimumEigenOptimizationResult

class RecursiveMinimumEigenOptimizationResult(x, fval, variables, status, replacements, history)[source]

Bases: qiskit_optimization.algorithms.optimization_algorithm.OptimizationResult

Recursive Eigen Optimizer Result.

Constructs an instance of the result class.

Parameters
  • x (Union[List[float], ndarray]) – 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.

  • replacements (Dict[str, Tuple[str, int]]) – a dictionary of substituted variables. Key is a variable being substituted, value is a tuple of substituting variable and a weight, either 1 or -1.

  • history (Tuple[List[MinimumEigenOptimizationResult], OptimizationResult]) – a tuple containing intermediate results. The first element is a list of MinimumEigenOptimizerResult obtained by invoking MinimumEigenOptimizer iteratively, the second element is an instance of OptimizationResult obtained at the last step via min_num_vars_optimizer.

Attributes

history

Returns intermediate results.

replacements

Returns a dictionary of substituted variables.

Methods