Skip to content

Commit bd77525

Browse files
committed
Fix 311: CMA-ES with constraints parallel rejection sampling
1 parent 41db0fb commit bd77525

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pymoo/algorithms/soo/nonconvex/cmaes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def __init__(self,
8888
cmaes_verbose=-9,
8989
verb_log=0,
9090
output=CMAESOutput(),
91+
pop_size=None,
9192
**kwargs
9293
):
9394
"""
@@ -355,6 +356,9 @@ def __init__(self,
355356
for a list of available options.
356357
357358
"""
359+
if pop_size is not None:
360+
kwargs["popsize"] = pop_size
361+
358362
super().__init__(x0=x0, output=output, **kwargs)
359363

360364
self.termination = NoTermination()
@@ -453,7 +457,6 @@ def _advance(self, infills=None, **kwargs):
453457
F = F[0]
454458

455459
try:
456-
print(F)
457460
self.next_X = self.es.send(F)
458461
except:
459462
self.next_X = None

0 commit comments

Comments
 (0)