{
"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,
"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 03-10 17:10:04] 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,
"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 03-10 17:10:04] 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 03-10 17:10:04] 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 03-10 17:10:04] 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 03-10 17:10:04] 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 03-10 17:10:04] 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 03-10 17:10:04] 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 03-10 17:10:04] 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,
"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,
"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 03-10 17:10:04] ax.service.ax_client: Generated new trial 0 with parameters {'x1': 0.983525, 'x2': 0.880826}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:04] ax.service.ax_client: Completed trial 0 with data: {'a': (-110.04435, 0.0), 'b': (-4.415009, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:04] ax.service.ax_client: Generated new trial 1 with parameters {'x1': 0.284874, 'x2': 0.996169}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:04] ax.service.ax_client: Completed trial 1 with data: {'a': (-76.733429, 0.0), 'b': (-5.32105, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:04] ax.service.ax_client: Generated new trial 2 with parameters {'x1': 0.157631, 'x2': 0.170887}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:04] ax.service.ax_client: Completed trial 2 with data: {'a': (-74.338181, 0.0), 'b': (-12.619493, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:04] ax.service.ax_client: Generated new trial 3 with parameters {'x1': 0.919571, 'x2': 0.823327}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:04] ax.service.ax_client: Completed trial 3 with data: {'a': (-109.492561, 0.0), 'b': (-4.670225, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:04] ax.service.ax_client: Generated new trial 4 with parameters {'x1': 0.157077, 'x2': 0.747911}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:04] ax.service.ax_client: Completed trial 4 with data: {'a': (-1.574656, 0.0), 'b': (-6.496104, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:05] ax.service.ax_client: Generated new trial 5 with parameters {'x1': 0.0, 'x2': 0.873354}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:05] ax.service.ax_client: Completed trial 5 with data: {'a': (-29.427704, 0.0), 'b': (-1.307669, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:06] ax.service.ax_client: Generated new trial 6 with parameters {'x1': 0.0, 'x2': 0.733562}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:06] ax.service.ax_client: Completed trial 6 with data: {'a': (-50.964787, 0.0), 'b': (-1.482588, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:07] ax.service.ax_client: Generated new trial 7 with parameters {'x1': 0.088876, 'x2': 0.850553}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:07] ax.service.ax_client: Completed trial 7 with data: {'a': (-2.35604, 0.0), 'b': (-4.78763, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:08] ax.service.ax_client: Generated new trial 8 with parameters {'x1': 0.036278, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:08] ax.service.ax_client: Completed trial 8 with data: {'a': (-7.994541, 0.0), 'b': (-2.619044, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:09] ax.service.ax_client: Generated new trial 9 with parameters {'x1': 0.074384, 'x2': 0.997789}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:09] ax.service.ax_client: Completed trial 9 with data: {'a': (-3.624914, 0.0), 'b': (-3.873491, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:10] ax.service.ax_client: Generated new trial 10 with parameters {'x1': 0.015587, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:10] ax.service.ax_client: Completed trial 10 with data: {'a': (-12.827548, 0.0), 'b': (-1.814473, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:12] ax.service.ax_client: Generated new trial 11 with parameters {'x1': 0.101829, 'x2': 0.898378}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:12] ax.service.ax_client: Completed trial 11 with data: {'a': (-1.071999, 0.0), 'b': (-4.902384, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:12] ax.service.ax_client: Generated new trial 12 with parameters {'x1': 1.0, 'x2': 0.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:12] ax.service.ax_client: Completed trial 12 with data: {'a': (-10.960894, 0.0), 'b': (-10.179487, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:15] ax.service.ax_client: Generated new trial 13 with parameters {'x1': 0.052235, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:15] ax.service.ax_client: Completed trial 13 with data: {'a': (-5.431064, 0.0), 'b': (-3.185803, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:16] ax.service.ax_client: Generated new trial 14 with parameters {'x1': 0.665972, 'x2': 0.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:16] ax.service.ax_client: Completed trial 14 with data: {'a': (-14.253331, 0.0), 'b': (-10.860155, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:17] ax.service.ax_client: Generated new trial 15 with parameters {'x1': 0.081152, 'x2': 0.937224}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:17] ax.service.ax_client: Completed trial 15 with data: {'a': (-2.340555, 0.0), 'b': (-4.253287, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:18] ax.service.ax_client: Generated new trial 16 with parameters {'x1': 0.552481, 'x2': 0.549226}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:18] ax.service.ax_client: Completed trial 16 with data: {'a': (-37.395657, 0.0), 'b': (-6.807696, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:19] ax.service.ax_client: Generated new trial 17 with parameters {'x1': 0.02545, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:19] ax.service.ax_client: Completed trial 17 with data: {'a': (-10.319497, 0.0), 'b': (-2.205671, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:21] ax.service.ax_client: Generated new trial 18 with parameters {'x1': 0.113179, 'x2': 0.848205}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:21] ax.service.ax_client: Completed trial 18 with data: {'a': (-0.52506, 0.0), 'b': (-5.35144, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:22] ax.service.ax_client: Generated new trial 19 with parameters {'x1': 0.061773, 'x2': 0.99445}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:22] ax.service.ax_client: Completed trial 19 with data: {'a': (-4.357736, 0.0), 'b': (-3.510352, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:24] ax.service.ax_client: Generated new trial 20 with parameters {'x1': 0.020415, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:24] ax.service.ax_client: Completed trial 20 with data: {'a': (-11.554379, 0.0), 'b': (-2.007406, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:26] ax.service.ax_client: Generated new trial 21 with parameters {'x1': 0.006701, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:26] ax.service.ax_client: Completed trial 21 with data: {'a': (-15.391748, 0.0), 'b': (-1.454296, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:29] ax.service.ax_client: Generated new trial 22 with parameters {'x1': 0.089898, 'x2': 0.914038}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:29] ax.service.ax_client: Completed trial 22 with data: {'a': (-1.650684, 0.0), 'b': (-4.563845, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:30] ax.service.ax_client: Generated new trial 23 with parameters {'x1': 0.043787, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:30] ax.service.ax_client: Completed trial 23 with data: {'a': (-6.656959, 0.0), 'b': (-2.892798, 0.0)}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:33] ax.service.ax_client: Generated new trial 24 with parameters {'x1': 0.00252, 'x2': 1.0}.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"[INFO 03-10 17:10:33] ax.service.ax_client: Completed trial 24 with data: {'a': (-16.694204, 0.0), 'b': (-1.283513, 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,
"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.03760334061559108,
0.032341147442670685,
0.037603340589101586,
0.03723684336331439,
0.03760334063325073,
0.05683751536596149,
0.03760334063325073,
0.019293378626778653,
0.02411399278552608,
0.03760334065091038,
0.01662910944613607,
0.024673048226595672,
0.025589869662089645,
0.019267430173303218,
0.03760334061559108,
0.05572788394776561,
0.0376033406244209,
0.05627746077064492,
0.04650861239945598,
0.022801954997779764
],
"color": "rgba(128,177,211,0.4)",
"thickness": 2,
"type": "data"
},
"error_y": {
"array": [
0.003093647400804867,
0.0022115221990378236,
0.0030936473981771208,
0.0023576719272770594,
0.0030936473981771208,
0.0030005059731108958,
0.00309364739642529,
0.0016084212195985298,
0.0018387875602245169,
0.0030936473955493747,
0.0014543358653641043,
0.0019683151305503305,
0.0020061978480708413,
0.0015882982202203818,
0.0030936473981771208,
0.0029357444519660042,
0.0030936473999289517,
0.0029548305295951463,
0.002978164761262436,
0.0017814797952728804
],
"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.501 [-17.539, -17.463]
b: -1.18 [-1.183, -1.176]
Parameterization:
x1: 3.856046320780702e-17
x2: 0.9999999999999999",
"Parameterization 1
a: -1.314 [-1.346, -1.282]
b: -4.729 [-4.731, -4.726]
Parameterization:
x1: 0.09471537015017564
x2: 0.9017173555656669",
"Parameterization 2
a: -17.501 [-17.539, -17.463]
b: -1.18 [-1.183, -1.176]
Parameterization:
x1: 7.299360514809017e-17
x2: 0.9999999999999999",
"Parameterization 3
a: -1.221 [-1.258, -1.184]
b: -4.778 [-4.781, -4.776]
Parameterization:
x1: 0.09613120144706586
x2: 0.8976025068144596",
"Parameterization 4
a: -17.501 [-17.539, -17.463]
b: -1.18 [-1.183, -1.176]
Parameterization:
x1: 5.3072343398464015e-17
x2: 1.0",
"Parameterization 5
a: -0.876 [-0.933, -0.819]
b: -4.99 [-4.993, -4.987]
Parameterization:
x1: 0.10237457242690604
x2: 0.8804314008273622",
"Parameterization 6
a: -17.501 [-17.539, -17.463]
b: -1.18 [-1.183, -1.176]
Parameterization:
x1: 3.125131486735611e-16
x2: 0.9999999999999997",
"Parameterization 7
a: -8.264 [-8.283, -8.244]
b: -2.568 [-2.569, -2.566]
Parameterization:
x1: 0.034902713811480954
x2: 1.0",
"Parameterization 8
a: -5.017 [-5.041, -4.993]
b: -3.301 [-3.302, -3.299]
Parameterization:
x1: 0.0556894664830765
x2: 1.0",
"Parameterization 9
a: -17.501 [-17.539, -17.463]
b: -1.18 [-1.183, -1.176]
Parameterization:
x1: 2.8837024029431483e-16
x2: 0.9999999999999999",
"Parameterization 10
a: -12.005 [-12.022, -11.989]
b: -1.938 [-1.940, -1.937]
Parameterization:
x1: 0.018669713770116517
x2: 1.0",
"Parameterization 11
a: -1.561 [-1.586, -1.536]
b: -4.604 [-4.606, -4.602]
Parameterization:
x1: 0.09121931464259231
x2: 0.9119834250797375",
"Parameterization 12
a: -1.496 [-1.521, -1.470]
b: -4.636 [-4.638, -4.634]
Parameterization:
x1: 0.09213946215117888
x2: 0.9094850184374853",
"Parameterization 13
a: -9.038 [-9.058, -9.019]
b: -2.425 [-2.427, -2.424]
Parameterization:
x1: 0.031145887007920505
x2: 1.0",
"Parameterization 14
a: -17.501 [-17.539, -17.463]
b: -1.18 [-1.183, -1.176]
Parameterization:
x1: 4.3442529297228087e-16
x2: 0.9999999999999997",
"Parameterization 15
a: -0.67 [-0.726, -0.615]
b: -5.16 [-5.163, -5.157]
Parameterization:
x1: 0.1075868757913903
x2: 0.8663522410283216",
"Parameterization 16
a: -17.501 [-17.539, -17.463]
b: -1.18 [-1.183, -1.176]
Parameterization:
x1: 3.598638226444057e-15
x2: 0.9999999999999952",
"Parameterization 17
a: -0.677 [-0.733, -0.620]
b: -5.154 [-5.157, -5.151]
Parameterization:
x1: 0.10739884859364608
x2: 0.8668974822843198",
"Parameterization 18
a: -4.036 [-4.083, -3.990]
b: -3.618 [-3.621, -3.615]
Parameterization:
x1: 0.06449170880277177
x2: 0.9862087252369487",
"Parameterization 19
a: -5.161 [-5.184, -5.139]
b: -3.259 [-3.261, -3.257]
Parameterization:
x1: 0.05443491713716612
x2: 1.0"
],
"type": "scatter",
"x": [
-17.501019553885794,
-1.314109835537419,
-17.501019553880862,
-1.2212096233233964,
-17.501019553880123,
-0.8763119857202746,
-17.50101955387878,
-8.26362127752111,
-5.0166263314992285,
-17.501019553877835,
-12.005314503532517,
-1.5610254278969364,
-1.4956084864655388,
-9.038292218451272,
-17.50101955388708,
-0.6702342719376411,
-17.501019553880656,
-0.6765452803813652,
-4.036413188650126,
-5.161351841052106
],
"y": [
-1.1795693618618768,
-4.728690969754292,
-1.1795693618625598,
-4.778396885511243,
-1.1795693618619234,
-4.989945115819639,
-1.1795693618628538,
-2.5675652577439045,
-3.3005930642502133,
-1.1795693618628538,
-1.9380582607841896,
-4.604408098623403,
-4.636474015740585,
-2.425474473637324,
-1.1795693618623417,
-5.160344352719329,
-1.179569361862343,
-5.154119575224339,
-3.617943622996582,
-3.2592460764183944
]
}
],
"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": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"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": [
"