Skip to content

Releases

popso v0.12.1

Choose a tag to compare

@gozwei gozwei released this 23 Nov 23:21

Four more defaults for the MILP search and one fix. Side by side with v0.12.0 (120 s, 4 threads): 193 of 480
runs solved against 185 and 4% less time on the MIPLIB 2017 benchmark set, 183 of 189 against 180 and 9% less
on the 63-instance development set. Over three seeds the benchmark set is at 94, 95 and 96 solved (49.0, 48.4,
47.6 s). No wrong answer in any run.

  • Fixed: a solution lost at the time limit on very large models. When the solution of the presolved
    problem, mapped back, misses a row of the original model by slightly more than the tolerance (substitutions
    amplify a 1e-7 slack to 2e-6), the solver repairs it with an LP over the continuous columns. That LP ran on
    the original model with whatever time was left; at a time limit on a model of 800,000 columns it had one
    second, failed, and the run ended without any solution although the search held one (supportcase12: 2-4 of
    12 seeds; since v0.11 at least). The repair now runs in the presolved problem first, which is small, and may
    take up to a twentieth of the time limit beyond it (2-10 s) when the alternative is no solution.
  • Heuristics between root cut rounds. After each round's LP the root rounds the point, and idle threads
    run one task each of a dive on a copy of the LP, RENS, or RINS once a solution exists; a kind that keeps
    failing waits longer each time, and the root never waits for a task. The heuristics after the loop are
    skipped where the loop already did their work. Good solutions arrive during the cut loop instead of after
    it. MIPLIB 2017 benchmark set, two pairs of seeds: time ratio 0.98 and 0.99 with 3 and 1 more runs solved;
    development set 0.97. Not in deterministic mode. MILP_CUTLOOP_HEUR=0 switches it off.
  • Flat root LPs. On a model whose root bound does not move in the cut rounds and whose first LP point is
    very fractional (at least 15% of the integer columns), the root now makes degenerate pivots inside the LP's
    optimal face that push 0/1 columns toward their rounding, and keeps the cuts that are binding afterwards
    instead of removing every cut of a loop that did not move the bound. The LP value is unchanged; the vertex
    is far less fractional and branching has something to decide on (CMS750_4: 1391 fractional columns -> under
    100; 60-113 s and 34-126k nodes -> 3-6 s and 45-277 nodes at 4 threads). The first call is a short trial
    and the rule stops when it does not pay; on the benchmark set it acts on this one instance and costs under a
    second elsewhere. MILP_DEGEN_MOVES=0 MILP_FLAT_CUTS=0 switch it off.
  • Presolve: integer columns with a common divisor, and two repairs. An integer column that an equation
    shows to be a multiple of g (plus an offset), such as X = 10 (a - b), is replaced by X = g X' + r; a one-of
    group that encodes X by its value then loses the members that are no multiple of g. Probing no longer lifts
    a row that its own fixings in the same pass made redundant (such rows stayed alive with entries of other
    binaries), and of two complementary binaries the one that is a member of a packing or partitioning row is
    the one kept. Models that multiply two integers through value encodings shrink most (traininstance6: 2804 x
    1172 -> 534 x 272 after presolve, unsolved in 120 s -> 10 s at 4 threads; rd-rplusc-21 loses 40% of its
    rows); the benchmark set as a whole is unchanged in time. MILP_INT_DIV=0, MILP_LIFT_LIVE=0 and
    MILP_KEEP_MEMBERS=0 switch them off.
  • Slow root LPs. When a root cut round's re-solve would cost more than the whole LP work before the first
    round (and at least a few seconds), the round is discarded and the cut loop ends; root strong branching ends
    after the first probe that learns nothing when a single child costs half a second or more. Both are measured
    on the simplex work clock, so they are reproducible. Ordinary roots never reach the thresholds; on large
    models the root phase gets shorter (supportcase22 95 -> 34 s, square47 121 -> 99 s). MIPLIB 2017 benchmark
    set, two pairs of seeds: solved 173 -> 180 and 175 -> 178 of 480 runs, time ratio 0.97 and 0.98.
    MILP_SLOW_ROOT=0 switches it off.

popso v0.12.0

Choose a tag to compare

@gozwei gozwei released this 21 Nov 02:32

