{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"code_folding": [],
"customInput": null,
"hidden_ranges": [],
"originalKey": "95e7a97a-bf78-48d4-a0c1-c0e8dfc4fed9",
"showInput": true
},
"source": [
"# Multi-Objective Optimization Ax API\n",
"### Using the Service API\n",
"For Multi-objective optimization (MOO) in the `AxClient`, objectives are specified through the `ObjectiveProperties` dataclass. An `ObjectiveProperties` requires a boolean `minimize`, and also accepts an optional floating point `threshold`. If a `threshold` is not specified, Ax will infer it through the use of heuristics. If the user knows the region of interest (because they have specs or prior knowledge), then specifying the thresholds is preferable to inferring it. But if the user would need to guess, inferring is preferable.\n",
"\n",
"\n",
"To learn more about how to choose a threshold, see [Set Objective Thresholds to focus candidate generation in a region of interest](#Set-Objective-Thresholds-to-focus-candidate-generation-in-a-region-of-interest). See the [Service API Tutorial](/tutorials/gpei_hartmann_service.html) for more infomation on running experiments with the Service API."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"code_folding": [],
"customInput": null,
"execution": {
"iopub.execute_input": "2023-08-11T16:07:54.580652Z",
"iopub.status.busy": "2023-08-11T16:07:54.580060Z",
"iopub.status.idle": "2023-08-11T16:08:02.742560Z",
"shell.execute_reply": "2023-08-11T16:08:02.741133Z"
},
"hidden_ranges": [],
"originalKey": "06bf2029-0ea4-40b4-aced-956f1411cb6e",
"showInput": true
},
"outputs": [
{
"data": {
"text/html": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.utils.notebook.plotting: Injecting Plotly library into cell. Do not overwrite or delete cell.\n"
]
},
{
"data": {
"text/html": [
" \n",
" "
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from ax.service.ax_client import AxClient\n",
"from ax.service.utils.instantiation import ObjectiveProperties\n",
"\n",
"import torch\n",
"\n",
"# Plotting imports and initialization\n",
"from ax.utils.notebook.plotting import render, init_notebook_plotting\n",
"from ax.plot.pareto_utils import compute_posterior_pareto_frontier\n",
"from ax.plot.pareto_frontier import plot_pareto_frontier\n",
"\n",
"init_notebook_plotting()\n",
"\n",
"# Load our sample 2-objective problem\n",
"from botorch.test_functions.multi_objective import BraninCurrin\n",
"\n",
"branin_currin = BraninCurrin(negate=True).to(\n",
" dtype=torch.double,\n",
" device=torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\"),\n",
")"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"code_folding": [],
"customInput": null,
"execution": {
"iopub.execute_input": "2023-08-11T16:08:02.774452Z",
"iopub.status.busy": "2023-08-11T16:08:02.774114Z",
"iopub.status.idle": "2023-08-11T16:08:02.783872Z",
"shell.execute_reply": "2023-08-11T16:08:02.783366Z"
},
"executionStartTime": 1628191188673,
"executionStopTime": 1628191188746,
"hidden_ranges": [],
"originalKey": "c687973d-1b09-4a8f-9108-1f74adf64d4d",
"requestMsgId": "ea523260-8896-48e4-a62f-3530d268b209",
"showInput": true
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.service.ax_client: Starting optimization with verbose logging. To disable logging, set the `verbose_logging` argument to `False`. Note that float values in the logs are rounded to 6 decimal points.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.service.utils.instantiation: Inferred value type of ParameterType.FLOAT for parameter x1. If that is not the expected value type, you can explicity specify 'value_type' ('int', 'float', 'bool' or 'str') in parameter dict.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.service.utils.instantiation: Inferred value type of ParameterType.FLOAT for parameter x2. If that is not the expected value type, you can explicity specify 'value_type' ('int', 'float', 'bool' or 'str') in parameter dict.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.service.utils.instantiation: Created search space: SearchSpace(parameters=[RangeParameter(name='x1', parameter_type=FLOAT, range=[0.0, 1.0]), RangeParameter(name='x2', parameter_type=FLOAT, range=[0.0, 1.0])], parameter_constraints=[]).\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.core.experiment: The is_test flag has been set to True. This flag is meant purely for development and integration testing purposes. If you are running a live experiment, please set this flag to False\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.modelbridge.dispatch_utils: Using Models.MOO since there are more ordered parameters than there are categories for the unordered categorical parameters.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.modelbridge.dispatch_utils: Calculating the number of remaining initialization trials based on num_initialization_trials=None max_initialization_trials=None num_tunable_parameters=2 num_trials=None use_batch_trials=False\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.modelbridge.dispatch_utils: calculated num_initialization_trials=5\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.modelbridge.dispatch_utils: num_completed_initialization_trials=0 num_remaining_initialization_trials=5\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.modelbridge.dispatch_utils: Using Bayesian Optimization generation strategy: GenerationStrategy(name='Sobol+MOO', steps=[Sobol for 5 trials, MOO for subsequent trials]). Iterations after 5 will take longer to generate due to model-fitting.\n"
]
}
],
"source": [
"ax_client = AxClient()\n",
"ax_client.create_experiment(\n",
" name=\"moo_experiment\",\n",
" parameters=[\n",
" {\n",
" \"name\": f\"x{i+1}\",\n",
" \"type\": \"range\",\n",
" \"bounds\": [0.0, 1.0],\n",
" }\n",
" for i in range(2)\n",
" ],\n",
" objectives={\n",
" # `threshold` arguments are optional\n",
" \"a\": ObjectiveProperties(minimize=False, threshold=branin_currin.ref_point[0]),\n",
" \"b\": ObjectiveProperties(minimize=False, threshold=branin_currin.ref_point[1]),\n",
" },\n",
" overwrite_existing_experiment=True,\n",
" is_test=True,\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {
"code_folding": [],
"customInput": null,
"hidden_ranges": [],
"originalKey": "70fd45e1-a2ce-4034-bb44-086507833472",
"showInput": true
},
"source": [
"### Create an Evaluation Function\n",
"In the case of MOO experiments, evaluation functions can be any arbitrary function that takes in a `dict` of parameter names mapped to values and returns a `dict` of objective names mapped to a `tuple` of mean and SEM values."
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"code_folding": [],
"customInput": null,
"execution": {
"iopub.execute_input": "2023-08-11T16:08:02.787198Z",
"iopub.status.busy": "2023-08-11T16:08:02.787018Z",
"iopub.status.idle": "2023-08-11T16:08:02.790091Z",
"shell.execute_reply": "2023-08-11T16:08:02.789604Z"
},
"executionStartTime": 1628191201840,
"executionStopTime": 1628191201871,
"hidden_ranges": [],
"originalKey": "a0e4fa8d-ebc7-4dc6-b370-ed4a83e3208f",
"requestMsgId": "9cfd336d-c317-4d1c-a028-42d45903bac6",
"showInput": true
},
"outputs": [],
"source": [
"def evaluate(parameters):\n",
" evaluation = branin_currin(\n",
" torch.tensor([parameters.get(\"x1\"), parameters.get(\"x2\")])\n",
" )\n",
" # In our case, standard error is 0, since we are computing a synthetic function.\n",
" # Set standard error to None if the noise level is unknown.\n",
" return {\"a\": (evaluation[0].item(), 0.0), \"b\": (evaluation[1].item(), 0.0)}"
]
},
{
"cell_type": "markdown",
"metadata": {
"code_folding": [],
"customInput": null,
"hidden_ranges": [],
"originalKey": "4200cd7c-8e13-4cbf-b0c1-72b52d900aaf",
"showInput": true
},
"source": [
"### Run Optimization"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"customInput": null,
"execution": {
"iopub.execute_input": "2023-08-11T16:08:02.792602Z",
"iopub.status.busy": "2023-08-11T16:08:02.792400Z",
"iopub.status.idle": "2023-08-11T16:08:18.928394Z",
"shell.execute_reply": "2023-08-11T16:08:18.927622Z"
},
"executionStartTime": 1628191208271,
"executionStopTime": 1628191238749,
"originalKey": "f91b1a1e-c78a-4262-a211-a13115c007c1",
"requestMsgId": "842a1cf8-97a3-43d6-83a3-f258ea96ae20",
"showInput": true
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.service.ax_client: Generated new trial 0 with parameters {'x1': 0.701518, 'x2': 0.156306}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.service.ax_client: Completed trial 0 with data: {'a': (-18.383011, 0.0), 'b': (-10.296076, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.service.ax_client: Generated new trial 1 with parameters {'x1': 0.929243, 'x2': 0.589945}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.service.ax_client: Completed trial 1 with data: {'a': (-47.122696, 0.0), 'b': (-5.857306, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.service.ax_client: Generated new trial 2 with parameters {'x1': 0.445229, 'x2': 0.810535}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.service.ax_client: Completed trial 2 with data: {'a': (-80.631577, 0.0), 'b': (-5.575551, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.service.ax_client: Generated new trial 3 with parameters {'x1': 0.796297, 'x2': 0.309085}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.service.ax_client: Completed trial 3 with data: {'a': (-29.540968, 0.0), 'b': (-8.395409, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.service.ax_client: Generated new trial 4 with parameters {'x1': 0.20532, 'x2': 0.864158}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:02] ax.service.ax_client: Completed trial 4 with data: {'a': (-18.477371, 0.0), 'b': (-6.056166, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:03] ax.service.ax_client: Generated new trial 5 with parameters {'x1': 0.032248, 'x2': 0.630939}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:03] ax.service.ax_client: Completed trial 5 with data: {'a': (-48.562492, 0.0), 'b': (-3.432099, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:04] ax.service.ax_client: Generated new trial 6 with parameters {'x1': 0.206069, 'x2': 0.612144}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:04] ax.service.ax_client: Completed trial 6 with data: {'a': (-6.92124, 0.0), 'b': (-7.695414, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:04] ax.service.ax_client: Generated new trial 7 with parameters {'x1': 0.150912, 'x2': 0.030117}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:04] ax.service.ax_client: Completed trial 7 with data: {'a': (-119.343346, 0.0), 'b': (-13.202106, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:05] ax.service.ax_client: Generated new trial 8 with parameters {'x1': 0.0, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:05] ax.service.ax_client: Completed trial 8 with data: {'a': (-17.508297, 0.0), 'b': (-1.180408, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:05] ax.service.ax_client: Generated new trial 9 with parameters {'x1': 0.067296, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:05] ax.service.ax_client: Completed trial 9 with data: {'a': (-4.005313, 0.0), 'b': (-3.663518, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:06] ax.service.ax_client: Generated new trial 10 with parameters {'x1': 0.031327, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:06] ax.service.ax_client: Completed trial 10 with data: {'a': (-9.000585, 0.0), 'b': (-2.4325, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:07] ax.service.ax_client: Generated new trial 11 with parameters {'x1': 0.060198, 'x2': 0.908685}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:07] ax.service.ax_client: Completed trial 11 with data: {'a': (-5.578178, 0.0), 'b': (-3.706179, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:07] ax.service.ax_client: Generated new trial 12 with parameters {'x1': 0.014968, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:07] ax.service.ax_client: Completed trial 12 with data: {'a': (-12.997011, 0.0), 'b': (-1.789565, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:08] ax.service.ax_client: Generated new trial 13 with parameters {'x1': 1.0, 'x2': 0.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:08] ax.service.ax_client: Completed trial 13 with data: {'a': (-10.960894, 0.0), 'b': (-10.179487, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:09] ax.service.ax_client: Generated new trial 14 with parameters {'x1': 1.0, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:09] ax.service.ax_client: Completed trial 14 with data: {'a': (-145.872208, 0.0), 'b': (-4.005316, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:10] ax.service.ax_client: Generated new trial 15 with parameters {'x1': 0.083267, 'x2': 0.954086}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:10] ax.service.ax_client: Completed trial 15 with data: {'a': (-2.400715, 0.0), 'b': (-4.251922, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:11] ax.service.ax_client: Generated new trial 16 with parameters {'x1': 0.046384, 'x2': 0.990825}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:11] ax.service.ax_client: Completed trial 16 with data: {'a': (-6.334183, 0.0), 'b': (-3.005923, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:12] ax.service.ax_client: Generated new trial 17 with parameters {'x1': 0.101107, 'x2': 0.896879}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:12] ax.service.ax_client: Completed trial 17 with data: {'a': (-1.070089, 0.0), 'b': (-4.892826, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:13] ax.service.ax_client: Generated new trial 18 with parameters {'x1': 0.007324, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:13] ax.service.ax_client: Completed trial 18 with data: {'a': (-15.20262, 0.0), 'b': (-1.479727, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:14] ax.service.ax_client: Generated new trial 19 with parameters {'x1': 0.022841, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:14] ax.service.ax_client: Completed trial 19 with data: {'a': (-10.947443, 0.0), 'b': (-2.103345, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:15] ax.service.ax_client: Generated new trial 20 with parameters {'x1': 0.055549, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:15] ax.service.ax_client: Completed trial 20 with data: {'a': (-5.032709, 0.0), 'b': (-3.296027, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:15] ax.service.ax_client: Generated new trial 21 with parameters {'x1': 0.731099, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:15] ax.service.ax_client: Completed trial 21 with data: {'a': (-212.2547, 0.0), 'b': (-4.18715, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:16] ax.service.ax_client: Generated new trial 22 with parameters {'x1': 0.038773, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:16] ax.service.ax_client: Completed trial 22 with data: {'a': (-7.524571, 0.0), 'b': (-2.711313, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:17] ax.service.ax_client: Generated new trial 23 with parameters {'x1': 0.073087, 'x2': 0.96351}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:17] ax.service.ax_client: Completed trial 23 with data: {'a': (-3.127445, 0.0), 'b': (-3.941511, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:18] ax.service.ax_client: Generated new trial 24 with parameters {'x1': 0.089731, 'x2': 0.919321}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 08-11 12:08:18] ax.service.ax_client: Completed trial 24 with data: {'a': (-1.693456, 0.0), 'b': (-4.539983, 0.0)}.\n"
]
}
],
"source": [
"for i in range(25):\n",
" parameters, trial_index = ax_client.get_next_trial()\n",
" # Local evaluation here can be replaced with deployment to external system.\n",
" ax_client.complete_trial(trial_index=trial_index, raw_data=evaluate(parameters))"
]
},
{
"cell_type": "markdown",
"metadata": {
"code_folding": [],
"customInput": null,
"hidden_ranges": [],
"originalKey": "e0a6feb4-8c38-42e4-9d7c-62b79307e043",
"showInput": false
},
"source": [
"### Plot Pareto Frontier"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"code_folding": [],
"customInput": null,
"execution": {
"iopub.execute_input": "2023-08-11T16:08:18.931618Z",
"iopub.status.busy": "2023-08-11T16:08:18.931368Z",
"iopub.status.idle": "2023-08-11T16:08:35.530717Z",
"shell.execute_reply": "2023-08-11T16:08:35.529997Z"
},
"executionStartTime": 1628191262231,
"executionStopTime": 1628191270720,
"hidden_ranges": [],
"originalKey": "c2c2b222-6b68-4f1a-839f-16b50019ada4",
"requestMsgId": "563d345b-573c-4d93-a480-5db88a283250",
"showInput": true
},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"linkText": "Export to plot.ly",
"plotlyServerURL": "https://plot.ly",
"showLink": false
},
"data": [
{
"error_x": {
"array": [
0.07978367303976615,
0.06509189556743299,
0.055610241396747015,
0.07978367303976615,
0.06003821550065871,
0.05801771218443575,
0.05940509982900886,
0.054244326091660224,
0.07978367299821883,
0.05569519435897198,
0.06683168098792687,
0.055281247584075856,
0.05364103116639671,
0.053575108460539596,
0.05852082683614557,
0.056401654211125335,
0.06701153996669237,
0.05714897584221158,
0.05267343686656898,
0.07848021691883632
],
"color": "rgba(128,177,211,0.4)",
"thickness": 2,
"type": "data"
},
"error_y": {
"array": [
0.004554850464694622,
0.003719995119627712,
0.0031606317857966926,
0.004554850464694622,
0.0034294215947934612,
0.0033119471520351006,
0.0033927317062300228,
0.0030885975853918446,
0.004554850474217118,
0.0031654622587426414,
0.003634407279747953,
0.0031489276564381267,
0.0030222621615233537,
0.003050112453551893,
0.0033413137246632984,
0.0032167587576818007,
0.0036793230149329294,
0.0031673051814150406,
0.0029866877111871014,
0.004178570311676646
],
"color": "rgba(128,177,211,0.4)",
"thickness": 2,
"type": "data"
},
"hoverinfo": "text",
"legendgroup": "mean",
"marker": {
"color": "rgba(128,177,211,1)"
},
"mode": "markers",
"name": "mean",
"text": [
"Parameterization 0
a: -17.504 [-17.584, -17.424]
b: -1.18 [-1.185, -1.176]
Parameterization:
x1: 0.0
x2: 1.0",
"Parameterization 1
a: -16.876 [-16.941, -16.811]
b: -1.26 [-1.264, -1.256]
Parameterization:
x1: 0.0019488612677646883
x2: 1.0",
"Parameterization 2
a: -14.548 [-14.603, -14.492]
b: -1.57 [-1.573, -1.567]
Parameterization:
x1: 0.009532594052545147
x2: 1.0",
"Parameterization 3
a: -17.504 [-17.584, -17.424]
b: -1.18 [-1.185, -1.176]
Parameterization:
x1: 0.0
x2: 1.0",
"Parameterization 4
a: -16.521 [-16.581, -16.461]
b: -1.306 [-1.309, -1.303]
Parameterization:
x1: 0.0030681498403901802
x2: 1.0",
"Parameterization 5
a: -16.311 [-16.369, -16.253]
b: -1.333 [-1.337, -1.330]
Parameterization:
x1: 0.0037346965838822863
x2: 1.0",
"Parameterization 6
a: -16.462 [-16.521, -16.403]
b: -1.314 [-1.317, -1.310]
Parameterization:
x1: 0.0032545757263099245
x2: 1.0",
"Parameterization 7
a: -11.909 [-11.963, -11.854]
b: -1.953 [-1.956, -1.950]
Parameterization:
x1: 0.019041667999290125
x2: 1.0",
"Parameterization 8
a: -17.504 [-17.584, -17.424]
b: -1.18 [-1.185, -1.176]
Parameterization:
x1: 0.0
x2: 0.9999999999999994",
"Parameterization 9
a: -14.461 [-14.517, -14.405]
b: -1.582 [-1.585, -1.579]
Parameterization:
x1: 0.00982832246437648
x2: 1.0",
"Parameterization 10
a: -5.762 [-5.829, -5.695]
b: -3.102 [-3.106, -3.099]
Parameterization:
x1: 0.049783659825790735
x2: 1.0",
"Parameterization 11
a: -15.737 [-15.792, -15.682]
b: -1.409 [-1.412, -1.406]
Parameterization:
x1: 0.005582736320730645
x2: 1.0",
"Parameterization 12
a: -8.482 [-8.535, -8.428]
b: -2.527 [-2.530, -2.524]
Parameterization:
x1: 0.03382485824805912
x2: 1.0",
"Parameterization 13
a: -11.389 [-11.443, -11.335]
b: -2.033 [-2.036, -2.030]
Parameterization:
x1: 0.021067538972082953
x2: 1.0",
"Parameterization 14
a: -16.37 [-16.429, -16.311]
b: -1.326 [-1.329, -1.322]
Parameterization:
x1: 0.0035466870372844123
x2: 1.0",
"Parameterization 15
a: -16.063 [-16.119, -16.007]
b: -1.366 [-1.369, -1.363]
Parameterization:
x1: 0.004528938670060069
x2: 1.0",
"Parameterization 16
a: -5.17 [-5.237, -5.103]
b: -3.258 [-3.262, -3.255]
Parameterization:
x1: 0.05440849964401522
x2: 1.0",
"Parameterization 17
a: -7.522 [-7.579, -7.465]
b: -2.712 [-2.715, -2.709]
Parameterization:
x1: 0.03880405610462266
x2: 1.0",
"Parameterization 18
a: -9.207 [-9.260, -9.155]
b: -2.396 [-2.399, -2.393]
Parameterization:
x1: 0.03036403084995907
x2: 1.0",
"Parameterization 19
a: -1.757 [-1.835, -1.678]
b: -4.507 [-4.511, -4.503]
Parameterization:
x1: 0.08891896391905948
x2: 0.9227415514531399"
],
"type": "scatter",
"x": [
-17.503812799352474,
-16.87599610665045,
-14.547853219551175,
-17.503812799352474,
-16.520712645037637,
-16.311006080373335,
-16.4619186306803,
-11.908542095098511,
-17.503812799358027,
-14.460940852197375,
-5.762039841242345,
-15.737004424184018,
-8.481595264205772,
-11.389072844410741,
-16.370014677106724,
-16.06296820897256,
-5.1702910430337,
-7.521803712768374,
-9.207207700658934,
-1.756694102469126
],
"y": [
-1.1800941030614625,
-1.260142357835238,
-1.5699845822352003,
-1.1800941030614625,
-1.3060499231435836,
-1.3333629116990497,
-1.3136910413027931,
-1.9528604658126665,
-1.1800941030620602,
-1.5820004767744407,
-3.102293380754613,
-1.4089814843823172,
-2.526968112479379,
-2.0333004493144613,
-1.3256608681862518,
-1.365882092047689,
-3.2581805742164347,
-2.712198439227838,
-2.395545238298791,
-4.507189038859753
]
}
],
"layout": {
"height": 500,
"hovermode": "closest",
"legend": {
"orientation": "h"
},
"margin": {
"b": 75,
"l": 225,
"pad": 4,
"t": 75
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Pareto Frontier"
},
"width": 750,
"xaxis": {
"ticksuffix": "",
"title": {
"text": "a"
},
"zeroline": true
},
"yaxis": {
"ticksuffix": "",
"title": {
"text": "b"
},
"zeroline": true
}
}
},
"text/html": [
"