Skip to content

Test Client

test_client

Minimal Test Client for testing an active control server.

surrogate.test_client.TestClientSettings dataclass

Configuration of an Umbridge test client.

Attributes:

Name Type Description
control_url str

str: Address of the UMBridge server of the surrogate control

control_name str

str: Name of the UMBridge server of the surrogate control

simulation_config dict[Any]

dict[Any]: Configuration argument for the call to the control servers

training_params np.ndarray

np.ndarray: Parameters to request evaluation for

surrogate.test_client.TestClient

Minimal test client.

The test client connects to an active control server and submits requests for evlauation of the user-given parameters.

Methods:

Name Description
run

Run the client

__init__

__init__(test_client_settings: TestClientSettings) -> None

Constructor.

Sets up control server.

Parameters:

Name Type Description Default
test_client_settings TestClientSettings

Configuration of the client

required

run

run() -> None

Submit evaluation requests to control server.