English
Languages
English
Shortcuts



MultiStartOptimizer

class MultiStartOptimizer(trials=1, clip=100.0)[source]

Bases: qiskit_optimization.algorithms.optimization_algorithm.OptimizationAlgorithm, abc.ABC

An abstract class that implements multi start optimization and should be sub-classed by other optimizers.

Constructs an instance of this optimizer.

Parameters
  • trials (int) – The number of trials for multi-start method. The first trial is solved with the initial guess of zero. If more than one trial is specified then initial guesses are uniformly drawn from [lowerbound, upperbound] with potential clipping.

  • clip (float) – Clipping parameter for the initial guesses in the multi-start method. If a variable is unbounded then the lower bound and/or upper bound are replaced with the -clip or clip values correspondingly for the initial guesses.

Raises

ValueError – if the variable trials has a value smaller than 1.

Attributes

clip

Returns the clip value for this optimizer.

trials

Returns the number of trials for this optimizer.

Methods

multi_start_solve(minimize, problem)

Applies a multi start method given a local optimizer.