Skip to content

Commit a50e9f7

Browse files
committed
Deploying to gh-pages from @ 17379d7 🚀
1 parent 04f84a7 commit a50e9f7

File tree

13 files changed

+52
-55
lines changed

13 files changed

+52
-55
lines changed

_sources/attribute/xpress.md.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@
9797
* - IISUpperBound
9898
- ✅
9999
- ❌
100+
* - ReducedCost
101+
- ✅
102+
- ❌
100103
:::
101104

102105
### Supported [constraint attribute](#pyoptinterface.ConstraintAttribute)

attribute/xpress.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,10 @@ <h1>Supported <a class="reference internal" href="../api/pyoptinterface.html#pyo
409409
<td><p></p></td>
410410
<td><p></p></td>
411411
</tr>
412+
<tr class="row-even"><td><p>ReducedCost</p></td>
413+
<td><p></p></td>
414+
<td><p></p></td>
415+
</tr>
412416
</tbody>
413417
</table>
414418
</div>

constraint.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,12 @@ <h1>Constraint<a class="headerlink" href="#constraint" title="Link to this headi
299299
</div>
300300
</div>
301301
<div class="cell_output docutils container">
302-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2025-12-22 15:14:06 [INFO] checks license for COPT v8.0.2 20251201
303-
2025-12-22 15:14:06 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
304-
2025-12-22 15:14:06 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.13.11/x64/bin
305-
2025-12-22 15:14:06 [WARN] no license files in HOME folder: /home/runner/copt
306-
2025-12-22 15:14:06 [INFO] empty environment variable: COPT_LICENSE_DIR
307-
2025-12-22 15:14:06 [WARN] no license files in EV &#39;COPT_LICENSE_DIR&#39;:
302+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2025-12-24 11:48:05 [INFO] checks license for COPT v8.0.2 20251201
303+
2025-12-24 11:48:05 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
304+
2025-12-24 11:48:05 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.13.11/x64/bin
305+
2025-12-24 11:48:05 [WARN] no license files in HOME folder: /home/runner/copt
306+
2025-12-24 11:48:05 [INFO] empty environment variable: COPT_LICENSE_DIR
307+
2025-12-24 11:48:05 [WARN] no license files in EV &#39;COPT_LICENSE_DIR&#39;:
308308

309309
No license found. Starting COPT with size limitations for non-commercial use
310310
Please apply for a license from www.shanshu.ai/copt
@@ -379,7 +379,7 @@ <h2>Linear Constraint<a class="headerlink" href="#linear-constraint" title="Link
379379
</div>
380380
</div>
381381
<div class="cell_output docutils container">
382-
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7eff4ca5c4f0&gt;
382+
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7f17d0cec750&gt;
383383
</pre></div>
384384
</div>
385385
</div>
@@ -392,7 +392,7 @@ <h2>Linear Constraint<a class="headerlink" href="#linear-constraint" title="Link
392392
</div>
393393
</div>
394394
<div class="cell_output docutils container">
395-
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7eff4ca5ccd0&gt;
395+
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7f17d0cecbf0&gt;
396396
</pre></div>
397397
</div>
398398
</div>
@@ -406,7 +406,7 @@ <h2>Linear Constraint<a class="headerlink" href="#linear-constraint" title="Link
406406
</div>
407407
</div>
408408
<div class="cell_output docutils container">
409-
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7eff4ca5cd30&gt;
409+
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7f17d0cecc50&gt;
410410
</pre></div>
411411
</div>
412412
</div>

container.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@ <h2>Building a model with <code class="docutils literal notranslate"><span class
488488
RHS [1e+00, 1e+00]
489489
Iteration Objective NullspaceDim
490490
0 20.000001 0 0.00s
491-
100 5.8333336 50 0.00s
492-
200 3.3333335 100 0.00s
491+
100 5.8333336 50 0.01s
492+
200 3.3333335 100 0.01s
493493
300 2.3611112 150 0.01s
494494
360 2.0000001 180 0.01s
495495
Model status : Optimal

