Skip to content

StaticOptimizationParameter

QuantConnect.Optimizer.Parameters.StaticOptimizationParameter

StaticOptimizationParameter(name: str, value: str)

Bases: OptimizationParameter

Defines the step based optimization parameter

Creates a new instance

Parameters:

Name Type Description Default
name str

The name of the parameter

required
value str

The fixed value of this parameter

required

value

value: str

Minimum value of optimization parameter, applicable for boundary conditions

name

name: str

Name of optimization parameter

equals

equals(obj: Any) -> bool
equals(other: OptimizationParameter) -> bool

Signature descriptions:

  • Determines whether the specified object is equal to the current object.

  • Indicates whether the current object is equal to another object of the same type.

Parameters:

Name Type Description Default
obj Optional[Any]

The object to compare with the current object.

None
other Optional[OptimizationParameter]

An object to compare with this object.

None

Returns:

Type Description
bool

Depends on the signature used. Case 1: [true if the specified object is equal to the current object; otherwise, false.]; Case 2: [true if the current object is equal to the other parameter; otherwise, false.]

get_hash_code

get_hash_code() -> int

Serves as the default hash function.

Returns:

Type Description
int

A hash code for the current object.