# MultiStartOptimizer¶

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

기반 클래스: 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.

매개변수
• 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.

Methods

 get_compatibility_msg Checks whether a given problem can be solved with the optimizer implementing this method. is_compatible Checks whether a given problem can be solved with the optimizer implementing this method. multi_start_solve Applies a multi start method given a local optimizer. solve Tries to solves the given problem using the optimizer.

Attributes

clip

Returns the clip value for this optimizer.

반환 형식

float

반환값

The clip value.

trials

Returns the number of trials for this optimizer.

반환 형식

int

반환값

The number of trials.