Skip to content

Commit 98b6884

Browse files
committed
Deploying to gh-pages from @ 3fcafdf 🚀
1 parent 1789824 commit 98b6884

12 files changed

+56
-50
lines changed

constraint.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,12 @@ <h1>Constraint<a class="headerlink" href="#constraint" title="Link to this headi
297297
</div>
298298
</div>
299299
<div class="cell_output docutils container">
300-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2025-12-11 12:53:54 [INFO] checks license for COPT v8.0.2 20251201
301-
2025-12-11 12:53:54 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
302-
2025-12-11 12:53:54 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.12.12/x64/bin
303-
2025-12-11 12:53:54 [WARN] no license files in HOME folder: /home/runner/copt
304-
2025-12-11 12:53:54 [INFO] empty environment variable: COPT_LICENSE_DIR
305-
2025-12-11 12:53:54 [WARN] no license files in EV &#39;COPT_LICENSE_DIR&#39;:
300+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2025-12-11 13:01:34 [INFO] checks license for COPT v8.0.2 20251201
301+
2025-12-11 13:01:34 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
302+
2025-12-11 13:01:34 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.13.11/x64/bin
303+
2025-12-11 13:01:34 [WARN] no license files in HOME folder: /home/runner/copt
304+
2025-12-11 13:01:34 [INFO] empty environment variable: COPT_LICENSE_DIR
305+
2025-12-11 13:01:34 [WARN] no license files in EV &#39;COPT_LICENSE_DIR&#39;:
306306

307307
No license found. Starting COPT with size limitations for non-commercial use
308308
Please apply for a license from www.shanshu.ai/copt
@@ -377,7 +377,7 @@ <h2>Linear Constraint<a class="headerlink" href="#linear-constraint" title="Link
377377
</div>
378378
</div>
379379
<div class="cell_output docutils container">
380-
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7fc6105733f0&gt;
380+
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7f84d0eec4b0&gt;
381381
</pre></div>
382382
</div>
383383
</div>
@@ -390,7 +390,7 @@ <h2>Linear Constraint<a class="headerlink" href="#linear-constraint" title="Link
390390
</div>
391391
</div>
392392
<div class="cell_output docutils container">
393-
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7fc6105738f0&gt;
393+
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7f84d0eecc90&gt;
394394
</pre></div>
395395
</div>
396396
</div>
@@ -404,7 +404,7 @@ <h2>Linear Constraint<a class="headerlink" href="#linear-constraint" title="Link
404404
</div>
405405
</div>
406406
<div class="cell_output docutils container">
407-
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7fc610573930&gt;
407+
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;pyoptinterface._src.core_ext.ConstraintIndex at 0x7f84d0eeccf0&gt;
408408
</pre></div>
409409
</div>
410410
</div>

container.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ <h2>Building a model with <code class="docutils literal notranslate"><span class
486486
RHS [1e+00, 1e+00]
487487
Iteration Objective NullspaceDim
488488
0 20.000001 0 0.00s
489-
100 5.8333336 50 0.00s
489+
100 5.8333336 50 0.01s
490490
200 3.3333335 100 0.01s
491491
300 2.3611112 150 0.01s
492492
360 2.0000001 180 0.01s

examples/economic_dispatch.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,6 @@ <h2>Change the load and solve the model again<a class="headerlink" href="#change
486486
100 14091.031 3 0.01s
487487
169 13740.237 10 0.01s
488488
Model status : Optimal
489-
Simplex iterations: 86
490-
QP ASM iterations: 169
491-
Objective value : 1.3740213571e+04
492-
P-D objective error : 1.6699127419e-06
493-
HiGHS run time : 0.01
494489
TerminationStatusCode.OPTIMAL
495490
Objective value: 13740.213571429404
496491
[[100. 100. 100. 100. 100.
@@ -510,6 +505,13 @@ <h2>Change the load and solve the model again<a class="headerlink" href="#change
510505
52.85719184 53.28576347 53.7143351 54.14290673]]
511506
</pre></div>
512507
</div>
508+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Simplex iterations: 86
509+
QP ASM iterations: 169
510+
Objective value : 1.3740213571e+04
511+
P-D objective error : 1.6699127419e-06
512+
HiGHS run time : 0.01
513+
</pre></div>
514+
</div>
513515
</div>
514516
</div>
515517
</section>

examples/optimal_control_rocket.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ <h2>Implementation<a class="headerlink" href="#implementation" title="Link to th
498498
Total CPU secs in NLP function evaluation
499499
</pre></div>
500500
</div>
501-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>s = 0.011
501+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>s = 0.010
502502

503503
EXIT: Optimal Solution Found.
504504
</pre></div>

