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
orclip
values correspondingly for the initial guesses.
Methods
Checks whether a given problem can be solved with the optimizer implementing this method.
Checks whether a given problem can be solved with the optimizer implementing this method.
Applies a multi start method given a local optimizer.
Tries to solves the given problem using the optimizer.
Attributes
-
clip
¶ Returns the clip value for this optimizer.
- Return type
float
- Returns
The clip value.
-
trials
¶ Returns the number of trials for this optimizer.
- Return type
int
- Returns
The number of trials.