Skip to content

Commit eb0c471

Browse files
committed
Deploying to gh-pages from @ ee0d11b 🚀
1 parent a7afe1e commit eb0c471

13 files changed

+59
-70
lines changed

constraint.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,12 @@ <h1>Constraint<a class="headerlink" href="#constraint" title="Link to this headi
307307
</div>
308308
</div>
309309
<div class="cell_output docutils container">
310-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2025-06-10 08:46:10 [INFO] checks license for COPT v7.2.8 20250516
311-
2025-06-10 08:46:10 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
312-
2025-06-10 08:46:10 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.12.10/x64/bin
313-
2025-06-10 08:46:10 [WARN] no license files in HOME folder: /home/runner/copt
314-
2025-06-10 08:46:10 [INFO] empty environment variable: COPT_LICENSE_DIR
315-
2025-06-10 08:46:10 [WARN] no license files in EV &#39;COPT_LICENSE_DIR&#39;:
310+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2025-06-25 09:31:24 [INFO] checks license for COPT v7.2.8 20250516
311+
2025-06-25 09:31:24 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
312+
2025-06-25 09:31:24 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.12.11/x64/bin
313+
2025-06-25 09:31:24 [WARN] no license files in HOME folder: /home/runner/copt
314+
2025-06-25 09:31:24 [INFO] empty environment variable: COPT_LICENSE_DIR
315+
2025-06-25 09:31:24 [WARN] no license files in EV &#39;COPT_LICENSE_DIR&#39;:
316316

317317
No license found. Starting COPT with size limitations for non-commercial use
318318
Please apply for a license from www.shanshu.ai/copt
@@ -624,7 +624,7 @@ <h2>Create constraint with comparison operator<a class="headerlink" href="#creat
624624
</div>
625625
</div>
626626
<div class="cell_output docutils container">
627-
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7f9d1cd6af50&gt;
627+
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7fb300f5b190&gt;
628628
</pre></div>
629629
</div>
630630
</div>

examples/economic_dispatch.html

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,14 @@ <h2>Change the load and solve the model again<a class="headerlink" href="#change
491491
RHS [2e+01, 2e+02]
492492
Iteration Objective NullspaceDim
493493
0 15430.248 0 0.00s
494-
100 14091.031 3 0.01s
494+
100 14091.031 3 0.00s
495+
169 13740.237 10 0.01s
496+
Model status : Optimal
497+
Simplex iterations: 86
498+
QP ASM iterations: 169
499+
Objective value : 1.3740213571e+04
500+
P-D objective error : 1.6699127419e-06
501+
HiGHS run time : 0.01
495502
TerminationStatusCode.OPTIMAL
496503
Objective value: 13740.213571429404
497504
[[100. 100. 100. 100. 100.
@@ -511,15 +518,6 @@ <h2>Change the load and solve the model again<a class="headerlink" href="#change
511518
52.85719184 53.28576347 53.7143351 54.14290673]]
512519
</pre></div>
513520
</div>
514-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 169 13740.237 10 0.01s
515-
Model status : Optimal
516-
Simplex iterations: 86
517-
QP ASM iterations: 169
518-
Objective value : 1.3740213571e+04
519-
P-D objective error : 1.6699127419e-06
520-
HiGHS run time : 0.01
521-
</pre></div>
522-
</div>
523521
</div>
524522
</div>
525523
</section>

examples/optimal_control_rocket.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ <h2>Implementation<a class="headerlink" href="#implementation" title="Link to th
365365
<span class="g g-Whitespace"> </span><span class="mi">5</span> <span class="n">model</span> <span class="o">=</span> <span class="n">ipopt</span><span class="o">.</span><span class="n">Model</span><span class="p">()</span>
366366
<span class="g g-Whitespace"> </span><span class="mi">7</span> <span class="n">h_0</span> <span class="o">=</span> <span class="mi">1</span> <span class="c1"># Initial height</span>
367367

368-
<span class="ne">ImportError</span>: cannot import name &#39;nlfunc&#39; from &#39;pyoptinterface&#39; (/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/pyoptinterface/__init__.py)
368+
<span class="ne">ImportError</span>: cannot import name &#39;nlfunc&#39; from &#39;pyoptinterface&#39; (/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/pyoptinterface/__init__.py)
369369
</pre></div>
370370
</div>
371371
</div>

