Skip to content

Instantly share code, notes, and snippets.

@molnarg
molnarg / angularjs-sandbox-escape.md
Last active August 3, 2017 08:46
An AngularJS Template Expression Sandbox Escape

An AngularJS Template Expression Sandbox Escape

Short Proof of Concept

<!doctype html>
<html>
@molnarg
molnarg / highs_sc_bug_repro_inline.py
Created May 9, 2026 08:16
HiGHS 1.12.0 SC variable bug repro: MIP claims optimality with infeasibility = SC lower bound
"""
Reproducer for HiGHS 1.12.0 semi-continuous variable bug.
Symptom
-------
When a MIP contains semi-continuous variables (integrality=2) and the LP
relaxation places one or more of them at their lower bound `lo` exactly,
HiGHS may return a "feasible / Optimal" solution that its OWN internal
feasibility check passes (`row viol. 0`), while a separate post-validation
rejects it with `infeasibility = X` where X equals the SC variable's `lo`