examples/optimal_control_rocket.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ <h2>Implementation<a class="headerlink" href="#implementation" title="Link to th
496496
Number of equality constraint Jacobian evaluations = 38
497497
Number of inequality constraint Jacobian evaluations = 0
498498
Number of Lagrangian Hessian evaluations = 37
499-
Total CPU secs in IPOPT (w/o function evaluations) = 0.354
499+
Total CPU secs in IPOPT (w/o function evaluations) = 0.352
500500
Total CPU secs in NLP function evaluations = 0.010
501501

502502
EXIT: Optimal Solution Found.

examples/optimal_power_flow.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ <h2>Implementation<a class="headerlink" href="#implementation" title="Link to th
578578
Number of equality constraint Jacobian evaluations = 19
579579
Number of inequality constraint Jacobian evaluations = 19
580580
Number of Lagrangian Hessian evaluations = 18
581-
Total CPU secs in IPOPT (w/o function evaluations) = 0.005
581+
Total CPU secs in IPOPT (w/o function evaluations) = 0.004
582582
Total CPU secs in NLP function evaluations = 0.000
583583

584584
EXIT: Optimal Solution Found.

expression.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ <h2>Efficient expression construction<a class="headerlink" href="#efficient-expr
356356
</div>
357357
</div>
358358
<div class="cell_output docutils container">
359-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>CPU times: user 712 μs, sys: 0 ns, total: 712 μs
360-
Wall time: 716 μs
359+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>CPU times: user 711 μs, sys: 0 ns, total: 711 μs
360+
Wall time: 714 μs
361361
</pre></div>
362362
</div>
363363
</div>
@@ -369,8 +369,8 @@ <h2>Efficient expression construction<a class="headerlink" href="#efficient-expr
369369
</div>
370370
</div>
371371
<div class="cell_output docutils container">
372-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>CPU times: user 14.5 ms, sys: 1.09 ms, total: 15.6 ms
373-
Wall time: 15.5 ms
372+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>CPU times: user 15.6 ms, sys: 0 ns, total: 15.6 ms
373+
Wall time: 15.4 ms
374374
</pre></div>
375375
</div>
376376
</div>