examples/optimal_power_flow.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ <h2>Implementation<a class="headerlink" href="#implementation" title="Link to th
358358
<span class="g g-Whitespace"> </span><span class="mi">5</span> <span class="n">model</span> <span class="o">=</span> <span class="n">ipopt</span><span class="o">.</span><span class="n">Model</span><span class="p">()</span>
359359
<span class="g g-Whitespace"> </span><span class="mi">7</span> <span class="k">def</span><span class="w"> </span><span class="nf">branch_flow</span><span class="p">(</span><span class="nb">vars</span><span class="p">,</span> <span class="n">params</span><span class="p">):</span>
360360

361-
<span class="ne">ImportError</span>: cannot import name &#39;nlfunc&#39; from &#39;pyoptinterface&#39; (/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/pyoptinterface/__init__.py)
361+
<span class="ne">ImportError</span>: cannot import name &#39;nlfunc&#39; from &#39;pyoptinterface&#39; (/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/pyoptinterface/__init__.py)
362362
</pre></div>
363363
</div>
364364
</div>

expression.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ <h2>Efficient expression construction<a class="headerlink" href="#efficient-expr
364364
</div>
365365
</div>
366366
<div class="cell_output docutils container">
367-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>CPU times: user 726 μs, sys: 0 ns, total: 726 μs
368-
Wall time: 729 μs
367+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>CPU times: user 700 μs, sys: 0 ns, total: 700 μs
368+
Wall time: 704 μs
369369
</pre></div>
370370
</div>
371371
</div>
@@ -377,7 +377,7 @@ <h2>Efficient expression construction<a class="headerlink" href="#efficient-expr
377377
</div>
378378
</div>
379379
<div class="cell_output docutils container">
380-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>CPU times: user 15.9 ms, sys: 0 ns, total: 15.9 ms
380+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>CPU times: user 16 ms, sys: 0 ns, total: 16 ms
381381
Wall time: 15.7 ms
382382
</pre></div>
383383
</div>

infeasibility.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,12 @@ <h1>Infeasibility Analysis<a class="headerlink" href="#infeasibility-analysis" t
317317
</div>
318318
</div>
319319
<div class="cell_output docutils container">
320-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Constraint 1 IIS: True2025-06-10 08:46:17 [INFO] checks license for COPT v7.2.8 20250516
321-
2025-06-10 08:46:17 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
322-
2025-06-10 08:46:17 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.12.10/x64/bin
323-
2025-06-10 08:46:17 [WARN] no license files in HOME folder: /home/runner/copt
324-
2025-06-10 08:46:17 [INFO] empty environment variable: COPT_LICENSE_DIR
325-
2025-06-10 08:46:17 [WARN] no license files in EV &#39;COPT_LICENSE_DIR&#39;:
320+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Constraint 1 IIS: True2025-06-25 09:31:32 [INFO] checks license for COPT v7.2.8 20250516
321+
2025-06-25 09:31:32 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
322+
2025-06-25 09:31:32 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.12.11/x64/bin
323+
2025-06-25 09:31:32 [WARN] no license files in HOME folder: /home/runner/copt
324+
2025-06-25 09:31:32 [INFO] empty environment variable: COPT_LICENSE_DIR
325+
2025-06-25 09:31:32 [WARN] no license files in EV &#39;COPT_LICENSE_DIR&#39;:
326326

327327
No license found. Starting COPT with size limitations for non-commercial use
328328
Please apply for a license from www.shanshu.ai/copt

model.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,15 +424,13 @@ <h2>Inspect and customize the model<a class="headerlink" href="#inspect-and-cust
424424
RHS [1e+00, 1e+00]
425425
Iteration Objective NullspaceDim
426426
0 1 0 0.00s
427-
Objective value: 0.49999999999999994
428-
</pre></div>
429-
</div>
430-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 2 0.50000002 1 0.00s
427+
2 0.50000002 1 0.00s
431428
Model status : Optimal
432429
QP ASM iterations: 2
433430
Objective value : 5.0000000000e-01
434431
P-D objective error : 2.4999999473e-08
435432
HiGHS run time : 0.00
433+
Objective value: 0.49999999999999994
436434
</pre></div>
437435
</div>
438436
</div>

nonlinear.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ <h2>Structures in nonlinear programming<a class="headerlink" href="#structures-i
323323
<span class="g g-Whitespace"> </span><span class="mi">3</span> <span class="n">model</span> <span class="o">=</span> <span class="n">ipopt</span><span class="o">.</span><span class="n">Model</span><span class="p">()</span>
324324
<span class="g g-Whitespace"> </span><span class="mi">5</span> <span class="k">def</span><span class="w"> </span><span class="nf">f</span><span class="p">(</span><span class="nb">vars</span><span class="p">,</span> <span class="n">params</span><span class="p">):</span>
325325

