pyglobalsearch.PyOQNLPParams#
- class pyglobalsearch.PyOQNLPParams(iterations=300, population_size=1000, wait_cycle=15, threshold_factor=0.2, distance_factor=0.75, abs_tol=1e-08, rel_tol=1e-06)#
Bases:
objectParameters for the OQNLP global optimization algorithm.
The OQNLP algorithm combines scatter search metaheuristics with local optimization to find global minima in nonlinear optimization problems. These parameters control the behavior of the algorithm.
- Parameters:
iterations (int) – Maximum number of global iterations
population_size (int) – Size of the scatter search population
wait_cycle (int) – Iterations to wait without improvement before termination
threshold_factor (float) – Controls acceptance threshold for new solutions
distance_factor (float) – Controls minimum distance between solutions
abs_tol (float) – Absolute tolerance for comparing objective values (default: 1e-8)
rel_tol (float) – Relative tolerance for comparing objective values (default: 1e-6)
Examples#
Default parameters:
>>> params = gs.PyOQNLPParams()
Custom parameters for difficult problems:
>>> params = gs.PyOQNLPParams( ... iterations=500, ... population_size=2000, ... wait_cycle=25, ... threshold_factor=0.1, # More exploration ... distance_factor=0.2 # Allow closer solutions ... )
- __init__()#
Methods
__init__()Attributes
Absolute tolerance for comparing objective values (default: 1e-8)
Controls minimum distance between solutions
Maximum number of stage two iterations
Size of the scatter search population
Relative tolerance for comparing objective values (default: 1e-6)
Controls acceptance threshold for new solutions
Iterations to wait without improvement before termination
- abs_tol#
Absolute tolerance for comparing objective values (default: 1e-8)
- distance_factor#
Controls minimum distance between solutions
- iterations#
Maximum number of stage two iterations
- population_size#
Size of the scatter search population
- rel_tol#
Relative tolerance for comparing objective values (default: 1e-6)
- threshold_factor#
Controls acceptance threshold for new solutions
- wait_cycle#
Iterations to wait without improvement before termination