examples/optimal_power_flow.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,8 @@ <h2>Implementation<a class="headerlink" href="#implementation" title="Link to th
576576
Number of equality constraint Jacobian evaluations = 19
577577
Number of inequality constraint Jacobian evaluations = 19
578578
Number of Lagrangian Hessian evaluations = 18
579-
Total CPU secs in IPOPT (w/o function evaluations) = 0.008
580-
Total CPU secs in NLP function evaluations = 0.001
579+
Total CPU secs in IPOPT (w/o function evaluations) = 0.006
580+
Total CPU secs in NLP function evaluations = 0.000
581581

582582
EXIT: Optimal Solution Found.
583583
</pre></div>

expression.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ <h2>Efficient expression construction<a class="headerlink" href="#efficient-expr
354354
</div>
355355
</div>
356356
<div class="cell_output docutils container">
357-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>CPU times: user 699 μs, sys: 0 ns, total: 699 μs
358-
Wall time: 703 μs
357+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>CPU times: user 751 μs, sys: 0 ns, total: 751 μs
358+
Wall time: 753 μs
359359
</pre></div>
360360
</div>
361361
</div>
@@ -367,8 +367,8 @@ <h2>Efficient expression construction<a class="headerlink" href="#efficient-expr
367367
</div>
368368
</div>
369369
<div class="cell_output docutils container">
370-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>CPU times: user 15.5 ms, sys: 0 ns, total: 15.5 ms
371-
Wall time: 15.3 ms
370+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>CPU times: user 15.7 ms, sys: 0 ns, total: 15.7 ms
371+
Wall time: 15.4 ms
372372
</pre></div>
373373
</div>
374374
</div>

infeasibility.html

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -307,17 +307,7 @@ <h1>Infeasibility Analysis<a class="headerlink" href="#infeasibility-analysis" t
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>No license found. LP size is limited to 10000 variables and 10000 constraints2025-12-11 12:54:04 [INFO] checks license for COPT v8.0.2 20251201
311-
2025-12-11 12:54:04 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
312-
2025-12-11 12:54:04 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.12.12/x64/bin
313-
2025-12-11 12:54:04 [WARN] no license files in HOME folder: /home/runner/copt
314-
2025-12-11 12:54:04 [INFO] empty environment variable: COPT_LICENSE_DIR
315-
2025-12-11 12:54:04 [WARN] no license files in EV &#39;COPT_LICENSE_DIR&#39;:
316-
317-
No license found. Starting COPT with size limitations for non-commercial use
318-
Please apply for a license from www.shanshu.ai/copt
319-
320-
310+
<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
321311
Please apply for a license from www.shanshu.ai/copt
322312

323313
Model fingerprint: 43b22f9c
@@ -338,6 +328,17 @@ <h1>Infeasibility Analysis<a class="headerlink" href="#infeasibility-analysis" t
338328
Constraint 2 IIS: True
339329
</pre></div>
340330
</div>
331+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2025-12-11 13:01:42 [INFO] checks license for COPT v8.0.2 20251201
332+
2025-12-11 13:01:42 [WARN] no license files in current working folder: /home/runner/work/PyOptInterface/PyOptInterface/docs/source
333+
2025-12-11 13:01:42 [WARN] no license files in binary folder: /opt/hostedtoolcache/Python/3.13.11/x64/bin
334+
2025-12-11 13:01:42 [WARN] no license files in HOME folder: /home/runner/copt
335+
2025-12-11 13:01:42 [INFO] empty environment variable: COPT_LICENSE_DIR
336+
2025-12-11 13:01:42 [WARN] no license files in EV &#39;COPT_LICENSE_DIR&#39;:
337+
338+
No license found. Starting COPT with size limitations for non-commercial use
339+
Please apply for a license from www.shanshu.ai/copt
340+
</pre></div>
341+
</div>
341342
</div>
342343
</div>
343344
<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>

model.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,10 @@ <h2>Inspect and customize the model<a class="headerlink" href="#inspect-and-cust
414414
Bound [1e+00, 1e+00]
415415
RHS [1e+00, 1e+00]
416416
Iteration Objective NullspaceDim
417-
Objective value: 0.49999999999999994
418417
0 1 0 0.00s
419418
2 0.50000002 1 0.00s
420419
Model status : Optimal
420+
Objective value: 0.49999999999999994
421421
QP ASM iterations: 2
422422
Objective value : 5.0000000000e-01
423423
P-D objective error : 2.4999999473e-08