326-
<span class="ne">ImportError</span>: cannot import name &#39;nlfunc&#39; from &#39;pyoptinterface&#39; (/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/pyoptinterface/__init__.py)
326+
<span class="ne">ImportError</span>: cannot import name &#39;nlfunc&#39; from &#39;pyoptinterface&#39; (/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/pyoptinterface/__init__.py)
327327
</pre></div>
328328
</div>
329329
</div>

numpy.html

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,6 @@ <h2>N-queen problem<a class="headerlink" href="#n-queen-problem" title="Link to
314314
</pre></div>
315315
</div>
316316
</div>
317-
<div class="cell_output docutils container">
318-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Running HiGHS 1.11.0 (git hash: 364c83a): Copyright (c) 2025 HiGHS under MIT licence terms
319-
</pre></div>
320-
</div>
321-
</div>
322317
</div>
323318
<p>Next, we add the constraints to ensure that each row, each column has exact one queen, and each diagonal has at most one queen.</p>
324319
<div class="cell docutils container">
@@ -371,10 +366,7 @@ <h2>N-queen problem<a class="headerlink" href="#n-queen-problem" title="Link to
371366
Src Proc. InQueue | Leaves Expl. | BestBound BestSol Gap | Cuts InLp Confl. | LpIters Time
372367

373368
J 0 0 0 100.00% -inf 0 Large 0 0 0 0 0.0s
374-
Termination status: TerminationStatusCode.OPTIMAL
375-
</pre></div>
376-
</div>
377-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 1 0 1 100.00% 0 0 0.00% 0 0 0 0 0.0s
369+
1 0 1 100.00% 0 0 0.00% 0 0 0 0 0.0s
378370

379371
Solving report
380372
Status Optimal
@@ -398,6 +390,7 @@ <h2>N-queen problem<a class="headerlink" href="#n-queen-problem" title="Link to
398390
0 (strong br.)
399391
0 (separation)
400392
0 (heuristics)
393+
Termination status: TerminationStatusCode.OPTIMAL
401394
</pre></div>
402395
</div>
403396
</div>

reports/examples/optimal_control_rocket.err.log

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
Traceback (most recent call last):
2-
File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 154, in wrapped
2+
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 154, in wrapped
33
asyncio.get_running_loop()
44
RuntimeError: no running event loop
55

66
During handling of the above exception, another exception occurred:
77

88
Traceback (most recent call last):
9-
File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/jupyter_cache/executors/utils.py", line 58, in single_nb_execution
9+
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/jupyter_cache/executors/utils.py", line 58, in single_nb_execution
1010
executenb(
11-
File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/nbclient/client.py", line 1319, in execute
11+
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/nbclient/client.py", line 1319, in execute
1212
return NotebookClient(nb=nb, resources=resources, km=km, **kwargs).execute()
1313
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14-
File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 158, in wrapped
14+
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 158, in wrapped
1515
return loop.run_until_complete(inner)
1616
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17-
File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/asyncio/base_events.py", line 691, in run_until_complete
17+
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/asyncio/base_events.py", line 691, in run_until_complete
1818
return future.result()
1919
^^^^^^^^^^^^^^^
20-
File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/nbclient/client.py", line 709, in async_execute
20+
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/nbclient/client.py", line 709, in async_execute
2121
await self.async_execute_cell(
22-
File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/nbclient/client.py", line 1062, in async_execute_cell
22+
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/nbclient/client.py", line 1062, in async_execute_cell
2323
await self._check_raise_for_error(cell, cell_index, exec_reply)
24-
File "/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/nbclient/client.py", line 918, in _check_raise_for_error
24+
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/nbclient/client.py", line 918, in _check_raise_for_error
2525
raise CellExecutionError.from_cell_and_msg(cell, exec_reply_content)
2626
nbclient.exceptions.CellExecutionError: An error occurred while executing the following cell:
2727
------------------
@@ -69,5 +69,5 @@ rd = model.register_function(rocket_dynamics)
6969
 5 model = ipopt.Model()
7070
 7 h_0 = 1 # Initial height
7171

72-
ImportError: cannot import name 'nlfunc' from 'pyoptinterface' (/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/pyoptinterface/__init__.py)
72+
ImportError: cannot import name 'nlfunc' from 'pyoptinterface' (/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/pyoptinterface/__init__.py)
7373

0 commit comments

Comments
 (0)