Static Strategy¶
Do not update configs between iteration (non adaptive)
StaticStrategy
¶
Bases: AdaptiveStrategy
Static strategy that always selects the same LNPS configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
converter
|
AutoDestructionConverter
|
Converter for computing destruction percentages of auto-mode destroy operators. |
LastImprovementDestructionConverter()
|
get_initial_config(config_catalog: ConfigCatalog, initial_model: Model) -> ActiveConfig
¶
Get initial LNS configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config_catalog
|
ConfigCatalog
|
Config catalog. |
required |
initial_model
|
Model
|
Initial model. |
required |
Returns:
| Type | Description |
|---|---|
ActiveConfig
|
Selected active LNS configuration. |
update_config(active_config: ActiveConfig, config_catalog: ConfigCatalog, stats: list[dict[str, Any]], lns_object: LNS) -> ActiveConfig
¶
Return the same LNS configuration without updating.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
active_config
|
ActiveConfig
|
Current active LNS configuration. |
required |
config_catalog
|
ConfigCatalog
|
Full LNS configuration catalog. |
required |
stats
|
list[dict[str, Any]]
|
Statistics. |
required |
Returns:
| Type | Description |
|---|---|
ActiveConfig
|
New active LNS configuration. |