index.html

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -373,18 +373,7 @@ <h2>Short Example<a class="headerlink" href="#short-example" title="Link to this
373373
</section>
374374
<section id="citation">
375375
<h2>Citation<a class="headerlink" href="#citation" title="Link to this heading"></a></h2>
376-
<p>If you use PyOptInterface in your research, please consider citing <a class="reference external" href="https://arxiv.org/abs/2405.10130">the following paper</a>:</p>
377-
<div class="highlight-bibtex notranslate"><div class="highlight"><pre><span></span><span class="nc">@misc</span><span class="p">{</span><span class="nl">yang2024pyoptinterface</span><span class="p">,</span>
378-
<span class="w"> </span><span class="na">title</span><span class="p">=</span><span class="s">{PyOptInterface: Design and implementation of an efficient modeling language for mathematical optimization}</span><span class="p">,</span><span class="w"> </span>
379-
<span class="w"> </span><span class="na">author</span><span class="p">=</span><span class="s">{Yue Yang and Chenhui Lin and Luo Xu and Wenchuan Wu}</span><span class="p">,</span>
380-
<span class="w"> </span><span class="na">year</span><span class="p">=</span><span class="s">{2024}</span><span class="p">,</span>
381-
<span class="w"> </span><span class="na">eprint</span><span class="p">=</span><span class="s">{2405.10130}</span><span class="p">,</span>
382-
<span class="w"> </span><span class="na">archivePrefix</span><span class="p">=</span><span class="s">{arXiv}</span><span class="p">,</span>
383-
<span class="w"> </span><span class="na">primaryClass</span><span class="p">=</span><span class="s">{cs.MS}</span>
384-
<span class="p">}</span>
385-
</pre></div>
386-
</div>
387-
<p>If you use the nonlinear optimization feature of PyOptInterface, please consider citing <a class="reference external" href="https://ieeexplore.ieee.org/document/10721402">the following paper</a> as well:</p>
376+
<p>If you use PyOptInterface in your research, please consider citing <a class="reference external" href="https://ieeexplore.ieee.org/document/10721402">the following paper</a>:</p>
388377
<div class="highlight-bibtex notranslate"><div class="highlight"><pre><span></span><span class="nc">@article</span><span class="p">{</span><span class="nl">yang2024accelerating</span><span class="p">,</span>
389378
<span class="w"> </span><span class="na">title</span><span class="p">=</span><span class="s">{Accelerating Optimal Power Flow with Structure-aware Automatic Differentiation and Code Generation}</span><span class="p">,</span>
390379
<span class="w"> </span><span class="na">author</span><span class="p">=</span><span class="s">{Yang, Yue and Lin, Chenhui and Xu, Luo and Yang, Xiaodong and Wu, Wenchuan and Wang, Bin}</span><span class="p">,</span>

infeasibility.html

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,17 @@ <h1>Infeasibility Analysis<a class="headerlink" href="#infeasibility-analysis" t
309309
</div>
310310
</div>
311311
<div class="cell_output docutils container">
312-
<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
312+
<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 constraints2025-12-24 11:48:15 [INFO] checks license for COPT v8.0.2 20251201
313+
2025-12-24 11:48:15 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
314+
2025-12-24 11:48:15 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.13.11/x64/bin
315+
2025-12-24 11:48:15 [WARN] no license files in HOME folder: /home/runner/copt
316+
2025-12-24 11:48:15 [INFO] empty environment variable: COPT_LICENSE_DIR
317+
2025-12-24 11:48:15 [WARN] no license files in EV &#39;COPT_LICENSE_DIR&#39;:
318+
319+
No license found. Starting COPT with size limitations for non-commercial use
320+
Please apply for a license from www.shanshu.ai/copt
321+
322+
313323
Please apply for a license from www.shanshu.ai/copt
314324

315325
Model fingerprint: 43b22f9c
@@ -330,17 +340,6 @@ <h1>Infeasibility Analysis<a class="headerlink" href="#infeasibility-analysis" t
330340
Constraint 2 IIS: True
331341
</pre></div>
332342
</div>
333-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2025-12-22 15:14:15 [INFO] checks license for COPT v8.0.2 20251201
334-
2025-12-22 15:14:15 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
335-
2025-12-22 15:14:15 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.13.11/x64/bin
336-
2025-12-22 15:14:15 [WARN] no license files in HOME folder: /home/runner/copt
337-
2025-12-22 15:14:15 [INFO] empty environment variable: COPT_LICENSE_DIR
338-
2025-12-22 15:14:15 [WARN] no license files in EV &#39;COPT_LICENSE_DIR&#39;:
339-
340-
No license found. Starting COPT with size limitations for non-commercial use
341-
Please apply for a license from www.shanshu.ai/copt
342-
</pre></div>
343-
</div>
344343
</div>
345344
</div>
346345
<p>This code snippet creates an infeasible model with two constraints and finds the IIS of the model. Obviously, the constraints are contradictory because <code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">+</span> <span class="pre">2</span> <span class="pre">*</span> <span class="pre">y</span> <span class="pre">&lt;=</span> <span class="pre">1</span></code> and <code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">+</span> <span class="pre">y</span> <span class="pre">&gt;=</span> <span class="pre">5</span></code> cannot be satisfied at the same time when <code class="docutils literal notranslate"><span class="pre">x</span></code> and <code class="docutils literal notranslate"><span class="pre">y</span></code> are non-negative. The optimizer will detect that the model is infeasible and return the IIS, which is the set of constraints that cause the infeasibility. We can query whether a constraint is in the IIS by calling <code class="docutils literal notranslate"><span class="pre">get_constraint_attribute</span></code> with the <code class="docutils literal notranslate"><span class="pre">ConstraintAttribute.IIS</span></code> attribute.</p>

nonlinear.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ <h2>Nonlinear constraints and objectives<a class="headerlink" href="#nonlinear-c
499499
Number of equality constraint Jacobian evaluations = 0
500500
Number of inequality constraint Jacobian evaluations = 11
501501
Number of Lagrangian Hessian evaluations = 10
502-
Total CPU secs in IPOPT (w/o function evaluations) = 0.004
502+
Total CPU secs in IPOPT (w/o function evaluations) = 0.006
503503
Total CPU secs in NLP function evaluations = 0.000
504504

505505
EXIT: Optimal Solution Found.
@@ -596,9 +596,7 @@ <h2>Nonlinear constraints and objectives<a class="headerlink" href="#nonlinear-c
596596
6 5.4940990e-02 0.00e+00 4.51e-01 -1.7 9.29e-02 - 1.00e+00 1.00e+00f 1
597597
7 2.9144630e-02 0.00e+00 2.27e+00 -1.7 2.49e-01 - 1.00e+00 5.00e-01f 2
598598
8 9.8586451e-03 0.00e+00 1.15e+00 -1.7 1.10e-01 - 1.00e+00 1.00e+00f 1
599-
</pre></div>
600-
</div>
601-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 9 2.3237475e-03 0.00e+00 1.00e+00 -1.7 1.00e-01 - 1.00e+00 1.00e+00f 1
599+
9 2.3237475e-03 0.00e+00 1.00e+00 -1.7 1.00e-01 - 1.00e+00 1.00e+00f 1
602600
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
603601
10 2.3797236e-04 0.00e+00 2.19e-01 -1.7 5.09e-02 - 1.00e+00 1.00e+00f 1
604602
11 4.9267371e-06 0.00e+00 5.95e-02 -1.7 2.53e-02 - 1.00e+00 1.00e+00f 1
@@ -623,7 +621,7 @@ <h2>Nonlinear constraints and objectives<a class="headerlink" href="#nonlinear-c
623621
Number of equality constraint Jacobian evaluations = 0
624622
Number of inequality constraint Jacobian evaluations = 0
625623
Number of Lagrangian Hessian evaluations = 14
626-
Total CPU secs in IPOPT (w/o function evaluations) = 0.008
624+
Total CPU secs in IPOPT (w/o function evaluations) = 0.007
627625
Total CPU secs in NLP function evaluations = 0.000
628626

629627
EXIT: Optimal Solution Found.
@@ -702,12 +700,14 @@ <h2>Mixing nonlinear and linear/quadratic constraints together<a class="headerli
702700

703701
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
704702
0 3.5000000e+02 0.00e+00 0.00e+00 -1.0 0.00e+00 - 0.00e+00 0.00e+00 0
703+
1 3.5000000e+02 0.00e+00 0.00e+00 -1.7 0.00e+00 - 1.00e+00 1.00e+00 0
705704
</pre></div>
706705
</div>
707-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 1 3.5000000e+02 0.00e+00 0.00e+00 -1.7 0.00e+00 - 1.00e+00 1.00e+00 0
708-
2 3.5000000e+02 0.00e+00 0.00e+00 -3.8 0.00e+00 -2.0 1.00e+00 1.00e+00T 0
706+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 2 3.5000000e+02 0.00e+00 0.00e+00 -3.8 0.00e+00 -2.0 1.00e+00 1.00e+00T 0
709707
3 3.5000000e+02 0.00e+00 0.00e+00 -5.7 0.00e+00 0.2 1.00e+00 1.00e+00T 0
710-
4 3.5000000e+02 0.00e+00 0.00e+00 -8.6 0.00e+00 -0.2 1.00e+00 1.00e+00T 0
708+
</pre></div>
709+
</div>
710+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 4 3.5000000e+02 0.00e+00 0.00e+00 -8.6 0.00e+00 -0.2 1.00e+00 1.00e+00T 0
711711

712712
Number of Iterations....: 4
713713

@@ -726,7 +726,7 @@ <h2>Mixing nonlinear and linear/quadratic constraints together<a class="headerli
726726
Number of equality constraint Jacobian evaluations = 5
727727
Number of inequality constraint Jacobian evaluations = 0
728728
Number of Lagrangian Hessian evaluations = 4
729-
Total CPU secs in IPOPT (w/o function evaluations) = 0.025
729+
Total CPU secs in IPOPT (w/o function evaluations) = 0.028
730730
Total CPU secs in NLP function evaluations = 0.001
731731

732732
EXIT: Optimal Solution Found.

0 commit comments

Comments
 (0)