Skip to content

Commit

Permalink
GitHub Actions build openturns/otrobopt 10813916112
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Sep 11, 2024
1 parent 4732e7f commit c846881
Show file tree
Hide file tree
Showing 80 changed files with 585 additions and 531 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import openturns as ot\nimport otrobopt\n\n# ot.Log.Show(ot.Log.Info)\ncalJ = ot.SymbolicFunction(\n ['x0', 'x1', 'theta'], ['(x0-2)^2 + 2*x1^2 - 4*x1 + theta'])\ncalG = ot.SymbolicFunction(\n ['x0', 'x1', 'theta'], ['-(-x0 + 4*x1 + theta - 3)'])\nJ = ot.ParametricFunction(calJ, [2], [2.0])\ng = ot.ParametricFunction(calG, [2], [2.0])\n\ndim = J.getInputDimension()\n\nsolver = ot.Cobyla()\nsolver.setIgnoreFailure(True)\nsolver.setMaximumIterationNumber(1000)\n\nthetaDist = ot.Uniform(1.0, 3.0)\nrobustnessMeasure = otrobopt.MeanMeasure(J, thetaDist)\nreliabilityMeasure = otrobopt.JointChanceMeasure(\n g, thetaDist, ot.Greater(), 0.9)\nproblem = otrobopt.RobustOptimizationProblem(\n robustnessMeasure, reliabilityMeasure)\nbounds = ot.Interval([-10.0] * dim, [10.0] * dim)\nproblem.setBounds(bounds)\n\nalgo = otrobopt.SequentialMonteCarloRobustAlgorithm(problem, solver)\nalgo.setMaximumIterationNumber(10)\nalgo.setMaximumAbsoluteError(1e-3)\nalgo.setInitialSamplingSize(10)\nalgo.setInitialSearch(100)\nalgo.run()\nresult = algo.getResult()\nprint('x*=', result.getOptimalPoint(),\n 'J(x*)=', result.getOptimalValue(),\n 'iteration=', result.getIterationNumber())"
"import openturns as ot\nimport otrobopt\n\n# ot.Log.Show(ot.Log.Info)\ncalJ = ot.SymbolicFunction(\n ['x0', 'x1', 'theta'], ['(x0-2)^2 + 2*x1^2 - 4*x1 + theta'])\ncalG = ot.SymbolicFunction(\n ['x0', 'x1', 'theta'], ['-(-x0 + 4*x1 + theta - 3)'])\nJ = ot.ParametricFunction(calJ, [2], [2.0])\ng = ot.ParametricFunction(calG, [2], [2.0])\n\ndim = J.getInputDimension()\n\nsolver = ot.Cobyla()\nsolver.setCheckStatus(False)\nsolver.setMaximumIterationNumber(1000)\n\nthetaDist = ot.Uniform(1.0, 3.0)\nrobustnessMeasure = otrobopt.MeanMeasure(J, thetaDist)\nreliabilityMeasure = otrobopt.JointChanceMeasure(\n g, thetaDist, ot.Greater(), 0.9)\nproblem = otrobopt.RobustOptimizationProblem(\n robustnessMeasure, reliabilityMeasure)\nbounds = ot.Interval([-10.0] * dim, [10.0] * dim)\nproblem.setBounds(bounds)\n\nalgo = otrobopt.SequentialMonteCarloRobustAlgorithm(problem, solver)\nalgo.setMaximumIterationNumber(10)\nalgo.setMaximumAbsoluteError(1e-3)\nalgo.setInitialSamplingSize(10)\nalgo.setInitialSearch(100)\nalgo.run()\nresult = algo.getResult()\nprint('x*=', result.getOptimalPoint(),\n 'J(x*)=', result.getOptimalValue(),\n 'iteration=', result.getIterationNumber())"
]
}
],
Expand All @@ -42,7 +42,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
dim = J.getInputDimension()

solver = ot.Cobyla()
solver.setIgnoreFailure(True)
solver.setCheckStatus(False)
solver.setMaximumIterationNumber(1000)

thetaDist = ot.Uniform(1.0, 3.0)
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file modified otrobopt/master/_images/otrobopt-IndividualChanceMeasure-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified otrobopt/master/_images/otrobopt-JointChanceMeasure-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified otrobopt/master/_images/otrobopt-MeanMeasure-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified otrobopt/master/_images/otrobopt-QuantileMeasure-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified otrobopt/master/_images/otrobopt-VarianceMeasure-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified otrobopt/master/_images/otrobopt-WorstCaseMeasure-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions otrobopt/master/_sources/auto_examples/plot_example1.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Solution: :math:`\hat{x} = [2.2, 0.6]`
dim = J.getInputDimension()
solver = ot.Cobyla()
solver.setIgnoreFailure(True)
solver.setCheckStatus(False)
solver.setMaximumIterationNumber(1000)
thetaDist = ot.Uniform(1.0, 3.0)
Expand Down Expand Up @@ -93,7 +93,7 @@ Solution: :math:`\hat{x} = [2.2, 0.6]`
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.312 seconds)
**Total running time of the script:** (0 minutes 0.315 seconds)


.. _sphx_glr_download_auto_examples_plot_example1.py:
Expand All @@ -109,3 +109,7 @@ Solution: :math:`\hat{x} = [2.2, 0.6]`
.. container:: sphx-glr-download sphx-glr-download-python

:download:`Download Python source code: plot_example1.py <plot_example1.py>`

.. container:: sphx-glr-download sphx-glr-download-zip

:download:`Download zipped: plot_example1.zip <plot_example1.zip>`
6 changes: 5 additions & 1 deletion otrobopt/master/_sources/auto_examples/plot_example2.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Solution: :math:`\hat{x} = [15, 30]`
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.174 seconds)
**Total running time of the script:** (0 minutes 0.181 seconds)


.. _sphx_glr_download_auto_examples_plot_example2.py:
Expand All @@ -108,3 +108,7 @@ Solution: :math:`\hat{x} = [15, 30]`
.. container:: sphx-glr-download sphx-glr-download-python

:download:`Download Python source code: plot_example2.py <plot_example2.py>`

.. container:: sphx-glr-download sphx-glr-download-zip

:download:`Download zipped: plot_example2.zip <plot_example2.zip>`
6 changes: 5 additions & 1 deletion otrobopt/master/_sources/auto_examples/plot_example3.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Solution: :math:`\hat{x} = -1`
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.003 seconds)
**Total running time of the script:** (0 minutes 0.002 seconds)


.. _sphx_glr_download_auto_examples_plot_example3.py:
Expand All @@ -105,3 +105,7 @@ Solution: :math:`\hat{x} = -1`
.. container:: sphx-glr-download sphx-glr-download-python

:download:`Download Python source code: plot_example3.py <plot_example3.py>`

.. container:: sphx-glr-download sphx-glr-download-zip

:download:`Download zipped: plot_example3.zip <plot_example3.zip>`
4 changes: 4 additions & 0 deletions otrobopt/master/_sources/auto_examples/plot_example4.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,7 @@ Solution: :math:`\hat{x} = \pi`
.. container:: sphx-glr-download sphx-glr-download-python

:download:`Download Python source code: plot_example4.py <plot_example4.py>`

.. container:: sphx-glr-download sphx-glr-download-zip

:download:`Download zipped: plot_example4.zip <plot_example4.zip>`
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Computation times
=================
**00:00.497** total execution time for 4 files **from auto_examples**:
**00:00.505** total execution time for 4 files **from auto_examples**:

.. container::

Expand All @@ -33,14 +33,14 @@ Computation times
- Time
- Mem (MB)
* - :ref:`sphx_glr_auto_examples_plot_example1.py` (``plot_example1.py``)
- 00:00.312
- 00:00.315
- 0.0
* - :ref:`sphx_glr_auto_examples_plot_example2.py` (``plot_example2.py``)
- 00:00.174
- 00:00.181
- 0.0
* - :ref:`sphx_glr_auto_examples_plot_example4.py` (``plot_example4.py``)
- 00:00.007
- 0.0
* - :ref:`sphx_glr_auto_examples_plot_example3.py` (``plot_example3.py``)
- 00:00.003
- 00:00.002
- 0.0
8 changes: 4 additions & 4 deletions otrobopt/master/_sources/sg_execution_times.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Computation times
=================
**00:00.497** total execution time for 4 files **from all galleries**:
**00:00.505** total execution time for 4 files **from all galleries**:

