diff --git a/docs/examples/basic/xopt_basic.ipynb b/docs/examples/basic/xopt_basic.ipynb
index 406c237a..7d88030e 100644
--- a/docs/examples/basic/xopt_basic.ipynb
+++ b/docs/examples/basic/xopt_basic.ipynb
@@ -77,8 +77,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:17.186087100Z",
- "start_time": "2023-11-13T20:01:14.827413500Z"
+ "end_time": "2024-03-13T01:32:42.498257800Z",
+ "start_time": "2024-03-13T01:32:40.155677200Z"
}
}
},
@@ -114,8 +114,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:17.201108100Z",
- "start_time": "2023-11-13T20:01:17.188088100Z"
+ "end_time": "2024-03-13T01:32:42.513257500Z",
+ "start_time": "2024-03-13T01:32:42.502259Z"
}
}
},
@@ -135,7 +135,7 @@
"outputs": [
{
"data": {
- "text/plain": "['random',\n 'mggpo',\n 'neldermead',\n 'upper_confidence_bound',\n 'mobo',\n 'bayesian_exploration',\n 'time_dependent_upper_confidence_bound',\n 'expected_improvement',\n 'multi_fidelity',\n 'cnsga',\n 'extremum_seeking',\n 'rcds']"
+ "text/plain": "['random',\n 'mggpo',\n 'neldermead',\n 'latin_hypercube',\n 'upper_confidence_bound',\n 'mobo',\n 'bayesian_exploration',\n 'time_dependent_upper_confidence_bound',\n 'expected_improvement',\n 'multi_fidelity',\n 'cnsga',\n 'extremum_seeking',\n 'rcds']"
},
"execution_count": 3,
"metadata": {},
@@ -149,8 +149,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:18.176954300Z",
- "start_time": "2023-11-13T20:01:17.202618200Z"
+ "end_time": "2024-03-13T01:32:43.608257600Z",
+ "start_time": "2024-03-13T01:32:42.515259Z"
}
}
},
@@ -188,8 +188,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:18.193499600Z",
- "start_time": "2023-11-13T20:01:18.178957Z"
+ "end_time": "2024-03-13T01:32:43.652266600Z",
+ "start_time": "2024-03-13T01:32:43.611259600Z"
}
}
},
@@ -213,8 +213,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:18.237178Z",
- "start_time": "2023-11-13T20:01:18.195500200Z"
+ "end_time": "2024-03-13T01:32:43.652266600Z",
+ "start_time": "2024-03-13T01:32:43.626258200Z"
}
}
},
@@ -241,8 +241,8 @@
"shell.execute_reply": "2022-07-02T04:16:41.889046Z"
},
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:18.241091400Z",
- "start_time": "2023-11-13T20:01:18.209499500Z"
+ "end_time": "2024-03-13T01:32:43.660292300Z",
+ "start_time": "2024-03-13T01:32:43.641259200Z"
}
},
"outputs": [],
@@ -278,8 +278,8 @@
"shell.execute_reply": "2022-07-02T04:16:41.898677Z"
},
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:18.242092100Z",
- "start_time": "2023-11-13T20:01:18.237178Z"
+ "end_time": "2024-03-13T01:32:43.669259800Z",
+ "start_time": "2024-03-13T01:32:43.655257700Z"
}
},
"outputs": [],
@@ -310,14 +310,14 @@
"shell.execute_reply": "2022-07-02T04:16:41.905324Z"
},
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:18.254091900Z",
- "start_time": "2023-11-13T20:01:18.240090300Z"
+ "end_time": "2024-03-13T01:32:43.712296Z",
+ "start_time": "2024-03-13T01:32:43.671257800Z"
}
},
"outputs": [
{
"data": {
- "text/plain": "\n Xopt\n________________________________\nVersion: 2.1.0+3.g57450726.dirty\nData size: 0\nConfig as YAML:\ndump_file: null\nevaluator:\n function: __main__.evaluate_function\n function_kwargs: {}\n max_workers: 1\n vectorized: false\ngenerator:\n name: random\n supports_batch_generation: true\n supports_multi_objective: true\nmax_evaluations: null\nserialize_inline: false\nserialize_torch: false\nstrict: true\nvocs:\n constants: {}\n constraints:\n g:\n - LESS_THAN\n - 0.0\n objectives:\n f: MINIMIZE\n observables: []\n variables:\n x1:\n - 0.0\n - 3.141592653589793\n x2:\n - 0.0\n - 3.141592653589793\n"
+ "text/plain": "\n Xopt\n________________________________\nVersion: 2.2.1+12.g2581926c.dirty\nData size: 0\nConfig as YAML:\ndump_file: null\nevaluator:\n function: __main__.evaluate_function\n function_kwargs: {}\n max_workers: 1\n vectorized: false\ngenerator:\n name: random\n supports_batch_generation: true\n supports_multi_objective: true\nmax_evaluations: null\nserialize_inline: false\nserialize_torch: false\nstrict: true\nvocs:\n constants: {}\n constraints:\n g:\n - LESS_THAN\n - 0.0\n objectives:\n f: MINIMIZE\n observables: []\n variables:\n x1:\n - 0.0\n - 3.141592653589793\n x2:\n - 0.0\n - 3.141592653589793\n"
},
"execution_count": 8,
"metadata": {},
@@ -354,15 +354,15 @@
"shell.execute_reply": "2022-07-02T04:16:41.920869Z"
},
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:18.297163800Z",
- "start_time": "2023-11-13T20:01:18.256093200Z"
+ "end_time": "2024-03-13T01:32:43.722288700Z",
+ "start_time": "2024-03-13T01:32:43.687283700Z"
}
},
"outputs": [
{
"data": {
- "text/plain": " x1 x2 f g xopt_runtime xopt_error\n0 0.452652 2.437029 6.144007 -5.144007 0.000004 False\n1 0.745589 1.582435 3.060004 -2.060004 0.000001 False\n2 2.955110 2.917873 17.246655 -16.246655 0.000001 False\n3 1.342087 0.196558 1.839833 -0.839833 0.000010 False\n4 0.553477 1.294747 1.982707 -0.982707 0.000001 False",
- "text/html": "
\n\n
\n \n \n | \n x1 | \n x2 | \n f | \n g | \n xopt_runtime | \n xopt_error | \n
\n \n \n \n 0 | \n 0.452652 | \n 2.437029 | \n 6.144007 | \n -5.144007 | \n 0.000004 | \n False | \n
\n \n 1 | \n 0.745589 | \n 1.582435 | \n 3.060004 | \n -2.060004 | \n 0.000001 | \n False | \n
\n \n 2 | \n 2.955110 | \n 2.917873 | \n 17.246655 | \n -16.246655 | \n 0.000001 | \n False | \n
\n \n 3 | \n 1.342087 | \n 0.196558 | \n 1.839833 | \n -0.839833 | \n 0.000010 | \n False | \n
\n \n 4 | \n 0.553477 | \n 1.294747 | \n 1.982707 | \n -0.982707 | \n 0.000001 | \n False | \n
\n \n
\n
"
+ "text/plain": " x1 x2 f g xopt_runtime xopt_error\n0 2.267176 1.349315 6.960741 -5.960741 0.000004 False\n1 0.045394 1.694579 2.873660 -1.873660 0.000002 False\n2 3.043997 0.532273 9.549231 -8.549231 0.000001 False\n3 0.804098 2.547301 7.135317 -6.135317 0.000001 False\n4 0.378523 0.613382 0.519518 0.480482 0.000001 False",
+ "text/html": "\n\n
\n \n \n | \n x1 | \n x2 | \n f | \n g | \n xopt_runtime | \n xopt_error | \n
\n \n \n \n 0 | \n 2.267176 | \n 1.349315 | \n 6.960741 | \n -5.960741 | \n 0.000004 | \n False | \n
\n \n 1 | \n 0.045394 | \n 1.694579 | \n 2.873660 | \n -1.873660 | \n 0.000002 | \n False | \n
\n \n 2 | \n 3.043997 | \n 0.532273 | \n 9.549231 | \n -8.549231 | \n 0.000001 | \n False | \n
\n \n 3 | \n 0.804098 | \n 2.547301 | \n 7.135317 | \n -6.135317 | \n 0.000001 | \n False | \n
\n \n 4 | \n 0.378523 | \n 0.613382 | \n 0.519518 | \n 0.480482 | \n 0.000001 | \n False | \n
\n \n
\n
"
},
"execution_count": 9,
"metadata": {},
@@ -380,8 +380,8 @@
"outputs": [
{
"data": {
- "text/plain": " x1 x2 f g xopt_runtime xopt_error\n0 1.00 0.00 1.0000 0.0000 0.000003 False\n1 0.50 1.75 3.3125 -2.3125 0.000002 False\n2 2.25 0.60 5.4225 -4.4225 0.000001 False",
- "text/html": "\n\n
\n \n \n | \n x1 | \n x2 | \n f | \n g | \n xopt_runtime | \n xopt_error | \n
\n \n \n \n 0 | \n 1.00 | \n 0.00 | \n 1.0000 | \n 0.0000 | \n 0.000003 | \n False | \n
\n \n 1 | \n 0.50 | \n 1.75 | \n 3.3125 | \n -2.3125 | \n 0.000002 | \n False | \n
\n \n 2 | \n 2.25 | \n 0.60 | \n 5.4225 | \n -4.4225 | \n 0.000001 | \n False | \n
\n \n
\n
"
+ "text/plain": " x1 x2 f g xopt_runtime xopt_error\n0 1.00 0.00 1.0000 0.0000 0.000003 False\n1 0.50 1.75 3.3125 -2.3125 0.000010 False\n2 2.25 0.60 5.4225 -4.4225 0.000001 False",
+ "text/html": "\n\n
\n \n \n | \n x1 | \n x2 | \n f | \n g | \n xopt_runtime | \n xopt_error | \n
\n \n \n \n 0 | \n 1.00 | \n 0.00 | \n 1.0000 | \n 0.0000 | \n 0.000003 | \n False | \n
\n \n 1 | \n 0.50 | \n 1.75 | \n 3.3125 | \n -2.3125 | \n 0.000010 | \n False | \n
\n \n 2 | \n 2.25 | \n 0.60 | \n 5.4225 | \n -4.4225 | \n 0.000001 | \n False | \n
\n \n
\n
"
},
"execution_count": 10,
"metadata": {},
@@ -396,8 +396,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:18.307170200Z",
- "start_time": "2023-11-13T20:01:18.272138800Z"
+ "end_time": "2024-03-13T01:32:43.722288700Z",
+ "start_time": "2024-03-13T01:32:43.712296Z"
}
}
},
@@ -407,8 +407,8 @@
"outputs": [
{
"data": {
- "text/plain": " x1 x2 f g xopt_runtime xopt_error\n0 0.452652 2.437029 6.144007 -5.144007 0.000004 False\n1 0.745589 1.582435 3.060004 -2.060004 0.000001 False\n2 2.955110 2.917873 17.246655 -16.246655 0.000001 False\n3 1.342087 0.196558 1.839833 -0.839833 0.000010 False\n4 0.553477 1.294747 1.982707 -0.982707 0.000001 False\n5 1.000000 0.000000 1.000000 0.000000 0.000003 False\n6 0.500000 1.750000 3.312500 -2.312500 0.000002 False\n7 2.250000 0.600000 5.422500 -4.422500 0.000001 False",
- "text/html": "\n\n
\n \n \n | \n x1 | \n x2 | \n f | \n g | \n xopt_runtime | \n xopt_error | \n
\n \n \n \n 0 | \n 0.452652 | \n 2.437029 | \n 6.144007 | \n -5.144007 | \n 0.000004 | \n False | \n
\n \n 1 | \n 0.745589 | \n 1.582435 | \n 3.060004 | \n -2.060004 | \n 0.000001 | \n False | \n
\n \n 2 | \n 2.955110 | \n 2.917873 | \n 17.246655 | \n -16.246655 | \n 0.000001 | \n False | \n
\n \n 3 | \n 1.342087 | \n 0.196558 | \n 1.839833 | \n -0.839833 | \n 0.000010 | \n False | \n
\n \n 4 | \n 0.553477 | \n 1.294747 | \n 1.982707 | \n -0.982707 | \n 0.000001 | \n False | \n
\n \n 5 | \n 1.000000 | \n 0.000000 | \n 1.000000 | \n 0.000000 | \n 0.000003 | \n False | \n
\n \n 6 | \n 0.500000 | \n 1.750000 | \n 3.312500 | \n -2.312500 | \n 0.000002 | \n False | \n
\n \n 7 | \n 2.250000 | \n 0.600000 | \n 5.422500 | \n -4.422500 | \n 0.000001 | \n False | \n
\n \n
\n
"
+ "text/plain": " x1 x2 f g xopt_runtime xopt_error\n0 2.267176 1.349315 6.960741 -5.960741 0.000004 False\n1 0.045394 1.694579 2.873660 -1.873660 0.000002 False\n2 3.043997 0.532273 9.549231 -8.549231 0.000001 False\n3 0.804098 2.547301 7.135317 -6.135317 0.000001 False\n4 0.378523 0.613382 0.519518 0.480482 0.000001 False\n5 1.000000 0.000000 1.000000 0.000000 0.000003 False\n6 0.500000 1.750000 3.312500 -2.312500 0.000010 False\n7 2.250000 0.600000 5.422500 -4.422500 0.000001 False",
+ "text/html": "\n\n
\n \n \n | \n x1 | \n x2 | \n f | \n g | \n xopt_runtime | \n xopt_error | \n
\n \n \n \n 0 | \n 2.267176 | \n 1.349315 | \n 6.960741 | \n -5.960741 | \n 0.000004 | \n False | \n
\n \n 1 | \n 0.045394 | \n 1.694579 | \n 2.873660 | \n -1.873660 | \n 0.000002 | \n False | \n
\n \n 2 | \n 3.043997 | \n 0.532273 | \n 9.549231 | \n -8.549231 | \n 0.000001 | \n False | \n
\n \n 3 | \n 0.804098 | \n 2.547301 | \n 7.135317 | \n -6.135317 | \n 0.000001 | \n False | \n
\n \n 4 | \n 0.378523 | \n 0.613382 | \n 0.519518 | \n 0.480482 | \n 0.000001 | \n False | \n
\n \n 5 | \n 1.000000 | \n 0.000000 | \n 1.000000 | \n 0.000000 | \n 0.000003 | \n False | \n
\n \n 6 | \n 0.500000 | \n 1.750000 | \n 3.312500 | \n -2.312500 | \n 0.000010 | \n False | \n
\n \n 7 | \n 2.250000 | \n 0.600000 | \n 5.422500 | \n -4.422500 | \n 0.000001 | \n False | \n
\n \n
\n
"
},
"execution_count": 11,
"metadata": {},
@@ -422,8 +422,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:18.350141100Z",
- "start_time": "2023-11-13T20:01:18.286142300Z"
+ "end_time": "2024-03-13T01:32:43.729258500Z",
+ "start_time": "2024-03-13T01:32:43.716261900Z"
}
}
},
@@ -452,8 +452,8 @@
"shell.execute_reply": "2022-07-02T04:16:41.930124Z"
},
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:18.364141700Z",
- "start_time": "2023-11-13T20:01:18.300144800Z"
+ "end_time": "2024-03-13T01:32:43.772322900Z",
+ "start_time": "2024-03-13T01:32:43.730259200Z"
}
},
"outputs": [],
@@ -474,15 +474,15 @@
"shell.execute_reply": "2022-07-02T04:16:41.937164Z"
},
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:18.390141200Z",
- "start_time": "2023-11-13T20:01:18.316140200Z"
+ "end_time": "2024-03-13T01:32:43.862089800Z",
+ "start_time": "2024-03-13T01:32:43.745260300Z"
}
},
"outputs": [
{
"data": {
- "text/plain": " x1 x2 f g xopt_runtime xopt_error\n0 0.452652 2.437029 6.144007 -5.144007 0.000004 False\n1 0.745589 1.582435 3.060004 -2.060004 0.000001 False\n2 2.955110 2.917873 17.246655 -16.246655 0.000001 False\n3 1.342087 0.196558 1.839833 -0.839833 0.000010 False\n4 0.553477 1.294747 1.982707 -0.982707 0.000001 False\n5 1.000000 0.000000 1.000000 0.000000 0.000003 False\n6 0.500000 1.750000 3.312500 -2.312500 0.000002 False\n7 2.250000 0.600000 5.422500 -4.422500 0.000001 False\n8 2.037479 0.747310 4.709795 -3.709795 0.000020 False",
- "text/html": "\n\n
\n \n \n | \n x1 | \n x2 | \n f | \n g | \n xopt_runtime | \n xopt_error | \n
\n \n \n \n 0 | \n 0.452652 | \n 2.437029 | \n 6.144007 | \n -5.144007 | \n 0.000004 | \n False | \n
\n \n 1 | \n 0.745589 | \n 1.582435 | \n 3.060004 | \n -2.060004 | \n 0.000001 | \n False | \n
\n \n 2 | \n 2.955110 | \n 2.917873 | \n 17.246655 | \n -16.246655 | \n 0.000001 | \n False | \n
\n \n 3 | \n 1.342087 | \n 0.196558 | \n 1.839833 | \n -0.839833 | \n 0.000010 | \n False | \n
\n \n 4 | \n 0.553477 | \n 1.294747 | \n 1.982707 | \n -0.982707 | \n 0.000001 | \n False | \n
\n \n 5 | \n 1.000000 | \n 0.000000 | \n 1.000000 | \n 0.000000 | \n 0.000003 | \n False | \n
\n \n 6 | \n 0.500000 | \n 1.750000 | \n 3.312500 | \n -2.312500 | \n 0.000002 | \n False | \n
\n \n 7 | \n 2.250000 | \n 0.600000 | \n 5.422500 | \n -4.422500 | \n 0.000001 | \n False | \n
\n \n 8 | \n 2.037479 | \n 0.747310 | \n 4.709795 | \n -3.709795 | \n 0.000020 | \n False | \n
\n \n
\n
"
+ "text/plain": " x1 x2 f g xopt_runtime xopt_error\n0 2.267176 1.349315 6.960741 -5.960741 0.000004 False\n1 0.045394 1.694579 2.873660 -1.873660 0.000002 False\n2 3.043997 0.532273 9.549231 -8.549231 0.000001 False\n3 0.804098 2.547301 7.135317 -6.135317 0.000001 False\n4 0.378523 0.613382 0.519518 0.480482 0.000001 False\n5 1.000000 0.000000 1.000000 0.000000 0.000003 False\n6 0.500000 1.750000 3.312500 -2.312500 0.000010 False\n7 2.250000 0.600000 5.422500 -4.422500 0.000001 False\n8 2.211109 0.034588 4.890201 -3.890201 0.000016 False",
+ "text/html": "\n\n
\n \n \n | \n x1 | \n x2 | \n f | \n g | \n xopt_runtime | \n xopt_error | \n
\n \n \n \n 0 | \n 2.267176 | \n 1.349315 | \n 6.960741 | \n -5.960741 | \n 0.000004 | \n False | \n
\n \n 1 | \n 0.045394 | \n 1.694579 | \n 2.873660 | \n -1.873660 | \n 0.000002 | \n False | \n
\n \n 2 | \n 3.043997 | \n 0.532273 | \n 9.549231 | \n -8.549231 | \n 0.000001 | \n False | \n
\n \n 3 | \n 0.804098 | \n 2.547301 | \n 7.135317 | \n -6.135317 | \n 0.000001 | \n False | \n
\n \n 4 | \n 0.378523 | \n 0.613382 | \n 0.519518 | \n 0.480482 | \n 0.000001 | \n False | \n
\n \n 5 | \n 1.000000 | \n 0.000000 | \n 1.000000 | \n 0.000000 | \n 0.000003 | \n False | \n
\n \n 6 | \n 0.500000 | \n 1.750000 | \n 3.312500 | \n -2.312500 | \n 0.000010 | \n False | \n
\n \n 7 | \n 2.250000 | \n 0.600000 | \n 5.422500 | \n -4.422500 | \n 0.000001 | \n False | \n
\n \n 8 | \n 2.211109 | \n 0.034588 | \n 4.890201 | \n -3.890201 | \n 0.000016 | \n False | \n
\n \n
\n
"
},
"execution_count": 13,
"metadata": {},
@@ -506,15 +506,15 @@
"shell.execute_reply": "2022-07-02T04:16:41.966065Z"
},
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:18.432141400Z",
- "start_time": "2023-11-13T20:01:18.332138700Z"
+ "end_time": "2024-03-13T01:32:43.897089900Z",
+ "start_time": "2024-03-13T01:32:43.772322900Z"
}
},
"outputs": [
{
"data": {
- "text/plain": " x1 x2 f g xopt_runtime xopt_error\n0 0.452652 2.437029 6.144007 -5.144007 0.000004 False\n1 0.745589 1.582435 3.060004 -2.060004 0.000001 False\n2 2.955110 2.917873 17.246655 -16.246655 0.000001 False\n3 1.342087 0.196558 1.839833 -0.839833 0.000010 False\n4 0.553477 1.294747 1.982707 -0.982707 0.000001 False\n5 1.000000 0.000000 1.000000 0.000000 0.000003 False\n6 0.500000 1.750000 3.312500 -2.312500 0.000002 False\n7 2.250000 0.600000 5.422500 -4.422500 0.000001 False\n8 2.037479 0.747310 4.709795 -3.709795 0.000020 False\n9 2.139956 1.762576 7.686089 -6.686089 0.000015 False\n10 2.666437 0.107368 7.121414 -6.121414 0.000013 False\n11 2.471817 0.699313 6.598916 -5.598916 0.000012 False\n12 2.163665 2.891508 13.042261 -12.042261 0.000012 False\n13 2.583720 0.981197 7.638356 -6.638356 0.000012 False\n14 2.347667 2.643958 12.502051 -11.502051 0.000014 False\n15 2.192651 2.252920 9.883366 -8.883366 0.000013 False\n16 1.273815 0.856981 2.357021 -1.357021 0.000013 False\n17 1.802016 0.813710 3.909387 -2.909387 0.000013 False\n18 3.100603 1.819718 12.925111 -11.925111 0.000014 False",
- "text/html": "\n\n
\n \n \n | \n x1 | \n x2 | \n f | \n g | \n xopt_runtime | \n xopt_error | \n
\n \n \n \n 0 | \n 0.452652 | \n 2.437029 | \n 6.144007 | \n -5.144007 | \n 0.000004 | \n False | \n
\n \n 1 | \n 0.745589 | \n 1.582435 | \n 3.060004 | \n -2.060004 | \n 0.000001 | \n False | \n
\n \n 2 | \n 2.955110 | \n 2.917873 | \n 17.246655 | \n -16.246655 | \n 0.000001 | \n False | \n
\n \n 3 | \n 1.342087 | \n 0.196558 | \n 1.839833 | \n -0.839833 | \n 0.000010 | \n False | \n
\n \n 4 | \n 0.553477 | \n 1.294747 | \n 1.982707 | \n -0.982707 | \n 0.000001 | \n False | \n
\n \n 5 | \n 1.000000 | \n 0.000000 | \n 1.000000 | \n 0.000000 | \n 0.000003 | \n False | \n
\n \n 6 | \n 0.500000 | \n 1.750000 | \n 3.312500 | \n -2.312500 | \n 0.000002 | \n False | \n
\n \n 7 | \n 2.250000 | \n 0.600000 | \n 5.422500 | \n -4.422500 | \n 0.000001 | \n False | \n
\n \n 8 | \n 2.037479 | \n 0.747310 | \n 4.709795 | \n -3.709795 | \n 0.000020 | \n False | \n
\n \n 9 | \n 2.139956 | \n 1.762576 | \n 7.686089 | \n -6.686089 | \n 0.000015 | \n False | \n
\n \n 10 | \n 2.666437 | \n 0.107368 | \n 7.121414 | \n -6.121414 | \n 0.000013 | \n False | \n
\n \n 11 | \n 2.471817 | \n 0.699313 | \n 6.598916 | \n -5.598916 | \n 0.000012 | \n False | \n
\n \n 12 | \n 2.163665 | \n 2.891508 | \n 13.042261 | \n -12.042261 | \n 0.000012 | \n False | \n
\n \n 13 | \n 2.583720 | \n 0.981197 | \n 7.638356 | \n -6.638356 | \n 0.000012 | \n False | \n
\n \n 14 | \n 2.347667 | \n 2.643958 | \n 12.502051 | \n -11.502051 | \n 0.000014 | \n False | \n
\n \n 15 | \n 2.192651 | \n 2.252920 | \n 9.883366 | \n -8.883366 | \n 0.000013 | \n False | \n
\n \n 16 | \n 1.273815 | \n 0.856981 | \n 2.357021 | \n -1.357021 | \n 0.000013 | \n False | \n
\n \n 17 | \n 1.802016 | \n 0.813710 | \n 3.909387 | \n -2.909387 | \n 0.000013 | \n False | \n
\n \n 18 | \n 3.100603 | \n 1.819718 | \n 12.925111 | \n -11.925111 | \n 0.000014 | \n False | \n
\n \n
\n
"
+ "text/plain": " x1 x2 f g xopt_runtime xopt_error\n0 2.267176 1.349315 6.960741 -5.960741 0.000004 False\n1 0.045394 1.694579 2.873660 -1.873660 0.000002 False\n2 3.043997 0.532273 9.549231 -8.549231 0.000001 False\n3 0.804098 2.547301 7.135317 -6.135317 0.000001 False\n4 0.378523 0.613382 0.519518 0.480482 0.000001 False\n5 1.000000 0.000000 1.000000 0.000000 0.000003 False\n6 0.500000 1.750000 3.312500 -2.312500 0.000010 False\n7 2.250000 0.600000 5.422500 -4.422500 0.000001 False\n8 2.211109 0.034588 4.890201 -3.890201 0.000016 False\n9 1.686635 1.270264 4.458308 -3.458308 0.000014 False\n10 0.222783 1.733860 3.055903 -2.055903 0.000012 False\n11 2.282472 2.210513 10.096046 -9.096046 0.000012 False\n12 2.086007 2.011638 8.398116 -7.398116 0.000013 False\n13 0.375108 2.066133 4.409610 -3.409610 0.000012 False\n14 1.325943 2.218394 6.679394 -5.679394 0.000014 False\n15 0.672004 1.730114 3.444884 -2.444884 0.000014 False\n16 0.581386 1.359689 2.186764 -1.186764 0.000013 False\n17 2.313540 0.248613 5.414274 -4.414274 0.000013 False\n18 0.018150 1.542190 2.378678 -1.378678 0.000014 False",
+ "text/html": "\n\n
\n \n \n | \n x1 | \n x2 | \n f | \n g | \n xopt_runtime | \n xopt_error | \n
\n \n \n \n 0 | \n 2.267176 | \n 1.349315 | \n 6.960741 | \n -5.960741 | \n 0.000004 | \n False | \n
\n \n 1 | \n 0.045394 | \n 1.694579 | \n 2.873660 | \n -1.873660 | \n 0.000002 | \n False | \n
\n \n 2 | \n 3.043997 | \n 0.532273 | \n 9.549231 | \n -8.549231 | \n 0.000001 | \n False | \n
\n \n 3 | \n 0.804098 | \n 2.547301 | \n 7.135317 | \n -6.135317 | \n 0.000001 | \n False | \n
\n \n 4 | \n 0.378523 | \n 0.613382 | \n 0.519518 | \n 0.480482 | \n 0.000001 | \n False | \n
\n \n 5 | \n 1.000000 | \n 0.000000 | \n 1.000000 | \n 0.000000 | \n 0.000003 | \n False | \n
\n \n 6 | \n 0.500000 | \n 1.750000 | \n 3.312500 | \n -2.312500 | \n 0.000010 | \n False | \n
\n \n 7 | \n 2.250000 | \n 0.600000 | \n 5.422500 | \n -4.422500 | \n 0.000001 | \n False | \n
\n \n 8 | \n 2.211109 | \n 0.034588 | \n 4.890201 | \n -3.890201 | \n 0.000016 | \n False | \n
\n \n 9 | \n 1.686635 | \n 1.270264 | \n 4.458308 | \n -3.458308 | \n 0.000014 | \n False | \n
\n \n 10 | \n 0.222783 | \n 1.733860 | \n 3.055903 | \n -2.055903 | \n 0.000012 | \n False | \n
\n \n 11 | \n 2.282472 | \n 2.210513 | \n 10.096046 | \n -9.096046 | \n 0.000012 | \n False | \n
\n \n 12 | \n 2.086007 | \n 2.011638 | \n 8.398116 | \n -7.398116 | \n 0.000013 | \n False | \n
\n \n 13 | \n 0.375108 | \n 2.066133 | \n 4.409610 | \n -3.409610 | \n 0.000012 | \n False | \n
\n \n 14 | \n 1.325943 | \n 2.218394 | \n 6.679394 | \n -5.679394 | \n 0.000014 | \n False | \n
\n \n 15 | \n 0.672004 | \n 1.730114 | \n 3.444884 | \n -2.444884 | \n 0.000014 | \n False | \n
\n \n 16 | \n 0.581386 | \n 1.359689 | \n 2.186764 | \n -1.186764 | \n 0.000013 | \n False | \n
\n \n 17 | \n 2.313540 | \n 0.248613 | \n 5.414274 | \n -4.414274 | \n 0.000013 | \n False | \n
\n \n 18 | \n 0.018150 | \n 1.542190 | \n 2.378678 | \n -1.378678 | \n 0.000014 | \n False | \n
\n \n
\n
"
},
"execution_count": 14,
"metadata": {},
@@ -528,6 +528,52 @@
"X.data"
]
},
+ {
+ "cell_type": "markdown",
+ "source": [
+ "## Find and evaluate the best point from `X.data`"
+ ],
+ "metadata": {
+ "collapsed": false
+ }
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 15,
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "best objective value [1.]\n",
+ "best point {'x1': 1.0, 'x2': 0.0}\n"
+ ]
+ },
+ {
+ "data": {
+ "text/plain": " x1 x2 f g xopt_runtime xopt_error\n0 1.0 0.0 1.0 0.0 0.000003 False",
+ "text/html": "\n\n
\n \n \n | \n x1 | \n x2 | \n f | \n g | \n xopt_runtime | \n xopt_error | \n
\n \n \n \n 0 | \n 1.0 | \n 0.0 | \n 1.0 | \n 0.0 | \n 0.000003 | \n False | \n
\n \n
\n
"
+ },
+ "execution_count": 15,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "idx, val, params = X.vocs.select_best(X.data)\n",
+ "print(f\"best objective value {val}\")\n",
+ "print(f\"best point {params}\")\n",
+ "\n",
+ "X.evaluate_data(params)"
+ ],
+ "metadata": {
+ "collapsed": false,
+ "ExecuteTime": {
+ "end_time": "2024-03-13T01:32:43.937089900Z",
+ "start_time": "2024-03-13T01:32:43.832332500Z"
+ }
+ }
+ },
{
"cell_type": "markdown",
"metadata": {
@@ -541,7 +587,7 @@
},
{
"cell_type": "code",
- "execution_count": 15,
+ "execution_count": 16,
"metadata": {
"collapsed": false,
"execution": {
@@ -551,8 +597,8 @@
"shell.execute_reply": "2022-07-02T04:16:42.285372Z"
},
"ExecuteTime": {
- "end_time": "2023-11-13T20:01:19.144190400Z",
- "start_time": "2023-11-13T20:01:18.377142200Z"
+ "end_time": "2024-03-13T01:32:44.620735900Z",
+ "start_time": "2024-03-13T01:32:43.851332300Z"
}
},
"outputs": [
@@ -560,14 +606,14 @@
"data": {
"text/plain": ""
},
- "execution_count": 15,
+ "execution_count": 16,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"text/plain": "