You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2025-12-22 15:14:15 [WARN] no license files in EV 'COPT_LICENSE_DIR':
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>
343
344
</div>
344
345
</div>
345
346
<p>This code snippet creates an infeasible model with two constraints and finds the IIS of the model. Obviously, the constraints are contradictory because <codeclass="docutils literal notranslate"><spanclass="pre">x</span><spanclass="pre">+</span><spanclass="pre">2</span><spanclass="pre">*</span><spanclass="pre">y</span><spanclass="pre"><=</span><spanclass="pre">1</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">x</span><spanclass="pre">+</span><spanclass="pre">y</span><spanclass="pre">>=</span><spanclass="pre">5</span></code> cannot be satisfied at the same time when <codeclass="docutils literal notranslate"><spanclass="pre">x</span></code> and <codeclass="docutils literal notranslate"><spanclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">get_constraint_attribute</span></code> with the <codeclass="docutils literal notranslate"><spanclass="pre">ConstraintAttribute.IIS</span></code> attribute.</p>
Copy file name to clipboardExpand all lines: numpy.html
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -363,9 +363,9 @@ <h2>N-queen problem<a class="headerlink" href="#n-queen-problem" title="Link to
363
363
Nodes | B&B Tree | Objective Bounds | Dynamic Constraints | Work
364
364
Src Proc. InQueue | Leaves Expl. | BestBound BestSol Gap | Cuts InLp Confl. | LpIters Time
365
365
366
+
Termination status: TerminationStatusCode.OPTIMAL
366
367
J 0 0 0 100.00% -inf 0 Large 0 0 0 0 0.0s
367
368
1 0 1 100.00% 0 0 0.00% 0 0 0 0 0.0s
368
-
Termination status: TerminationStatusCode.OPTIMAL
369
369
370
370
Solving report
371
371
Status Optimal
@@ -435,9 +435,7 @@ <h2>Built-in functions to add variables and constraints as Numpy <code class="do
435
435
</div>
436
436
<divclass="cell_output docutils container">
437
437
<divclass="output stream highlight-myst-ansi notranslate"><divclass="highlight"><pre><span></span>Running HiGHS 1.12.0 (git hash: 755a8e0): Copyright (c) 2025 HiGHS under MIT licence terms
438
-
</pre></div>
439
-
</div>
440
-
<divclass="output stream highlight-myst-ansi notranslate"><divclass="highlight"><pre><span></span>Hessian has dimension 8 but no nonzeros, so is ignored
438
+
Hessian has dimension 8 but no nonzeros, so is ignored
441
439
LP has 16 rows; 8 cols; 16 nonzeros
442
440
Coefficient ranges:
443
441
Matrix [1e+00, 1e+00]
@@ -449,7 +447,9 @@ <h2>Built-in functions to add variables and constraints as Numpy <code class="do
Solving the original LP from the solution after postsolve
450
+
</pre></div>
451
+
</div>
452
+
<divclass="output stream highlight-myst-ansi notranslate"><divclass="highlight"><pre><span></span>Solving the original LP from the solution after postsolve
0 commit comments