@@ -44,18 +44,19 @@ def __init__(self, problem, options):
4444 self .fitness_function = problem .get ('fitness_function' ) # to be *minimized*
4545 self .ndim_problem = problem .get ('ndim_problem' ) # number of problem dimensionality
4646 assert self .ndim_problem > 0
47- # mainly for the initialization process
47+ # mainly for both the *initialization* process and the *constrained sampling* process:
48+ # Constrained sampling is covered in its extended library called `PyCoPop7`
4849 self .upper_boundary = problem .get ('upper_boundary' ) # upper boundary of search range
4950 self .lower_boundary = problem .get ('lower_boundary' ) # lower boundary of search range
50- # only for the initialization process
51+ # only for the * initialization* process
5152 self .initial_upper_boundary = problem .get ('initial_upper_boundary' , self .upper_boundary )
5253 self .initial_lower_boundary = problem .get ('initial_lower_boundary' , self .lower_boundary )
5354 # mainly for the printing purpose
5455 self .problem_name = problem .get ('problem_name' ) # should be of data type `str`
5556 if (self .problem_name is None ) and hasattr (self .fitness_function , '__name__' ):
5657 self .problem_name = self .fitness_function .__name__
5758
58- # optimizer-related options
59+ # optimizer-related basic options
5960 self .options = options
6061 self .max_function_evaluations = options .get ('max_function_evaluations' , np .inf )
6162 self .max_runtime = options .get ('max_runtime' , np .inf )
0 commit comments