Skip to content

Commit 20359e8

Browse files
committed
Deploying to gh-pages from @ f901b6b 🚀
1 parent 42d3330 commit 20359e8

File tree

11 files changed

+49
-121
lines changed

11 files changed

+49
-121
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-01-27 09:01:04 [INFO] checks license for COPT v7.2.4 20241206
311-
2025-01-27 09:01:04 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
312-
2025-01-27 09:01:04 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.12.8/x64/bin
313-
2025-01-27 09:01:04 [WARN] no license files in HOME folder: /home/runner/copt
314-
2025-01-27 09:01:04 [INFO] empty environment variable: COPT_LICENSE_DIR
315-
2025-01-27 09:01:04 [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-01-27 09:12:58 [INFO] checks license for COPT v7.2.4 20241206
311+
2025-01-27 09:12:58 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
312+
2025-01-27 09:12:58 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.12.8/x64/bin
313+
2025-01-27 09:12:58 [WARN] no license files in HOME folder: /home/runner/copt
314+
2025-01-27 09:12:58 [INFO] empty environment variable: COPT_LICENSE_DIR
315+
2025-01-27 09:12:58 [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 0x7f04d0cf4a10&gt;
627+
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7fe3dc6f44b0&gt;
628628
</pre></div>
629629
</div>
630630
</div>

examples/economic_dispatch.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,14 +417,14 @@ <h2>Implementation<a class="headerlink" href="#implementation" title="Link to th
417417
Iteration Objective NullspaceDim
418418
0 14328.52 0 0.00s
419419
100 12722.021 1 0.00s
420+
TerminationStatusCode.OPTIMAL
421+
Objective value: 12684.0
420422
108 12684.021 0 0.00s
421423
Model status : Optimal
422424
Simplex iterations: 63
423425
QP ASM iterations: 108
424426
Objective value : 1.2684000000e+04
425427
HiGHS run time : 0.00
426-
TerminationStatusCode.OPTIMAL
427-
Objective value: 12684.0
428428
</pre></div>
429429
</div>
430430
</div>
@@ -487,7 +487,7 @@ <h2>Change the load and solve the model again<a class="headerlink" href="#change
487487
Bound [5e+01, 1e+02]
488488
RHS [2e+01, 2e+02]
489489
Iteration Objective NullspaceDim
490-
0 15430.248 0 0.00s
490+
0 15430.248 0 0.01s
491491
100 14091.031 3 0.01s
492492
169 13740.237 10 0.01s
493493
Model status : Optimal

examples/optimal_control_rocket.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ <h2>Implementation<a class="headerlink" href="#implementation" title="Link to th
480480
Number of equality constraint Jacobian evaluations = 24
481481
Number of inequality constraint Jacobian evaluations = 0
482482
Number of Lagrangian Hessian evaluations = 23
483-
Total CPU secs in IPOPT (w/o function evaluations) = 0.110
483+
Total CPU secs in IPOPT (w/o function evaluations) = 0.118
484484
Total CPU secs in NLP function evaluations = 0.004
485485

486486
EXIT: Optimal Solution Found.

expression.html

Lines changed: 4 additions & 4 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 728 μs, sys: 0 ns, total: 728 μs
368-
Wall time: 733 μs
367+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>CPU times: user 778 μs, sys: 0 ns, total: 778 μs
368+
Wall time: 782 μs
369369
</pre></div>
370370
</div>
371371
</div>
@@ -377,8 +377,8 @@ <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 20.3 ms, sys: 12 μs, total: 20.3 ms
381-
Wall time: 20.1 ms
380+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>CPU times: user 19.9 ms, sys: 159 μs, total: 20.1 ms
381+
Wall time: 19.9 ms
382382
</pre></div>
383383
</div>
384384
</div>

infeasibility.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -317,21 +317,19 @@ <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-01-27 09:01:13 [INFO] checks license for COPT v7.2.4 20241206
321-
2025-01-27 09:01:13 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
322-
2025-01-27 09:01:13 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.12.8/x64/bin
323-
2025-01-27 09:01:13 [WARN] no license files in HOME folder: /home/runner/copt
324-
2025-01-27 09:01:13 [INFO] empty environment variable: COPT_LICENSE_DIR
325-
2025-01-27 09:01:13 [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-01-27 09:13:06 [INFO] checks license for COPT v7.2.4 20241206
321+
2025-01-27 09:13:06 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
322+
2025-01-27 09:13:06 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.12.8/x64/bin
323+
2025-01-27 09:13:06 [WARN] no license files in HOME folder: /home/runner/copt
324+
2025-01-27 09:13:06 [INFO] empty environment variable: COPT_LICENSE_DIR
325+
2025-01-27 09:13:06 [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
329329

330330

331331
Constraint 2 IIS: True
332-
</pre></div>
333-
</div>
334-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>No license found. LP size is limited to 10000 variables and 10000 constraints
332+
No license found. LP size is limited to 10000 variables and 10000 constraints
335333
Please apply for a license from www.shanshu.ai/copt
336334

337335
Model fingerprint: 43b22f9c

model.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,13 +424,11 @@ <h2>Inspect and customize the model<a class="headerlink" href="#inspect-and-cust
424424
Iteration Objective NullspaceDim
425425
0 1 0 0.00s
426426
2 0.50000002 1 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>Model status : Optimal
427+
Model status : Optimal
431428
QP ASM iterations: 2
432429
Objective value : 5.0000000000e-01
433430
HiGHS run time : 0.00
431+
Objective value: 0.49999999999999994
434432
</pre></div>
435433
</div>
436434
</div>

nonlinear.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ <h2>Nonlinear constraints and objectives<a class="headerlink" href="#nonlinear-c
555555
Number of equality constraint Jacobian evaluations = 0
556556
Number of inequality constraint Jacobian evaluations = 11
557557
Number of Lagrangian Hessian evaluations = 10
558-
Total CPU secs in IPOPT (w/o function evaluations) = 0.006
558+
Total CPU secs in IPOPT (w/o function evaluations) = 0.004
559559
Total CPU secs in NLP function evaluations = 0.000
560560

561561
EXIT: Optimal Solution Found.
@@ -679,8 +679,9 @@ <h2>Nonlinear constraints and objectives<a class="headerlink" href="#nonlinear-c
679679
12 2.8189505e-09 0.00e+00 8.31e-04 -2.5 3.20e-03 - 1.00e+00 1.00e+00f 1
680680
13 1.0095040e-15 0.00e+00 8.68e-07 -5.7 9.78e-05 - 1.00e+00 1.00e+00f 1
681681
14 1.3288608e-28 0.00e+00 2.02e-13 -8.6 4.65e-08 - 1.00e+00 1.00e+00f 1
682-
683-
Number of Iterations....: 14
682+
</pre></div>
683+
</div>
684+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Number of Iterations....: 14
684685

685686
(scaled) (unscaled)
686687
Objective...............: 1.3288608467480825e-28 1.3288608467480825e-28
@@ -784,8 +785,9 @@ <h2>Mixing nonlinear and linear/quadratic constraints together<a class="headerli
784785
2 3.5000000e+02 0.00e+00 0.00e+00 -3.8 0.00e+00 -2.0 1.00e+00 1.00e+00T 0
785786
3 3.5000000e+02 0.00e+00 0.00e+00 -5.7 0.00e+00 0.2 1.00e+00 1.00e+00T 0
786787
4 3.5000000e+02 0.00e+00 0.00e+00 -8.6 0.00e+00 -0.2 1.00e+00 1.00e+00T 0
787-
788-
Number of Iterations....: 4
788+
</pre></div>
789+
</div>
790+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Number of Iterations....: 4
789791

790792
(scaled) (unscaled)
791793
Objective...............: 3.5000000000000318e+02 3.5000000000000318e+02
@@ -802,7 +804,7 @@ <h2>Mixing nonlinear and linear/quadratic constraints together<a class="headerli
802804
Number of equality constraint Jacobian evaluations = 5
803805
Number of inequality constraint Jacobian evaluations = 0
804806
Number of Lagrangian Hessian evaluations = 4
805-
Total CPU secs in IPOPT (w/o function evaluations) = 0.026
807+
Total CPU secs in IPOPT (w/o function evaluations) = 0.024
806808
Total CPU secs in NLP function evaluations = 0.001
807809

808810
EXIT: Optimal Solution Found.

numpy.html

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -450,28 +450,21 @@ <h2>Built-in functions to add variables and constraints as Numpy <code class="do
450450
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Running HiGHS 1.9.0 (git hash: 66f735e): Copyright (c) 2024 HiGHS under MIT licence terms
451451
</pre></div>
452452
</div>
453-
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
454-
<span class="ne">ModuleNotFoundError</span><span class="g g-Whitespace"> </span>Traceback (most recent call last)
455-
<span class="n">Cell</span> <span class="n">In</span><span class="p">[</span><span class="mi">6</span><span class="p">],</span> <span class="n">line</span> <span class="mi">9</span>
456-
<span class="g g-Whitespace"> </span><span class="mi">6</span> <span class="n">b_ub</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">ones</span><span class="p">(</span><span class="n">N</span><span class="p">)</span>
457-
<span class="g g-Whitespace"> </span><span class="mi">7</span> <span class="n">b_lb</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">ones</span><span class="p">(</span><span class="n">N</span><span class="p">)</span>
458-
<span class="ne">----&gt; </span><span class="mi">9</span> <span class="n">model</span><span class="o">.</span><span class="n">add_m_linear_constraints</span><span class="p">(</span><span class="n">A</span><span class="p">,</span> <span class="n">x</span><span class="p">,</span> <span class="n">poi</span><span class="o">.</span><span class="n">Leq</span><span class="p">,</span> <span class="n">b_ub</span><span class="p">)</span>
459-
<span class="g g-Whitespace"> </span><span class="mi">10</span> <span class="n">model</span><span class="o">.</span><span class="n">add_m_linear_constraints</span><span class="p">(</span><span class="n">A</span><span class="p">,</span> <span class="n">x</span><span class="p">,</span> <span class="n">poi</span><span class="o">.</span><span class="n">Geq</span><span class="p">,</span> <span class="n">b_lb</span><span class="p">)</span>
460-
<span class="g g-Whitespace"> </span><span class="mi">12</span> <span class="n">model</span><span class="o">.</span><span class="n">set_objective</span><span class="p">(</span><span class="n">poi</span><span class="o">.</span><span class="n">quicksum</span><span class="p">(</span><span class="n">x</span><span class="p">))</span>
461-
462-
<span class="nn">File /opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/pyoptinterface/_src/matrix.py:35,</span> in <span class="ni">add_matrix_constraints</span><span class="nt">(model, A, x, sense, b)</span>
463-
<span class="g g-Whitespace"> </span><span class="mi">26</span><span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
464-
<span class="g g-Whitespace"> </span><span class="mi">27</span><span class="sd"> add constraints Ax &lt;= / = / &gt;= b</span>
465-
<span class="g g-Whitespace"> </span><span class="mi">28</span><span class="sd"> </span>
466-
<span class="sd"> (...)</span>
467-
<span class="g g-Whitespace"> </span><span class="mi">32</span><span class="sd"> b is an iterable of values or a single scalar</span>
468-
<span class="g g-Whitespace"> </span><span class="mi">33</span><span class="sd"> &quot;&quot;&quot;</span>
469-
<span class="g g-Whitespace"> </span><span class="mi">34</span> <span class="kn">import</span><span class="w"> </span><span class="nn">numpy</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">np</span>
470-
<span class="ne">---&gt; </span><span class="mi">35</span> <span class="kn">from</span><span class="w"> </span><span class="nn">scipy.sparse</span><span class="w"> </span><span class="kn">import</span> <span class="n">sparray</span>
471-
<span class="g g-Whitespace"> </span><span class="mi">37</span> <span class="n">is_ndarray</span> <span class="o">=</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">A</span><span class="p">,</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">)</span>
472-
<span class="g g-Whitespace"> </span><span class="mi">38</span> <span class="n">is_sparse</span> <span class="o">=</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">A</span><span class="p">,</span> <span class="n">sparray</span><span class="p">)</span>
473-
474-
<span class="ne">ModuleNotFoundError</span>: No module named &#39;scipy&#39;
453+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Hessian has dimension 8 but no nonzeros, so is ignored
454+
Coefficient ranges:
455+
Matrix [1e+00, 1e+00]
456+
Cost [1e+00, 1e+00]
457+
Bound [0e+00, 0e+00]
458+
RHS [1e+00, 1e+00]
459+
Presolving model
460+
0 rows, 0 cols, 0 nonzeros 0s
461+
0 rows, 0 cols, 0 nonzeros 0s
462+
Presolve : Reductions: rows 0(-16); columns 0(-8); elements 0(-16) - Reduced to empty
463+
Solving the original LP from the solution after postsolve
464+
Model status : Optimal
465+
Objective value : 8.0000000000e+00
466+
Relative P-D gap : 0.0000000000e+00
467+
HiGHS run time : 0.00
475468
</pre></div>
476469
</div>
477470
</div>

reports/numpy.err.log

Lines changed: 0 additions & 63 deletions
This file was deleted.

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)