You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><p><strong>*args</strong> (<em>Any</em>) – Standard args to <cite>BoTorchError</cite>.</p></li>
79
-
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
79
+
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
80
80
<li><p><strong>runtime</strong> (<em>float</em>) – The total runtime in seconds after which the optimization
81
81
timed out.</p></li>
82
82
<li><p><strong>**kwargs</strong> (<em>Any</em>) – Standard kwargs to <cite>BoTorchError</cite>.</p></li>
<li><p><strong>*args</strong> (<em>Any</em>) – Standard args to <cite>BoTorchError</cite>.</p></li>
99
-
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
99
+
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
100
100
<li><p><strong>**kwargs</strong> (<em>Any</em>) – Standard kwargs to <cite>BoTorchError</cite>.</p></li>
<li><p><strong>*args</strong> (<em>Any</em>) – Standard args to <cite>BoTorchError</cite>.</p></li>
79
-
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
79
+
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
80
80
<li><p><strong>runtime</strong> (<em>float</em>) – The total runtime in seconds after which the optimization
81
81
timed out.</p></li>
82
82
<li><p><strong>**kwargs</strong> (<em>Any</em>) – Standard kwargs to <cite>BoTorchError</cite>.</p></li>
<li><p><strong>*args</strong> (<em>Any</em>) – Standard args to <cite>BoTorchError</cite>.</p></li>
99
-
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
99
+
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
100
100
<li><p><strong>**kwargs</strong> (<em>Any</em>) – Standard kwargs to <cite>BoTorchError</cite>.</p></li>
Copy file name to clipboardexpand all lines: v/latest/api/optim.html
+15-15
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ <h2>Optimization<a class="headerlink" href="#optimization" title="Link to this h
97
97
<li><p><strong>parameters</strong> (<em>dict</em><em>[</em><em>str</em><em>, </em><em>Tensor</em><em>]</em>) – A dictionary of tensors to be optimized.</p></li>
98
98
<li><p><strong>bounds</strong> (<em>dict</em><em>[</em><em>str</em><em>, </em><em>tuple</em><em>[</em><em>float</em><em> | </em><em>None</em><em>, </em><em>float</em><em> | </em><em>None</em><em>]</em><em>] </em><em>| </em><em>None</em>) – A dictionary mapping parameter names to lower and upper bounds.</p></li>
99
99
<li><p><strong>callback</strong> (<em>Callable</em><em>[</em><em>[</em><em>dict</em><em>[</em><em>str</em><em>, </em><em>Tensor</em><em>]</em><em>, </em><aclass="reference internal" href="#botorch.optim.core.OptimizationResult" title="botorch.optim.core.OptimizationResult"><em>OptimizationResult</em></a><em>]</em><em>, </em><em>None</em><em>] </em><em>| </em><em>None</em>) – A callable taking <cite>parameters</cite> and an OptimizationResult as arguments.</p></li>
100
-
<li><p><strong>x0</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>] </em><em>| </em><em>None</em>) – An optional initialization vector passed to scipy.optimize.minimize.</p></li>
100
+
<li><p><strong>x0</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>] </em><em>| </em><em>None</em>) – An optional initialization vector passed to scipy.optimize.minimize.</p></li>
101
101
<li><p><strong>method</strong> (<em>str</em>) – Solver type, passed along to scipy.minimize.</p></li>
102
102
<li><p><strong>options</strong> (<em>dict</em><em>[</em><em>str</em><em>, </em><em>Any</em><em>] </em><em>| </em><em>None</em>) – Dictionary of solver options, passed along to scipy.minimize.</p></li>
103
103
<li><p><strong>timeout_sec</strong> (<em>float</em><em> | </em><em>None</em>) – Timeout in seconds to wait before aborting the optimization loop
@@ -1968,7 +1968,7 @@ <h3>Core<a class="headerlink" href="#id2" title="Link to this heading">¶</a></h
<emclass="property"><spanclass="pre">property</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">state</span></span><emclass="property"><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="pre">ndarray</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Any</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">dtype</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">_ScalarType_co</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span></em><aclass="headerlink" href="#botorch.optim.closures.core.NdarrayOptimizationClosure.state" title="Link to this definition">¶</a></dt>
1971
+
<emclass="property"><spanclass="pre">property</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">state</span></span><emclass="property"><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="pre">ndarray</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">tuple</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="p"><spanclass="pre">...</span></span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">dtype</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">_ScalarType_co</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span></em><aclass="headerlink" href="#botorch.optim.closures.core.NdarrayOptimizationClosure.state" title="Link to this definition">¶</a></dt>
1972
1972
<dd></dd></dl>
1973
1973
</dd></dl>
1974
1974
</section>
@@ -2271,7 +2271,7 @@ <h2>Utilities<a class="headerlink" href="#utilities" title="Link to this heading
2271
2271
<ddclass="field-even"><p>An ndarray with the same data as <cite>values</cite>.</p>
<li><p><strong>x</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The input array.</p></li>
2459
+
<li><p><strong>x</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The input array.</p></li>
2460
2460
<li><p><strong>flat_idxr</strong> (<em>list</em><em>[</em><em>int</em><em>]</em>) – The indices in <cite>x</cite> to consider.</p></li>
2461
-
<li><p><strong>coeffs</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The coefficients corresponding to the indices.</p></li>
2461
+
<li><p><strong>coeffs</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The coefficients corresponding to the indices.</p></li>
2462
2462
<li><p><strong>rhs</strong> (<em>float</em>) – The right-hand-side of the constraint.</p></li>
2463
2463
</ul>
2464
2464
</dd>
@@ -2477,17 +2477,17 @@ <h2>Utilities<a class="headerlink" href="#utilities" title="Link to this heading
<li><p><strong>x</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The input array.</p></li>
2480
+
<li><p><strong>x</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The input array.</p></li>
2481
2481
<li><p><strong>flat_idxr</strong> (<em>list</em><em>[</em><em>int</em><em>]</em>) – The indices for the elements of x that appear in the constraint.</p></li>
2482
-
<li><p><strong>coeffs</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The coefficients corresponding to the indices.</p></li>
2482
+
<li><p><strong>coeffs</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The coefficients corresponding to the indices.</p></li>
2483
2483
<li><p><strong>n</strong> (<em>int</em>) – number of elements</p></li>
0 commit comments