|
|
|
@@ -258,8 +258,9 @@ class Reasoner: |
|
|
|
|
|
|
|
def zoopt_budget(self, symbol_num: int) -> int: |
|
|
|
""" |
|
|
|
Set the budget for ZOOpt optimization. The function, in its default implementation, |
|
|
|
returns a budget value of 10 * ``symbol_num``. |
|
|
|
Set the budget for ZOOpt optimization. The budget can be dynamic relying on |
|
|
|
the number of symbols considered, e.g., the default implementation shown below. |
|
|
|
Alternatively, it can be a fixed value, such as simply setting it to 100. |
|
|
|
|
|
|
|
Parameters |
|
|
|
---------- |
|
|
|
@@ -269,7 +270,7 @@ class Reasoner: |
|
|
|
Returns |
|
|
|
------- |
|
|
|
int |
|
|
|
The budget for ZOOpt optimization. By default, this is 10 * ``symbol_num``. |
|
|
|
The budget for ZOOpt optimization. |
|
|
|
""" |
|
|
|
return 10 * symbol_num |
|
|
|
|
|
|
|
|