.. container::

Expand All @@ -33,14 +33,14 @@ Computation times
- Time
- Mem (MB)
* - :ref:`sphx_glr_auto_examples_plot_example1.py` (``examples/plot_example1.py``)
- 00:00.312
- 00:00.315
- 0.0
* - :ref:`sphx_glr_auto_examples_plot_example2.py` (``examples/plot_example2.py``)
- 00:00.174
- 00:00.181
- 0.0
* - :ref:`sphx_glr_auto_examples_plot_example4.py` (``examples/plot_example4.py``)
- 00:00.007
- 0.0
* - :ref:`sphx_glr_auto_examples_plot_example3.py` (``examples/plot_example3.py``)
- 00:00.003
- 00:00.002
- 0.0
7 changes: 4 additions & 3 deletions otrobopt/master/_static/searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const Search = {

htmlToText: (htmlString, anchor) => {
const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html');
for (const removalQuery of [".headerlinks", "script", "style"]) {
for (const removalQuery of [".headerlink", "script", "style"]) {
htmlElement.querySelectorAll(removalQuery).forEach((el) => { el.remove() });
}
if (anchor) {
Expand Down Expand Up @@ -328,13 +328,14 @@ const Search = {
for (const [title, foundTitles] of Object.entries(allTitles)) {
if (title.toLowerCase().trim().includes(queryLower) && (queryLower.length >= title.length/2)) {
for (const [file, id] of foundTitles) {
let score = Math.round(100 * queryLower.length / title.length)
const score = Math.round(Scorer.title * queryLower.length / title.length);
const boost = titles[file] === title ? 1 : 0; // add a boost for document titles
normalResults.push([
docNames[file],
titles[file] !== title ? `${titles[file]} > ${title}` : title,
id !== null ? "#" + id : "",
null,
score,
score + boost,
filenames[file],
]);
}
Expand Down
35 changes: 30 additions & 5 deletions otrobopt/master/_static/sg_gallery.css
Original file line number Diff line number Diff line change
Expand Up @@ -178,23 +178,44 @@ thumbnail with its default link Background color */
max-height: 112px;
max-width: 160px;
}
.sphx-glr-thumbcontainer[tooltip]:hover:after {
background: var(--sg-tooltip-background);

.sphx-glr-thumbcontainer[tooltip]::before {
content: "";
position: absolute;
pointer-events: none;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 97;
background-color: var(--sg-tooltip-background);
backdrop-filter: blur(3px);
opacity: 0;
transition: opacity 0.3s;
}

.sphx-glr-thumbcontainer[tooltip]:hover::before {
opacity: 1;
}

.sphx-glr-thumbcontainer[tooltip]:hover::after {
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
color: var(--sg-tooltip-foreground);
content: attr(tooltip);
padding: 10px;
padding: 10px 10px 5px;
z-index: 98;
width: 100%;
height: 100%;
max-height: 100%;
position: absolute;
pointer-events: none;
top: 0;
box-sizing: border-box;
overflow: hidden;
backdrop-filter: blur(3px);
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 6;
}

.sphx-glr-script-out {
Expand Down Expand Up @@ -283,6 +304,10 @@ div.sphx-glr-download a:hover {
background-color: var(--sg-download-a-hover-background-color);
}

div.sphx-glr-sidebar-item img {
max-height: 20px;
}

.sphx-glr-example-title:target::before {
display: block;
content: "";
Expand Down
8 changes: 4 additions & 4 deletions otrobopt/master/auto_examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css?v=def86cc0" />
<link rel="stylesheet" type="text/css" href="../_static/plot_directive.css" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery.css?v=61a4c737" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery.css?v=d2d258e8" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-binder.css?v=f4aeca0c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-rendered-html.css?v=1277b6f3" />
Expand All @@ -24,7 +24,7 @@
<link rel="next" title="Example 4" href="plot_example4.html" />
<link rel="prev" title="InverseFORMResult" href="../user_manual/_generated/otrobopt.InverseFORMResult.html" />
</head><body>
<div class="related" role="navigation" aria-label="related navigation">
<div class="related" role="navigation" aria-label="Related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
Expand Down Expand Up @@ -77,7 +77,7 @@ <h1>Examples<a class="headerlink" href="#examples" title="Link to this heading">
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebar" role="navigation" aria-label="Main">
<div class="sphinxsidebarwrapper">
<div>
<h4>Previous topic</h4>
Expand Down Expand Up @@ -110,7 +110,7 @@ <h3 id="searchlabel">Quick search</h3>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<div class="related" role="navigation" aria-label="Related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
Expand Down
19 changes: 11 additions & 8 deletions otrobopt/master/auto_examples/plot_example1.html

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions otrobopt/master/auto_examples/plot_example2.html

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions otrobopt/master/auto_examples/plot_example3.html

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions otrobopt/master/auto_examples/plot_example4.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions otrobopt/master/auto_examples/sg_execution_times.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css?v=def86cc0" />
<link rel="stylesheet" type="text/css" href="../_static/plot_directive.css" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery.css?v=61a4c737" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery.css?v=d2d258e8" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-binder.css?v=f4aeca0c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-rendered-html.css?v=1277b6f3" />
Expand All @@ -22,7 +22,7 @@
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
</head><body>
<div class="related" role="navigation" aria-label="related navigation">
<div class="related" role="navigation" aria-label="Related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
Expand All @@ -40,7 +40,7 @@ <h3>Navigation</h3>

<section id="computation-times">
<span id="sphx-glr-auto-examples-sg-execution-times"></span><h1>Computation times<a class="headerlink" href="#computation-times" title="Link to this heading"></a></h1>
<p><strong>00:00.497</strong> total execution time for 4 files <strong>from auto_examples</strong>:</p>
<p><strong>00:00.505</strong> total execution time for 4 files <strong>from auto_examples</strong>:</p>
<div class="docutils container">
<style scoped>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
Expand All @@ -62,19 +62,19 @@ <h3>Navigation</h3>
</thead>
<tbody>
<tr class="row-even"><td><p><a class="reference internal" href="plot_example1.html#sphx-glr-auto-examples-plot-example1-py"><span class="std std-ref">Example 1</span></a> (<code class="docutils literal notranslate"><span class="pre">plot_example1.py</span></code>)</p></td>
<td><p>00:00.312</p></td>
<td><p>00:00.315</p></td>
<td><p>0.0</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="plot_example2.html#sphx-glr-auto-examples-plot-example2-py"><span class="std std-ref">Example 2</span></a> (<code class="docutils literal notranslate"><span class="pre">plot_example2.py</span></code>)</p></td>
<td><p>00:00.174</p></td>
<td><p>00:00.181</p></td>
<td><p>0.0</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="plot_example4.html#sphx-glr-auto-examples-plot-example4-py"><span class="std std-ref">Example 4</span></a> (<code class="docutils literal notranslate"><span class="pre">plot_example4.py</span></code>)</p></td>
<td><p>00:00.007</p></td>
<td><p>0.0</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="plot_example3.html#sphx-glr-auto-examples-plot-example3-py"><span class="std std-ref">Example 3</span></a> (<code class="docutils literal notranslate"><span class="pre">plot_example3.py</span></code>)</p></td>
<td><p>00:00.003</p></td>
<td><p>00:00.002</p></td>
<td><p>0.0</p></td>
</tr>
</tbody>
Expand All @@ -87,7 +87,7 @@ <h3>Navigation</h3>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebar" role="navigation" aria-label="Main">
<div class="sphinxsidebarwrapper">
<div role="note" aria-label="source link">
<h3>This Page</h3>
Expand All @@ -110,7 +110,7 @@ <h3 id="searchlabel">Quick search</h3>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<div class="related" role="navigation" aria-label="Related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
Expand Down
Loading

0 comments on commit c846881

Please sign in to comment.