Performance. On the MIPLIB 2017 benchmark set (240 instances, 120 s, 4 threads) this version solves 95, 94 and
95 instances over three seeds at a shifted geometric mean of 50.8, 50.1 and 49.1 s (v0.11.0: 84, 85, 88 at 56.7,
55.4, 54.6 s); side by side with v0.11.1 on two further seeds it solves 186 of 480 runs against 171 and takes 9%
less time, on the 63-instance development set 20% less (177 of 189 against 173). No wrong answer in any run.

  • First solutions. The conflict search (an LP-free depth-first search that learns clauses from dead ends) runs
    by default on pure-integer models; it finds a first solution on models where the root LP takes minutes
    (rail02 at 36 s, s100 at 7 s on an M4 Pro, 4 threads).
  • Steepest-edge weights travel with a node's stored basis by default, so a node taken from the queue does not
    start from recomputed weights.
  • Memory. The barrier's setup no longer allocates the factor of a linear-system form it only analyzes for a
    comparison (neos-5104907-jarama: peak 11.0 -> 3.0 GB under an 8 GB limit). Every LP copy keeps two matrix
    copies where it kept four, the root LP is moved instead of copied, the original model's matrix is released during the
    search of a large model, and the propagators of all threads share one row copy (square47: peak 6.3 -> 3.7 GB).
  • Time limit. The LU factorization inside the crossover checks the limit at every step of a large kernel
    (highschool1-aigio returned 140-160 s past a 600 s limit, now 6 s). The open nodes of a long search are freed in
    parallel, and not at all by the command-line program once its limit has passed (7-8 s late after a 600 s run of
    a small model with millions of nodes); node cut separation and the barrier's normal equations check the limit.
  • Cut selection prefers short cuts. A cut longer than 8 times the model's average row length competes with
    its score discounted by the square root of the excess and is dropped when too weak for its length: always for
    the tableau families (Gomory, tableau MIR, zero-half), for the other families in the root loop only once the
    bound has stopped moving, and in node rounds. Long cut rows stay in the tree's LPs and make every basis
    factorization denser (after the root, a fresh factor was 2-30x the first one's on a third of the tree
    instances). MIPLIB 2017 benchmark set (240, 120 s, 4 threads, two seeds): solved 172 -> 183 of 480 runs, time
    ratio 0.96; on the 63-instance development set over three seeds 175 -> 181 of 189, ratio 0.92 (unitcal_7 116
    -> 44 s, swath3 limit -> 45 s). MILP_CUT_DENSE=0 restores the old selection.
  • Fixed: a round-off "equivalence" from probing. A continuous column that both probes of a binary leave at
    the same value up to round-off was substituted as y = c + 3e-11 x, which left a coefficient of that size in a
    row. The solver's check of the postsolved point caught the resulting wrong point and solved again without
    presolve, so answers were right, at the cost of a second solve (since v0.10.0; found by the randomized
    presolve tests at 12,000 cases).
  • Presolve propagates over one-of groups. Where a row says that exactly (or at most) one of a set of
    binaries is 1, another row's activity over that set is the chosen member's coefficient, not the sum: a start
    column S = sum t x_t gets its window, and a bound on S removes the options outside it. Integer cost columns are
    then tested at their cheapest value and move up by one while the propagation proves it infeasible.
    Time-indexed scheduling models gain most (30n20b8: both resource levels 0 -> 2 in presolve, the first LP
    already gives the optimal value 302, 107 s -> 4 s at 4 threads); over the development set the rest is
    unchanged. MILP_GROUP_PROP=0 switches it off.
  • Probing uses the idle threads. Presolve probes up to four candidates side by side from the same bounds and
    applies their results in candidate order, so the reductions depend on the batch size, not on timing (probing
    time ex10 3.1 -> 1.6 s, neos8 1.7 -> 0.7 s, mzzv11 2.3 -> 1.1 s at 4 threads; supportcase7 64 -> 41 s end to
    end). One thread probes as before. MILP_PROBE_PAR=0 switches it off.
  • Faster with the same search: three changes in the dual simplex iteration (about 2% per node), node
    propagation skips rows and learned conflicts it already found idle (20-48% less propagation time where it is
    heavy), sparse triangular solves give up a too-large symbolic search sooner on very large bases, and the clique
    extension in presolve does its counting once (square47: 10.9 -> 2.0 s over a run). The end of a dual simplex
    solve computes the duals once instead of twice, path aggregation for MIR cuts reads packed candidate rows
    (CMS750_4: 15% less time), and models with very cheap nodes do less fixed work per node (2-11% less time per
    node on mas74, mas76, pk1, markshare_4_0).
  • Threads. Workers no longer wait on the lock of the shared conflict log at every node (5-8% of worker
    time on models with very cheap nodes at 4 threads).
  • Barrier. An LP whose primal residual stops improving under the regularized normal equations is refined
    against the unregularized system, and the choice between the two linear-system forms counts the cost of the
    solves as well as of the factorization (supportcase19's root LP no longer stalls).

popso v0.11.1

Choose a tag to compare

@gozwei gozwei released this 15 Nov 19:45

A correctness fix; nothing else changes.

  • Wrong optimum after two restarts. When the search restarted, found nothing better than its incumbent, and
    restarted again, the cutoff of the last search was taken from the incumbent's image under the previous
    presolve, which a dual reduction can move below the incumbent's objective and below the optimum. The last
    root was then cut off and the incumbent was reported as optimal. Seen on neos-3083819-nubu (x86,
    --deterministic --seed 76, 4 threads): 6313945 reported, the optimum is 6307996. The incumbent's own
    objective is now carried through every restart. The one-restart case was fixed in v0.6.3; all versions from
    v0.7.0 to v0.11.0 have the two-restart case. It was rare: one run in several hundred of that instance, none
    seen on another instance.

popso v0.11.0

Choose a tag to compare

@gozwei gozwei released this 13 Nov 13:07

A release of fixes and groundwork for the MILP search; the search itself is unchanged apart from what is listed.

  • Time limit. Three places ran past it on large models:
    • the barrier's factorization lost its stop flag and deadline when the symbolic analysis replaced the factor
      (highschool1-aigio: 7 s past a 40 s limit); the dense kernel now also checks by work done;
    • the crossover's LU factorizations had neither a stop flag nor a deadline;
    • symmetry detection scanned all cells from the start at every level of its first path, which no budget
      counted (supportcase12 without presolve, 800,000 columns: 26 s, now 0.85 s with the same result), and its
      time cap could exceed the time left.
  • Memory limit. The root heuristics run as many tasks at a time as the memory limit leaves room for (each a
    copy of the root LP). neos-3402454-bohle and gfd-schedulen180f7d50m30k18 passed 10 GB with four tasks at once
    under an 8 GB limit; they now stay inside it.
  • Domain propagation is faster with the same search: a row that cannot tighten any bound skips the tightening
    pass, the data for conflict analysis is computed at a row's first tightening instead of every visit, and finite
    bounds take a short path in the activity sums. On instances with dense knapsack rows the tree runs 20-27% faster
    (mas74 81 -> 59 s, gen-ip002 91 -> 73 s on an M4 Pro, 4 threads).
  • Deterministic mode: a work clock. The dual simplex counts its work (about one unit per nanosecond, measured
    on 21 models), sub-MIPs take a work budget, and the root heuristics of --deterministic use the same caps as
    the default mode, expressed in work instead of LP iterations times model size. Results stay bit-identical from
    run to run.
  • Benchmarks. The full MIPLIB 2017 benchmark set (240 instances, 120 s, 4 threads) with seeds 0, 1, 2: 84, 85
    and 88 solved (HiGHS 74, SCIP 65), no wrong answer; BENCHMARKS.md has the per-instance table, now generated by
    tools/bench_report.py.
  • Opt-in switches for experiments, off by default (no measurable gain on the 63-instance set yet):
    MILP_ROOT_LNS_ASYNC=4 (the root's closing LNS rounds run beside the tree), and for deterministic mode
    MILP_DET_HEUR_SYNC=1, MILP_DET_CUT_SYNC=1 (the background heuristics' solutions enter before the root
    heuristics and at every cut round), MILP_DET_LNS_GAP_SCALE=1, MILP_DET_EARLY_LNS=5e9 (mutation sub-MIPs
    during the root on the work clock).

popso v0.10.2

Choose a tag to compare

@gozwei gozwei released this 12 Nov 22:41
  • Nonconvex models: a first-solution heuristic before the search ("fix-and-solve"). The columns of a vertex cover
    of the products' graph are fixed at a point's values, which leaves a model without nonconvex terms; its solution
    is a solution of the model, and the solve repeats with another cover while the objective improves. Where the
    fixed model is infeasible, the two sides alternate while minimizing the violation of the rows (slack columns),
    from up to four starting points. A fifth of the time limit at most; MILP_SPATIAL_FIX=0 turns it off. On
    QPLIB's 261 nonconvex instances (120 s) popso now returns a solution on 135 (v0.10.1: 111); the number proven
    optimal is unchanged (23).
  • Nonconvex models, opt-in: MILP_SPATIAL_OBBT=1 tightens the factors' bounds over the relaxation before the
    search (each factor minimized and maximized, with the objective cutoff of the solution in hand). Off by default:
    no gain on QPLIB's nonconvex set.

popso v0.10.1

Choose a tag to compare

@gozwei gozwei released this 12 Nov 18:38
  • Fix (wrong answer in v0.10.0): in spatial branch-and-bound a product with an integer factor was judged at
    the factor's LP value. A binary at 1e-8 (integral within the tolerance) times an unbounded factor at 5e8 then
    counted as a product of about 5, and such a point could be returned as a solution although no point with the
    binary at 0 satisfies the row (found by the fuzz test: an incumbent of 2.9e17 on a model whose optimum is 63).
    Integer factors now count at their rounded values, in the search and in the final check of the solution.
  • Nonconvex models whose products all have a binary factor once the factors' implied bounds are known (bounds from
    the linear rows, not only the columns' own) are linearized exactly and solved as MILPs. A general integer factor
    with a range of at most 255 counts through its binary expansion (x = l + sum c_k b_k, so
    z x = l z + sum c_k z b_k). MILP_SPATIAL_LINEARIZE=0 turns it off.

popso v0.10.0

Choose a tag to compare

@gozwei gozwei released this 12 Nov 13:14
  • Nonconvex quadratic models are solved by spatial branch-and-bound instead of ending with the status
    NONCONVEX. Every product x_i x_j of a quadratic row that is not convex, and of the objective if that is
    not convex, becomes a column with its McCormick rows over the factors' bounds (a square: its secant and
    tangents); convex rows and a convex objective stay as they are (outer approximation). At a point that
    satisfies everything else, the search adds the McCormick rows of the node's own bounds to that node's LP and
    branches on a factor of the most violated product, continuous columns included, until every product holds to
    1e-6. Product bounds follow the factors' bounds at every node, and factor bounds follow the products'.
    • Factors without finite bounds get them from the linear rows, from the square terms of the quadratic rows and
      from the convex part of the model (the column minimized and maximized there) where possible; otherwise a
      product has only the McCormick rows its finite bounds allow, and the search branches until the domain is
      bounded. A model that is itself unbounded may then run to the time limit without a verdict.
    • The solution is checked on the model as given (products recomputed from the factors); a point that violates a
      row by more than 1.5e-6 relative is not returned.
    • NONCONVEX remains for nonconvex models with logical constraints (indicators, SOS, semi-continuous columns)
      and with MILP_SPATIAL=0.
    • This is a first version with plain McCormick relaxations: exact, and checked against SCIP on random models
      (benchmarks/tools/nc_fuzz.py), but slow on dense nonconvex QPs. On QPLIB's 261 nonconvex instances with continuous or general integer
      variables it proves 22 optimal in 120 s (SCIP: 30); see BENCHMARKS.
  • Benchmark harness: benchmarks/tools/qplib.py --nonconvex converts QPLIB's 261 nonconvex instances with
    continuous or general integer variables (benchmarks/sets/qplib_nonconvex.txt); the reference wrapper takes
    the gap and SCIP's feasibility tolerance from POPSO_REF_GAP / POPSO_REF_SCIP_FEASTOL for comparison runs
    under popso's own settings.

popso v0.9.0

Choose a tag to compare

@gozwei gozwei released this 12 Nov 03:58
  • Mixed-integer models with quadratic constraints get a light presolve before the convexity check and the cone
    detection. Cone members that are only copies of other columns (a continuous column whose one linear row is an
    equality with one other column, as conic benchmark format conversions define every member) are replaced by
    those columns in the quadratic rows (pure scalings only, so a cone stays a cone); and a constraint sum q x^2 <= c t whose x are
    switched off by one binary y (x <= u y, x >= 0) becomes the rotated cone sum q x^2 <= c t y (the
    perspective reformulation: the same integer points, a tighter relaxation; fixed columns in such a row's
    quadratic terms are folded first). The model keeps its columns and rows, and the solution is checked against
    the model as given, with a solve of the model as given if the check fails. MILP_QUAD_PRESOLVE=0 turns it off.
    Bounds of the columns in quadratic rows can also be tightened from the linear rows
    (MILP_QUAD_PRESOLVE_BOUNDS=1; off by default: no gain on CBLIB overall).
  • Rotated cones switched by a binary (x^2 <= c u z, z binary) are enforced as implications (z = 0 fixes
    x = 0; an integral point that violates one is branched on z) where no row with a big-M says so: tangent
    cuts reach x = 0 only in the limit there. MILP_OA_CONE_IMPL=0 turns it off.
  • An integral node point that violates the quadratic constraints after a round of tangent cuts has its continuous
    part solved by the conic interior-point method with the integers fixed: a feasible point becomes an incumbent
    candidate and gives tangent cuts at the subproblem's optimum, an infeasible assignment gives cuts from the
    infeasibility certificate. Cones that the fixings flatten (no interior) are handled as the linear constraints
    they are. MILP_OA_INT_NLP=0 turns it off.
  • --deterministic with quadratic constraints: the tangent cuts of a node are rows of that node's LP while it
    is processed (they reach the shared cut pool at the next synchronization point as before), so integral points
    that violate the constraints are cut off at the node, as in the default mode.
  • The QP barrier accepts a point by each row's own violation (relative to that row's side), no longer relative
    to the largest side of all rows.
  • Probing no longer runs away on continuous columns whose domains have shrunk to rounding errors: two such
    columns could tighten each other by 1e-18 per step without end, and the record of the steps took the memory
    (neos-5104907-jarama: 9 to 15 GB after the root, now 1.8 GB). Such a column counts as fixed, and one probe's
    chain of bound changes is capped.
  • The simplex's primal loop switches to Bland's rule after many pivots in one call: with Dantzig pricing it
    could cycle on a degenerate vertex (one node LP of CBLIB's clay0305h ran into the time limit).
  • Two opt-in settings for runs that start with an incumbent (issue #4): MILP_ROOT_LNS_FIRST=1 runs the root's
    neighbourhood searches before the dives, MILP_ROOT_LNS_ADAPT=f lets them continue while they improve the
    incumbent, up to the fraction f of the time left. Neither is a default: on the warm-start benchmark set
    their effect is inside the run-to-run noise.
  • Benchmark harness: run.py --save-sols DIR keeps verified feasible solutions as start files, run.py --starts DIR and ab.py --starts DIR run with them (warm-start benchmarks; benchmarks/sets/warmstart.txt), and
    ab.py --primal also compares the primal gap of the final solutions.

popso v0.8.4

Choose a tag to compare

@gozwei gozwei released this 10 Nov 17:00
  • The root stops at once when an incumbent found before the root LP ended (a user start, feasibility jump, the
    local MIP) already meets the gap tolerance at the root bound; before, the test ran only when a new incumbent
    arrived, and the search went on with the root heuristics, strong branching and the tree. Opportunistic mode.
    Contributed by Clay Cantrell (#3).

popso v0.8.3

Choose a tag to compare

@gozwei gozwei released this 10 Nov 05:58
  • A user start that presolve's dual reductions cut off (its presolved image violates rows although the start is
    feasible) is repaired: its integer values outside the violated rows are kept and the rest is completed by a small
    sub-MIP, which becomes the first incumbent. Before, the start only bounded the search, and the heuristics that
    start from an incumbent had nothing to work with (a 43k-column scheduling model: no solution beyond the start in
    39 s; with the repair optimal in 11 s). The log says when a start is repaired or only bounds the search.
    MILP_START_REPAIR=0 turns it off. Contributed by Clay Cantrell (#1, #2).
  • Solution / start files: a line starting with # is a comment unless it reads <column> <value> for a column
    whose name starts with # (valid in LP files; such a start was ignored entirely).
  • CLI: --abs-gap <abs> sets the absolute MIP gap (the C API's and Python's mip_abs_gap).