{
"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": "2022-09-15T18:15:18.214436Z",
"iopub.status.busy": "2022-09-15T18:15:18.214069Z",
"iopub.status.idle": "2022-09-15T18:15:21.002015Z",
"shell.execute_reply": "2022-09-15T18:15:21.001017Z"
},
"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 09-15 18:15:20] 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",
"init_notebook_plotting()\n",
"\n",
"# Load our sample 2-objective problem\n",
"from botorch.test_functions.multi_objective import BraninCurrin\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": "2022-09-15T18:15:21.077713Z",
"iopub.status.busy": "2022-09-15T18:15:21.076932Z",
"iopub.status.idle": "2022-09-15T18:15:21.092385Z",
"shell.execute_reply": "2022-09-15T18:15:21.091422Z"
},
"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 09-15 18:15:21] 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 09-15 18:15:21] 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 09-15 18:15:21] 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 09-15 18:15:21] 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 09-15 18:15:21] 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 09-15 18:15:21] ax.modelbridge.dispatch_utils: Using Bayesian optimization since there are more ordered parameters than there are categories for the unordered categorical parameters.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:21] 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": "2022-09-15T18:15:21.096941Z",
"iopub.status.busy": "2022-09-15T18:15:21.096061Z",
"iopub.status.idle": "2022-09-15T18:15:21.102273Z",
"shell.execute_reply": "2022-09-15T18:15:21.101369Z"
},
"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(torch.tensor([parameters.get(\"x1\"), parameters.get(\"x2\")]))\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": "2022-09-15T18:15:21.106414Z",
"iopub.status.busy": "2022-09-15T18:15:21.106105Z",
"iopub.status.idle": "2022-09-15T18:15:57.505741Z",
"shell.execute_reply": "2022-09-15T18:15:57.502637Z"
},
"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 09-15 18:15:21] ax.service.ax_client: Generated new trial 0 with parameters {'x1': 0.218453, 'x2': 0.988708}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:21] ax.service.ax_client: Completed trial 0 with data: {'a': (-41.082893, 0.0), 'b': (-5.476907, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:21] ax.service.ax_client: Generated new trial 1 with parameters {'x1': 0.293812, 'x2': 0.422865}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:21] ax.service.ax_client: Completed trial 1 with data: {'a': (-18.380924, 0.0), 'b': (-9.301629, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:21] ax.service.ax_client: Generated new trial 2 with parameters {'x1': 0.113798, 'x2': 0.446146}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:21] ax.service.ax_client: Completed trial 2 with data: {'a': (-35.906948, 0.0), 'b': (-8.115517, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:21] ax.service.ax_client: Generated new trial 3 with parameters {'x1': 0.546607, 'x2': 0.050682}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:21] ax.service.ax_client: Completed trial 3 with data: {'a': (-2.57568, 0.0), 'b': (-11.424207, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:21] ax.service.ax_client: Generated new trial 4 with parameters {'x1': 0.056196, 'x2': 0.450709}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:21] ax.service.ax_client: Completed trial 4 with data: {'a': (-70.353142, 0.0), 'b': (-5.650499, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:21] ax.service.ax_client: Generated new trial 5 with parameters {'x1': 0.496312, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:21] ax.service.ax_client: Completed trial 5 with data: {'a': (-149.501205, 0.0), 'b': (-4.61914, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:22] ax.service.ax_client: Generated new trial 6 with parameters {'x1': 0.0, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:22] ax.service.ax_client: Completed trial 6 with data: {'a': (-17.508297, 0.0), 'b': (-1.180408, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:23] ax.service.ax_client: Generated new trial 7 with parameters {'x1': 0.033534, 'x2': 0.86499}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:23] ax.service.ax_client: Completed trial 7 with data: {'a': (-15.758657, 0.0), 'b': (-2.807406, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:24] ax.service.ax_client: Generated new trial 8 with parameters {'x1': 0.063436, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:24] ax.service.ax_client: Completed trial 8 with data: {'a': (-4.27605, 0.0), 'b': (-3.546853, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:24] ax.service.ax_client: Generated new trial 9 with parameters {'x1': 1.0, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:24] ax.service.ax_client: Completed trial 9 with data: {'a': (-145.872208, 0.0), 'b': (-4.005316, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:25] ax.service.ax_client: Generated new trial 10 with parameters {'x1': 1.0, 'x2': 0.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:25] ax.service.ax_client: Completed trial 10 with data: {'a': (-10.960894, 0.0), 'b': (-10.179487, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:27] ax.service.ax_client: Generated new trial 11 with parameters {'x1': 0.028861, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:27] ax.service.ax_client: Completed trial 11 with data: {'a': (-9.537551, 0.0), 'b': (-2.338013, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:29] ax.service.ax_client: Generated new trial 12 with parameters {'x1': 0.08138, 'x2': 0.936681}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:29] ax.service.ax_client: Completed trial 12 with data: {'a': (-2.321183, 0.0), 'b': (-4.261325, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:32] ax.service.ax_client: Generated new trial 13 with parameters {'x1': 0.013901, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:32] ax.service.ax_client: Completed trial 13 with data: {'a': (-13.292375, 0.0), 'b': (-1.746555, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:32] ax.service.ax_client: Generated new trial 14 with parameters {'x1': 0.77717, 'x2': 0.614695}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:32] ax.service.ax_client: Completed trial 14 with data: {'a': (-84.391747, 0.0), 'b': (-5.854741, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:36] ax.service.ax_client: Generated new trial 15 with parameters {'x1': 0.044011, 'x2': 0.996155}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:36] ax.service.ax_client: Completed trial 15 with data: {'a': (-6.66305, 0.0), 'b': (-2.909425, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:39] ax.service.ax_client: Generated new trial 16 with parameters {'x1': 0.102466, 'x2': 0.878375}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:39] ax.service.ax_client: Completed trial 16 with data: {'a': (-0.902817, 0.0), 'b': (-4.999219, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:40] ax.service.ax_client: Generated new trial 17 with parameters {'x1': 0.006819, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:40] ax.service.ax_client: Completed trial 17 with data: {'a': (-15.355672, 0.0), 'b': (-1.459134, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:42] ax.service.ax_client: Generated new trial 18 with parameters {'x1': 1.0, 'x2': 0.518149}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:42] ax.service.ax_client: Completed trial 18 with data: {'a': (-24.689133, 0.0), 'b': (-6.301171, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:44] ax.service.ax_client: Generated new trial 19 with parameters {'x1': 0.052762, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:44] ax.service.ax_client: Completed trial 19 with data: {'a': (-5.364499, 0.0), 'b': (-3.203535, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:46] ax.service.ax_client: Generated new trial 20 with parameters {'x1': 0.071578, 'x2': 0.965809}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:46] ax.service.ax_client: Completed trial 20 with data: {'a': (-3.266678, 0.0), 'b': (-3.890508, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:48] ax.service.ax_client: Generated new trial 21 with parameters {'x1': 0.036197, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:48] ax.service.ax_client: Completed trial 21 with data: {'a': (-8.010183, 0.0), 'b': (-2.616034, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:50] ax.service.ax_client: Generated new trial 22 with parameters {'x1': 0.091266, 'x2': 0.909952}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:50] ax.service.ax_client: Completed trial 22 with data: {'a': (-1.553032, 0.0), 'b': (-4.613123, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:53] ax.service.ax_client: Generated new trial 23 with parameters {'x1': 0.114316, 'x2': 0.839663}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:53] ax.service.ax_client: Completed trial 23 with data: {'a': (-0.497588, 0.0), 'b': (-5.412943, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:57] ax.service.ax_client: Generated new trial 24 with parameters {'x1': 0.021136, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 09-15 18:15:57] ax.service.ax_client: Completed trial 24 with data: {'a': (-11.371858, 0.0), 'b': (-2.035969, 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": "2022-09-15T18:15:57.510721Z",
"iopub.status.busy": "2022-09-15T18:15:57.510229Z",
"iopub.status.idle": "2022-09-15T18:16:08.622264Z",
"shell.execute_reply": "2022-09-15T18:16:08.621290Z"
},
"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.031993625812058966,
0.02627764289439352,
0.05213938509812331,
0.02624640464363012,
0.031993625812058966,
0.03681617131819854,
0.02672083560201969,
0.04096471959163306,
0.03199362579580539,
0.03199362582831255,
0.03199362584456612,
0.030867149569844404,
0.03199362582831255,
0.02163792783707258,
0.03199362584456612,
0.037479587249713724,
0.031993625812058966,
0.031993625812058966,
0.025550098098847358,
0.042210476728909783
],
"color": "rgba(128,177,211,0.4)",
"thickness": 2,
"type": "data"
},
"error_y": {
"array": [
0.002073996009403589,
0.0016360336400919754,
0.002999479304690764,
0.0016813622992642857,
0.002073996010456068,
0.0021238383055486444,
0.001698570669737131,
0.0023145068006526592,
0.002073996011508547,
0.002073996010456068,
0.0020739960125610263,
0.0018900853236411353,
0.002073996010456068,
0.001406315667673669,
0.002073996010456068,
0.002158636327292815,
0.002073996010456068,
0.002073996010456068,
0.001581137244351337,
0.0024160750707003615
],
"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
b: -1.18 [-1.182, -1.178]
a: -17.506 [-17.538, -17.474]
Parameterization:
x1: 1.0675856091067774e-16
x2: 1.0",
"Parameterization 1
b: -3.448 [-3.450, -3.446]
a: -4.545 [-4.571, -4.518]
Parameterization:
x1: 0.060014382081816864
x2: 0.9969411290518013",
"Parameterization 2
b: -5.062 [-5.065, -5.059]
a: -0.815 [-0.867, -0.763]
Parameterization:
x1: 0.1048126348111181
x2: 0.8755259612813577",
"Parameterization 3
b: -3.394 [-3.396, -3.393]
a: -4.71 [-4.736, -4.684]
Parameterization:
x1: 0.05858518529111561
x2: 1.0",
"Parameterization 4
b: -1.18 [-1.182, -1.178]
a: -17.506 [-17.538, -17.474]
Parameterization:
x1: 3.415591509587361e-17
x2: 1.0",
"Parameterization 5
b: -4.564 [-4.566, -4.562]
a: -1.649 [-1.686, -1.612]
Parameterization:
x1: 0.09018069450128988
x2: 0.9159917059623885",
"Parameterization 6
b: -3.278 [-3.280, -3.277]
a: -5.095 [-5.122, -5.069]
Parameterization:
x1: 0.055014886689710614
x2: 1.0",
"Parameterization 7
b: -4.791 [-4.794, -4.789]
a: -1.223 [-1.264, -1.182]
Parameterization:
x1: 0.09675338975843248
x2: 0.8979857540151469",
"Parameterization 8
b: -1.18 [-1.182, -1.178]
a: -17.506 [-17.538, -17.474]
Parameterization:
x1: 4.819774439066036e-15
x2: 0.9999999999999857",
"Parameterization 9
b: -1.18 [-1.182, -1.178]
a: -17.506 [-17.538, -17.474]
Parameterization:
x1: 0.0
x2: 1.0",
"Parameterization 10
b: -1.18 [-1.182, -1.178]
a: -17.506 [-17.538, -17.474]
Parameterization:
x1: 1.432460152847726e-15
x2: 0.9999999999999968",
"Parameterization 11
b: -3.941 [-3.943, -3.940]
a: -3.129 [-3.160, -3.098]
Parameterization:
x1: 0.07297942826522129
x2: 0.9625439484011478",
"Parameterization 12
b: -1.18 [-1.182, -1.178]
a: -17.506 [-17.538, -17.474]
Parameterization:
x1: 0.0
x2: 1.0",
"Parameterization 13
b: -2.224 [-2.225, -2.222]
a: -10.211 [-10.232, -10.189]
Parameterization:
x1: 0.025910757629800166
x2: 1.0",
"Parameterization 14
b: -1.18 [-1.182, -1.178]
a: -17.506 [-17.538, -17.474]
Parameterization:
x1: 2.5293249234631524e-15
x2: 0.9999999999999997",
"Parameterization 15
b: -4.615 [-4.617, -4.613]
a: -1.547 [-1.585, -1.510]
Parameterization:
x1: 0.09163992008508064
x2: 0.9120290000606811",
"Parameterization 16
b: -1.18 [-1.182, -1.178]
a: -17.506 [-17.538, -17.474]
Parameterization:
x1: 0.0
x2: 1.0",
"Parameterization 17
b: -1.18 [-1.182, -1.178]
a: -17.506 [-17.538, -17.474]
Parameterization:
x1: 0.0
x2: 1.0",
"Parameterization 18
b: -2.981 [-2.983, -2.980]
a: -6.266 [-6.291, -6.240]
Parameterization:
x1: 0.04629228299489291
x2: 1.0",
"Parameterization 19
b: -4.86 [-4.863, -4.858]
a: -1.108 [-1.150, -1.065]
Parameterization:
x1: 0.09879537651049194
x2: 0.8923994722594155"
],
"type": "scatter",
"x": [
-17.505796248860875,
-4.544523686530752,
-0.8147281151687267,
-4.710150751656858,
-17.50579624886509,
-1.6490707944589147,
-5.095484115527405,
-1.2227410898303361,
-17.50579624886873,
-17.50579624887034,
-17.505796248868506,
-3.1288778475359997,
-17.50579624887034,
-10.210621834785613,
-17.505796248864293,
-1.547478519504292,
-17.50579624887034,
-17.50579624887034,
-6.2657519884253965,
-1.107566469114328
],
"y": [
-1.1803451293088392,
-3.448109437893253,
-5.0617755537842255,
-3.3944275117770726,
-1.1803451293089924,
-4.564250698780235,
-3.2782976813930134,
-4.791229030262501,
-1.1803451293087868,
-1.1803451293088392,
-1.1803451293084049,
-3.941482475462304,
-1.1803451293088392,
-2.2236290752069388,
-1.1803451293089147,
-4.6151034165106575,
-1.1803451293088392,
-1.1803451293088392,
-2.98136771936743,
-4.860314951264129
]
}
],
"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": [
"