nonlinear.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,9 @@ <h2>Nonlinear constraints and objectives<a class="headerlink" href="#nonlinear-c
477477
7 5.4427137e+00 0.00e+00 3.36e-03 -2.5 7.95e-02 - 9.84e-01 1.00e+00f 1
478478
8 5.4366982e+00 0.00e+00 4.18e-06 -3.8 7.75e-03 - 1.00e+00 1.00e+00h 1
479479
9 5.4365655e+00 0.00e+00 1.91e-08 -5.7 1.81e-04 - 1.00e+00 1.00e+00h 1
480-
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
480+
</pre></div>
481+
</div>
482+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
481483
10 5.4365636e+00 0.00e+00 3.26e-12 -8.6 2.72e-06 - 1.00e+00 1.00e+00h 1
482484

483485
Number of Iterations....: 10
@@ -497,7 +499,7 @@ <h2>Nonlinear constraints and objectives<a class="headerlink" href="#nonlinear-c
497499
Number of equality constraint Jacobian evaluations = 0
498500
Number of inequality constraint Jacobian evaluations = 11
499501
Number of Lagrangian Hessian evaluations = 10
500-
Total CPU secs in IPOPT (w/o function evaluations) = 0.002
502+
Total CPU secs in IPOPT (w/o function evaluations) = 0.005
501503
Total CPU secs in NLP function evaluations = 0.000
502504

503505
EXIT: Optimal Solution Found.
@@ -619,8 +621,11 @@ <h2>Nonlinear constraints and objectives<a class="headerlink" href="#nonlinear-c
619621
Number of equality constraint Jacobian evaluations = 0
620622
Number of inequality constraint Jacobian evaluations = 0
621623
Number of Lagrangian Hessian evaluations = 14
622-
Total CPU secs in IPOPT (w/o function evaluations) = 0.005
623-
Total CPU secs in NLP function evaluations = 0.000
624+
Total CPU secs in IPOPT (w/o function evaluations) = 0.003
625+
Total CPU secs in NLP function evaluations
626+
</pre></div>
627+
</div>
628+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> = 0.000
624629

625630
EXIT: Optimal Solution Found.
626631
</pre></div>
@@ -704,9 +709,8 @@ <h2>Mixing nonlinear and linear/quadratic constraints together<a class="headerli
704709
<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
705710
3 3.5000000e+02 0.00e+00 0.00e+00 -5.7 0.00e+00 0.2 1.00e+00 1.00e+00T 0
706711
4 3.5000000e+02 0.00e+00 0.00e+00 -8.6 0.00e+00 -0.2 1.00e+00 1.00e+00T 0
707-
</pre></div>
708-
</div>
709-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Number of Iterations....: 4
712+
713+
Number of Iterations....: 4
710714

711715
(scaled) (unscaled)
712716
Objective...............: 3.5000000000000318e+02 3.5000000000000318e+02

numpy.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,10 @@ <h2>N-queen problem<a class="headerlink" href="#n-queen-problem" title="Link to
352352
42 rows
353353
64 cols (64 binary, 0 integer, 0 implied int., 0 continuous, 0 domain fixed)
354354
270 nonzeros
355-
356-
Src: B =&gt; Branching; C =&gt; Central rounding; F =&gt; Feasibility pump; H =&gt; Heuristic;
355+
Termination status: TerminationStatusCode.OPTIMAL
356+
</pre></div>
357+
</div>
358+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Src: B =&gt; Branching; C =&gt; Central rounding; F =&gt; Feasibility pump; H =&gt; Heuristic;
357359
I =&gt; Shifting; J =&gt; Feasibility jump; L =&gt; Sub-MIP; P =&gt; Empty MIP; R =&gt; Randomized rounding;
358360
S =&gt; Solve LP; T =&gt; Evaluate node; U =&gt; Unbounded; X =&gt; User solution; Y =&gt; HiGHS solution;
359361
Z =&gt; ZI Round; l =&gt; Trivial lower; p =&gt; Trivial point; u =&gt; Trivial upper; z =&gt; Trivial zero
@@ -362,7 +364,6 @@ <h2>N-queen problem<a class="headerlink" href="#n-queen-problem" title="Link to
362364
Src Proc. InQueue | Leaves Expl. | BestBound BestSol Gap | Cuts InLp Confl. | LpIters Time
363365

364366
J 0 0 0 100.00% -inf 0 Large 0 0 0 0 0.0s
365-
Termination status: TerminationStatusCode.OPTIMAL
366367
1 0 1 100.00% 0 0 0.00% 0 0 0 0 0.0s
367368

368369
Solving report
@@ -376,7 +377,7 @@ <h2>N-queen problem<a class="headerlink" href="#n-queen-problem" title="Link to
376377
0 (bound viol.)
377378
0 (int. viol.)
378379
0 (row viol.)
379-
Timing 0.02
380+
Timing 0.01
380381
Max sub-MIP depth 0
381382
Nodes 1
382383
Repair LPs 0

0 commit comments

Comments
 (0)