.. include:: ../shared/configurators.rst .. _execution_constraints: Execution Constraints ----------------------------------------------- The execution constraints class is used to define the constraints on the execution of a black box. The execution constraints requires an enforcer. The current supported enforcer is RunSolver. .. py:module:: optilog.blackbox :noindex: .. autoclass:: ExecutionConstraints .. autoclass:: RunSolver :inherited-members: Example with RunSolver and no extra parameters: .. code:: python :number-lines: RunningScenario( tasks=tasks, solvers=solvers_dict, submit_file=f"submitter.sh", constraints=ExecutionConstraints( s_wall_time=1000, s_real_memory="100M", enforcer=RunSolver() )) .. autoclass:: DockerEnforcer :inherited-members: