Skip to content

Add an opaque cone type - #143

Merged
dance858 merged 2 commits into
mainfrom
PSLP-opaque
Nov 16, 2026
Merged

dance858 merged 2 commits into
mainfrom
PSLP-opaque

Conversation

@dance858

@dance858 dance858 commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Adds PSLP_CONE_OPAQUE, a cone block type for sets the presolver does not model (a PSD cone, a power cone, the dual exponential cone).

Guarantee (stated in PSLP_API.h): an opaque block comes back in the reduced problem with the same dim and the same order of its rows, and no information is derived from its rows. The presolver only changes the variables the rows are written in (it fixes a variable, substitutes one out or merges parallel columns), so the entries and rhs of the rows may change, but s = A_B x - r_B has the same value at a reduced point as at the postsolved point. Postsolve returns the duals given for the rows of the block unchanged.

Why the change is small: the LP reductions already skip cone rows by the row tag R_TAG_CONE, not by cone type, and cone rows lock their columns in both directions. The change is the new type (any dim >= 1), an assert in cones_shrink that an opaque block never loses a row, and the documented guarantee. PSLP_CONE_EXP stays a separate type: it is passed through today, but without this promise, so reductions for exponential cones can still be added.

Tests (tests/test_cones.h):

  • validation: dimension 1 accepted, dimension 0 refused, an opaque block between SOC blocks;
  • test_cones_opaque_untouched: a block whose rows would trigger LP reductions as linear rows (a singleton row, a row parallel to a linear row, a row that becomes empty, columns that appear in the block only); the block keeps its five rows, and an arbitrary reduced point postsolves to the same block slack and the same block duals;
  • test_cones_opaque_constant_block: a constant opaque block that would be infeasible as an SOC is not judged and stays, while the SOC block ahead of it is removed.

🤖 Generated with Claude Code

dance858 and others added 2 commits November 16, 2026 07:06
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@dance858
dance858 merged commit 1107426 into main Nov 16, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant