Repository navigation
Releases
v.1.16.0
The highlights of v1.16 are the use of parallelism by default in the
MIP solver, a rewritten LP file reader, a Hessian oracle for QP,
support for AMD GPUs in HiPDLP, Windows ARM64 Python wheels and NuGet
packages, and a large number of correctness fixes in the MIP solver
and presolve.
Code changes
Model file I/O
The LP file reader has been rewritten as a parser for a formal grammar
of the LP file format (PR
#3355). Invalid files
are now rejected, rather than being read silently as a different
model, and syntax errors are reported with the line and column of the
error. The reader is also faster and uses less memory (PR
#3446).
The floating point precision when writing to an MPS file was increased
(PR #3340).
Presolve
Following PR #3167,
presolve starts with an initial sweep of low-cost presolve rules
without forming the full presolve data structures. The new
presolve_mode option (PR
#3536) selects the
presolve that is performed: 0 (default) uses all rules, unless PDLP is
used, in which case the "light" rules are used; 1 uses only the
initial sweep; 2 uses the "light" rules; and 3 uses all rules. The
rules can be modified further using presolve_rule_off. Fourier-Motzkin elimination was added
to presolve in PR #3255,
and new MIP techniques include a single machine scheduling separator
(PR #2990), dual fixing
within probing (PR #3244)
and aggregated implications
(PR #3264). The options
lp_presolve_requires_basis_postsolve and
use_implied_bounds_from_presolve are now redundant
(PR #3334 and
PR #3311).
Parallelism
Following PR #3406, the
parallel MIP solver introduced in v1.15 is now enabled by default: the
branch-and-bound tree is explored using multiple threads unless the
parallel option is set to "off". The parallel design was reworked in
PR #3192, with
deterministic early termination added in
PR #3124.
Following PR #3137,
HiGHS now uses one thread per physical core that the program is
allowed to run on, respecting the OS affinity mask, which fixes the
use of only half of the cores on Apple silicon. The parallel scheduler
documentation was updated in PR
#3449.
QP solvers
Rather than provide an explicit Hessian matrix, users can provide an
"oracle" callback that provides the necessary data associated with the
Hessian (PR #3153).
Callbacks for the first feasible point and user interrupts were added
to the QP active set method in PR
#3214. The QP active
set solver no longer reports some convex QPs as non-convex (PR
#3325).
Simplex
A false unboundedness error in dual simplex was fixed (PR
#3353). Following PR
#3421,
kUnboundedOrInfeasible is returned when this status cannot be
resolved, regardless of the allow_unbounded_or_infeasible option
setting.
HiPDLP
HiPDLP now also handles maximization (PR
#3469).
HiPO
HiPO now performs parallel solves
(PR #3200), constructs
the normal equations in parallel
(PR #3187) and uses a
simplified factorisation
(PR #3159). The new
options hipo_parallel_force, hipo_parallel_forbid and
hipo_serial_blas control its use of parallelism, and a C interface to
the HiPO linear solver was added in
PR #3066. HiPO log
output is now shown when a log callback is used with log_to_console
set to false (PR #3592),
and IPX is always used to compute the analytic centre for the MIP
solver, since HiPO does not yet perform centring
(PR #3522).
IPX
IPX now
terminates when its iterates stall
(PR #3401) and checks
the time limit when forming its initial basis
(PR #3185). False
infeasibility and solve errors on small, badly scaled LPs were fixed in
PR #3513.
Crossover
Following PR #3466,
Highs::crossover can be run from an approximate primal-dual solution,
such as one from PDLP, IPX or HiPO, including for maximization and LPs
with ranged rows.
Interfaces
Following PR #3257,
highspy has new HighsError and HighsStatusError exceptions and
supports minimize/maximize with a constant objective, and
PYBIND11_DETAILED_ERROR_MESSAGES is no longer defined in the bindings
(PR #3346).
Following PR #3372,
Highs::passModel and Highs::passHessian trim any vectors that are
larger than the model dimensions require, and return
HighsStatus::kWarning. User-supplied solutions are now assessed in
the same way in all contexts (PR
#3556), and the HiGHS
log header is written by more methods, including writeModel and
writeSolution (PR #3496
and PR #3517).
Breaking change: The C API methods Highs_getBasis and
Highs_getSolution now return kHighsStatusError, rather than
kHighsStatusOk, if there is no valid basis or primal solution (PR
#3291). This includes
an LP found to be infeasible, for which Highs_run still returns
kHighsStatusOk. The output arrays are not written when an error is
returned, so check the return value before reading them. The soname of
the shared library remains libhighs.so.1, so existing binaries get
this behaviour without being rebuilt.
Loading highs_extras
When HiPO is built into the separate shared library highs_extras,
HiGHS loads it at run time. Following PR
#3547, the locations
from which it is loaded are restricted, so that HiGHS cannot be made to
load a different library placed in a directory that it searches.
- The new methods
Highs::initializeExtras(directory, search_if_empty)
andHighs_initializeExtrasload the library from a given
directory. Ifdirectoryis empty, the default locations are
searched only ifsearch_if_emptyis true. Call one of these
methods once, before HiPO is first used. Later calls return the
result of the first call. Neither method is needed when the extras
are linked statically. - If neither method is called, HiGHS searches the default locations
when HiPO is first used. On Windows these are now only the folder of
the application's.exeand the system folder: thePATHand the
current folder are no longer searched. Any DLL thathighs_extras.dll
depends on, such asopenblas.dll, must be in one of these folders. highspyloads the library only from the installed
highspy-extraspackage.
If the library cannot be loaded, the reason is now reported
(PR #3555).
Other
Performance issues in changeColsIntegrality, addRows and when
names are supplied through the API were fixed in PR
#3477, PR
#3169 and PR
#3335, and
Highs::feasibilityRelaxation now minimizes the violation for
maximization models (PR
#3370). Two checks
that ran on every simplex solve but whose results were not used, taking
about 2% of MIP solution time, are now only run in debug mode (PR
#3515), the enumeration
presolve makes far fewer row comparisons (PR
#3529), and changing
the orientation of a sparse matrix no longer copies it (PR
#3485).
The primal-dual integral is now bounded above by the solution time
(PR #3521).
HiGHS solution file
The HiGHS solution file can now hold a partial solution
(PR #3321), the
objective bound and MIP relative gap are written to the pretty and raw
solution files (PR #3431),
and an infinite loop when reading an invalid solution file was fixed
(PR #3504).
Bug fixes
Many bugs that could lead to a suboptimal solution being reported as
optimal, or a feasible model being reported as infeasible, were fixed.
In the MIP solver these include invalid cu...
v1.15.1
Patch release v1.15.1 fixes:
Apache release binaries not including HiPO fixed in PR #3112.
Build for users with C++20 fixed in PR #3114.
OpenBLAS setup issue affecting performance fixed in PR #3122.
Values passed for string option values (except for file names) are
converted to lower case PR #3108.
The highlights of v1.15 are the first variant of the parallel MIP solver
and the addition of HiPO in Python.
Code changes
Following PR #2886, our
prototype multithreaded MIP solver is available, refactoring
the worker/node-search logic of the branch-and-cut solver to run
across multiple threads. This is the first release of the parallel MIP
solver.
A fix to the parallel scheduler was merged in
PR #3087.
Following PR #2994,
HiPO can now be used to solve LPs and QPs from highspy, with
documentation added in
PR #3024 and
PR #3060. HiPO
performance was further improved by faster handling of free variables
(PR #3013) and faster
triangular solves
(PR #3014).
Prompted by #2957,
square Hessians that are only slightly asymmetric are now accepted by
Highs::qFormatOk, rather than being rejected outright
(PR #2965,
PR #2984 and
PR #3003). Identification
of non-convexity in the QP solvers was also improved, with extended
documentation added in
PR #3056, and a further
bug affecting some QPs was fixed in
PR #3069. QP hot start
was added in PR #3089.
Following PR #2982,
several bugs in the computation of an Irreducible Infeasible Subsystem
(IIS) via Highs::getIis were fixed.
Following PR #3046,
zero-cost singleton columns are no longer fixed to an infinite bound
during HPresolve::dualFixing, and the size of shifts applied during
reduced-cost fixing was reduced in
PR #2986. Strengthened
variable bounds found during presolve are now retained
(PR #3010), a bug in
the computation of the fractional value of a variable with finite
lower and upper bounds was fixed
(PR #3005), and the
handling of infeasibilities for semi-continuous and semi-integer
variables was corrected
(PR #3018).
Following PR #3042,
parallel simplex is no longer used when solving the LP relaxations
that arise within the MIP solver, since it isn't safe to do so when
the MIP solver is itself running in parallel.
Following PR #2971,
highspy now supports scalar division, and significant improvements
were made to highspy's static typing in
PR #2983. Context
manager support was added to highspy in
PR #3093.
Following PR #3039,
Highs::setBasis and Highs::setLogicalBasis have been implemented,
and additional methods were added to the C# wrapper in
PR #3041.
Prompted by #3044,
a further bug was fixed in
PR #3092, and
PR #3091 corrects the
re-checking of an implied bound, fixing
#3090.
Following PR #2981,
C-heap memory leaks in solver state cleanup were fixed, and
PR #3081 fixes a bug
in column stuffing.
Following PR #3016,
Highs::presolve() now logs and returns failure appropriately when
called inconsistently with the state of the incumbent model.
Prompted by #3007, a
potential typo in FactorHiGHSSolver::chooseNla() was corrected, and
several other minor fixes were collected in
PR #3017 and
PR #3004 (the latter
for HighsCliqueTable).
Following PR #3057,
lines in HiGHS options files that contain only spaces are now ignored,
and the text of the first line containing an error is printed in the
resulting message.
Build changes
The Python build has been updated and an additional python package is
available. The HiPO dependencies are linked via the optional
highspy-extras, e.g. Metis, for all platforms, and OpenBLAS, for
Windows and Linux. The highspy-extras package is automatically
consumed by highspy and does not need to be imported manually. Note,
that highspy-extras is distributed under the Apache 2.0 license, due
to the dependencies' licensing.
On Linux, libblas is no longer supported, in favour of OpenBLAS. MKL
support would be considered at a later stage.
Prompted by #3000,
PR #3027 fixes a
recent alpine:edge compilation issue.
Following PR #3025,
all remaining thread sanitizer data race warnings are cleared.
GPU support was added for local Python pip installs in
PR #3071 and the BLAS
library used by HiPO is now checked at runtime
(PR #3080).
The cibuildwheel workflow and pyproject configuration were updated
to cibuildwheel 4.0.0
(PR #3061), and the
NuGet publishing workflow now uses trusted publishing rather than an
API key
(PR #3062,
following PR #2959).
The macOS GitHub Actions build times were significantly improved in
PR #3033, and the C#
wrapper build was fixed to statically link the MSVC STL and correctly
install on win32
(PR #3070).
Following PR #3001,
the install location of the readme and license files was corrected,
and explicit -fexceptions copts were added to the Bazel config
(PR #3072 and
PR #3075).
v1.15.0
The highlights of v1.15 are the first variant of the parallel MIP solver
and the addition of HiPO in Python.
Code changes
Following PR #2886, our
prototype multithreaded MIP solver is available, refactoring
the worker/node-search logic of the branch-and-cut solver to run
across multiple threads. This is the first release of the parallel MIP
solver.
A fix to the parallel scheduler was merged in
PR #3087.
Following PR #2994,
HiPO can now be used to solve LPs and QPs from highspy, with
documentation added in
PR #3024 and
PR #3060. HiPO
performance was further improved by faster handling of free variables
(PR #3013) and faster
triangular solves
(PR #3014).
Prompted by #2957,
square Hessians that are only slightly asymmetric are now accepted by
Highs::qFormatOk, rather than being rejected outright
(PR #2965,
PR #2984 and
PR #3003). Identification
of non-convexity in the QP solvers was also improved, with extended
documentation added in
PR #3056, and a further
bug affecting some QPs was fixed in
PR #3069. QP hot start
was added in PR #3089.
Following PR #2982,
several bugs in the computation of an Irreducible Infeasible Subsystem
(IIS) via Highs::getIis were fixed.
Following PR #3046,
zero-cost singleton columns are no longer fixed to an infinite bound
during HPresolve::dualFixing, and the size of shifts applied during
reduced-cost fixing was reduced in
PR #2986. Strengthened
variable bounds found during presolve are now retained
(PR #3010), a bug in
the computation of the fractional value of a variable with finite
lower and upper bounds was fixed
(PR #3005), and the
handling of infeasibilities for semi-continuous and semi-integer
variables was corrected
(PR #3018).
Following PR #3042,
parallel simplex is no longer used when solving the LP relaxations
that arise within the MIP solver, since it isn't safe to do so when
the MIP solver is itself running in parallel.
Following PR #2971,
highspy now supports scalar division, and significant improvements
were made to highspy's static typing in
PR #2983. Context
manager support was added to highspy in
PR #3093.
Following PR #3039,
Highs::setBasis and Highs::setLogicalBasis have been implemented,
and additional methods were added to the C# wrapper in
PR #3041.
Prompted by #3044,
a further bug was fixed in
PR #3092, and
PR #3091 corrects the
re-checking of an implied bound, fixing
#3090.
Following PR #2981,
C-heap memory leaks in solver state cleanup were fixed, and
PR #3081 fixes a bug
in column stuffing.
Following PR #3016,
Highs::presolve() now logs and returns failure appropriately when
called inconsistently with the state of the incumbent model.
Prompted by #3007, a
potential typo in FactorHiGHSSolver::chooseNla() was corrected, and
several other minor fixes were collected in
PR #3017 and
PR #3004 (the latter
for HighsCliqueTable).
Following PR #3057,
lines in HiGHS options files that contain only spaces are now ignored,
and the text of the first line containing an error is printed in the
resulting message.
Build changes
The Python build has been updated and an additional python package is
available. The HiPO dependencies are linked via the optional
highspy-extras, e.g. Metis, for all platforms, and OpenBLAS, for
Windows and Linux. The highspy-extras package is automatically
consumed by highspy and does not need to be imported manually. Note,
that highspy-extras is distributed under the Apache 2.0 license, due
to the dependencies' licensing.
On Linux, libblas is no longer supported, in favour of OpenBLAS. MKL
support would be considered at a later stage.
Prompted by #3000,
PR #3027 fixes a
recent alpine:edge compilation issue.
Following PR #3025,
all remaining thread sanitizer data race warnings are cleared.
GPU support was added for local Python pip installs in
PR #3071 and the BLAS
library used by HiPO is now checked at runtime
(PR #3080).
The cibuildwheel workflow and pyproject configuration were updated
to cibuildwheel 4.0.0
(PR #3061), and the
NuGet publishing workflow now uses trusted publishing rather than an
API key
(PR #3062,
following PR #2959).
The macOS GitHub Actions build times were significantly improved in
PR #3033, and the C#
wrapper build was fixed to statically link the MSVC STL and correctly
install on win32
(PR #3070).
Following PR #3001,
the install location of the readme and license files was corrected,
and explicit -fexceptions copts were added to the Bazel config
(PR #3072 and
PR #3075).
v1.14.0
The highlight of v1.14 is the extension of the HiPO interior point LP
solver to handle convex QPs.
Code changes
Prompted by #2821,
the treatment of Hessian matrix anomalies has been changed. Firstly,
any duplicate entries in the Hessian are now summed.
-
When a square Hessian is read from the
QMATRIXsection of an MPS
file, or passed by a user, any asymmetry results in
Highs::readModelorHighs::passHessianreturning
HighsStatus::kError. Previously HiGHS would use$$(Q+Q^T)/2$$ as
the Hessian. -
A triangular Hessian, whether read from the
QUADOBJsection of an
MPS file, or passed by a user, was previsouly assumed to be given by
only lower triangular entries, with any entries in the upper
triangle being ignored. Now, any entries in the upper triangle of
the Hessian are accepted, being added to any corresponding entries
in the lower triangle. If there are entries in the upper triangle,
their number is logged in a warning message, which also states the
number of any summations, andHighs::readModelor
Highs::passHessianwill returnHighsStatus::kWarning.
Prompted by #2849,
console, file and callback logging are now independent, allowing any
combination to be on/off.
Following PR #2854,
HiPO is now capable of solving convex QP problems. Option
solver="qpasm" selects the previous active-set QP solver, while
solver="hipo" or solver="ipm" selects the HiPO solver.
Following PR #2865,
HiGHS performs logging during probing in MIP presolve and checks for
time-out
Following PR #2870,
dedicated time-out during IIS calculation (using HiGHS option
iis_time_limit) has been enabled.
Prompted by #2883,
the function signature for Highs_getInfinity in the C# API has been
corrected.
Prompted by #2887,
addVariable in highspy cannot create names with spaces, illegal
variable or constraint names when writing MPS or LP files no longer
leads to an error return - generic names are created - and the EMS
file facility has been removed.
Following PR #2918,
logging during IIS calculation has been improved.
Following PR #2934,
HiPO uses infinity-norm equilibration of the rows and columns of the
matrix rather than Curtis-Reid scaling.
v1.13.1
Code changes
Following PR #2812,
HiGHS can read LP files with keywords as constraint names.
Following PR #2818, a
potential data race in the HiGHS multithreading system has been fixed
Following PR #2825,
potential conflict with METIS symbols has been eliminated.
Following PR #2832,
potential conflict with AMD and RCM symbols has been eliminated.
Following PR #2834,
there is some minimal documentation of the highspymodelling
language.
Following PR #2837,
the use of the logging callback is independent to the settings of the
output_flag, log_to_console and output_flag options.
Build changes
Following PR #2836,
it is now possible to build a static library with HiPO, without the
requirement for blas to be specified at compile time.
Following PR #2839,
files like README.md and LICENSE.txt are installed in the proper location.
v1.13.0
Code changes
The HiPO release exposed various issues flagged up via GitHub and email.
- Fix some overflows when computing statistics of analyse phase.
- Free memory used for normal equations, if augmented system is preferred.
- Fix bug in supernode amalgamation.
- Print the BLAS library used in the HiGHS header, so it is visible when using HiPO without logging.
- Add the ability to use AMD and RCM rather than Metis
- Use 64-bit integers
- Fixed the time limit
Following PR #2623,
singleton column stuffing added to MIP presolve - see Gamrath et al.,
Progress in presolving for mixed integer
programming. Math. Prog. Comp. 7, 367–398 (2015).
Following user PR
#2625, callback data
structs are named, allowing them to be forward-declared data types if
a callback needs to be declared in a public header
Following PR #2626,
IPX is used by default when switching to IPM after simplex reaches
iteration limit in HighsLpRelaxation::run
Following user PR
#2628, #include <functional> has been added in highs/mip/HighsGFkSolve.h and
highs/mip/HighsNodeQueue.h to avoid compilation failures for some
compilers.
Prompted by #2633,
the constraint matrix is passed by reference (rather than value) for
each constraint when writing a LP file.
Following PR #2639,
the dominated columns reduction is speeded up for models with many
columns.
Prompted by #2643,
primal simplex is avoided when the unscaled LP problem has primal
infeasibilities but is dual feasible.
Following PR #2644,
the irreducible infeasibility system detection facility has been
refactored and is much more robust. Rather than have
HighsOption::iis_strategy be one from an enum of "strategy
scenarios" it is now a bit map
- 0 => "light strategy", which is always performed when
Highs::getIisis called. - 1 => From dual ray, which is currently unavailable.
- 2 => From the whole LP (solving an elasticity LP repeatedly (fixing positive elastic variables at zero) until no more elastic variables are positive, and using the fixed elastic variables to determine a set of infeasible rows, for which there is a corresponding set of columns with nonzeros in those rows that form an infeasibility set (IS).
- 4 => Attempt to reduce the IS to an IIS.
- 8 => Prioritize low numbers of columns (rather than low numbers of rows) when reducing the IS.
Hence, by just setting the 2-bit, an IS is formed reliably, and at not great expense (for an LP).
Prompted by #2653,
the very rare report of spurious primal infeasibilities in the optimal
solution of MIPs with large bounds on variables or constraints is
eliminated.
Prompted by #2655,
#2766 and
#2744,
changeRowsBounds has been added to highspy.
Following PR #2671,
implications gathered by the MIP solver are applied when performing a
bound change.
Prompted by #2676,
the getIis method in highspy is now correct.
Following PR #2678, an
option mip_allow_cut_separation_at_nodes (default true) has been
added for models where time is spent on separating cuts at branching
nodes is a considerable fraction of the solution time.
Prompted by #2681,
Highs_getPresolvedColName and Highs_getPresolvedRowName have been
added to the C API.
Following PR #2695,
HPresolve::enumerateSolutions enumerates all solutions to pure
binary constraints with up to 8 variables. This is run before probing
to avoid (expensive) probing on binary variables that could be
fixed.
Prompted by #2696,
the simplex solver sets dual values of basic variables to zero,
translating this numerical error measure to nonzero residuals in the
dual equations.
Prompted by #2705, a
presolved MIP can be passed from C if it contains implied integers.
Following user PR
#2713, scalar
entries of the HighsLp class are not used after the corresponding
instance undergoes std::move in highs/mip/HighsLpRelaxation.cpp.
Prompted by #2721, examples
of using solution in Python examples have been improved.
Following user PR
#2747, save_value is
initialised wen a HighsSimplexBadBasisChangeRecord is created.
Following PR #2761,
presolve now checks if all binary variables (from a constraint) form a
clique.
Following PR #2762,
the vector is passed by reference rather than value to freeVector in
highs/ipm/hipo/auxiliary/Auxiliary.h.
Following PR #2768,
the HiPO wrapper no longer makes an unnecessary copy of the LP.
Prompted by #2769,
now initialising sense in struct Model of LP file reader
Compiler warnings have been fixed
All unguarded printf statements have been removed.
Build changes
Added Python 3.14 wheels.
Added a CMake option BUILD_OPENBLAS for Windows and Linux, when HIPO is ON and BUILD_OPENBLAS is ON, OpenBLAS is downloaded and built as a subproject. The default value is OFF.
Update rules_cuda for the bazel build.
Filereader is now in highs/ rather than extern/.
Metis, AMD and RCM are now in extern/. Metis is no longer an external dependency.
Binaries are now available. Standard HiGHS binaries are MIT-licensed and HiGHS with HiPO are Apache-licensed.
Licensing
Code not written for HiGHS is now maintained in the /extern
directory, and THIRD_PARTY_NOTICES.md contains a statement of the
licenses of all such external code, some of which are permissive
non-MIT licenses.
When HiGHS is built from code, the conditions of the non-MIT licenses
are such that the resulting binaries and executable remain MIT
licensed. However, since the interior point solver HiPO makes use of
some of this external code, we believe that the MIT license is lost
when users link to our precompiled binaries. Hence there are binaries
without HiPO (MIT license), and with HiPO (Apache 2.0 license).
We believe that this is a conservative stance, and we are taking
expert advice that may allow us to relax this distinction.
v1.12.0
Code changes
HiPO is out! Our new factorisation-based interior point solver, developed by Filippo Zanetti, is officially integrated in HiGHS! HiPO is multi-threaded and will improve the performance on many large instances. Metis and BLAS are required for HiPO. In this version, HiPO will be available when HiGHS is built from source with CMake. It can be accessed from C++, C and will also be available when HiGHS is called from JuMP. In a future release, HiPO will be available from Python, C# and more.
Forcing column reduction now checks the bound on the column dual rather than whether the dual row activity is zero fixing #2409
Now handling correctly the case where an infeasible MIP has a feasible relaxation, so no ray is computed fixing #2415
Fixed minor bug exposed by #2441 in Highs::setSolution() for a sparse user solution when the moidel is empty, and only clearing the dual data before solving with modified objective in Highs::multiobjectiveSolve() so that user-supplied solution is not cleared.
The irreducible infeasibility system (IIS) facility now detects infeasibility due to bounds on constraint activity values (implied by variable bounds) being incompatible with constraint bounds. A kIisStrategyLight mode for the iis_strategy option has been introduced so that only infeasibility due to incompatible variable/constraint bounds and constraint activity values is checked for. The LP corresponding to any known IIS is now formed and held as a data member of the HighsIis class. It can be obtained as a const reference using Highs::getIisLp(), and written to a file using Highs::writeIisModel(const std::string& filename = "")
Prompted by #2463, the HiGHS solution and basis files now match data to any column and row names in the model, only assuming that the data are aligned with column and row indices if there are no names in the model. This requires a new version (v2) of the HiGHS basis file. Basis files from v1 are still read, but deprecated. Now, when writing out a model, basis or solution, column and row names are added to the model - previously they were created temporarily and inconsistentyly on the fly. If the model has existing names, then distinctive names are created to replace any blank names, but names with spaces or duplicate names yield an error status return.
Refactored strong branching to minimize duplicated code
Only for LPs is there a choice of solver. Previously, when setting the solver option to anything other than "choose", any incumbent model was solved as an LP, using that LP solver. This has caused confusiuon for users, and is unnecessary now that there is the solve_relaxation option. Now, if the incumbent model is a QP or MIP, it is solved as such (unless solve_relaxation is true for a MIP), and the value of the solver option only determines what solver is used to solve an LP. If the value of solver is "choose", then HiGHS will use what it expects to be the best solver for the problem; if value of solver is "ipm", then HiGHS will use what it expects to be the better IPM solver (of HiPO and IPX) for the problem; if value of solver is "hipo", then HiGHS will use the HiPO IPM solver (if available in the build); if value of solver is "ipx", then HiGHS will use the IPX IPM solver; if value of solver is "pdlp", then HiGHS will use the PDLP first-order solver. The option mip_lp_solver has been introduced to define which LP solver is used when solving LPs in the MIP solver for which an advanced basis is not known - typically the "root node" LP. Note that The PDLP solver cannot be used to solve such LPs, since it does not yield a basic solution. If an interior point solver fails to obtain a basic solution, the simplex solver will then be used. The option mip_ipm_solver has been introduced to define which IPM solver is used when solving LPs in the MIP solver for which IPM is mandatory - typically the analytic centre calculation. When LPs are to be solved by an IPM solver, the HiPO solver is used (if available in the build) unless IPX has been specified explicitly.
As per #2487, trivial heuristics now run before feasibility jump (FJ), and FJ will use any existing incumbent. FJ will clip any finite variable values in the incumbent to lower and upper bounds, and falls back to the existing logic (lower bound if finite, else upper bound if finite, else 0) for any infinite values in the incumbent.
Prompted by #2460, the options user_objective_scale and user_bound_scale apply uniform (power-of-two) scaling to the objective and bounds of a model, and now respect the following restrictions
- For a MIP, column bounds cannot be scaled, so the scaling is achieved by scaling the cost and constraint matrix column
- For a QP, Hessian entries must be scaled down (up) when bounds are scaled up (down) so that all terms in the objective are scaled by a constant.
Formerly the options user_cost_scale and user_bound_scale allowed uniform (power-of-two) scaling to the costs and bounds of an LP. The option user_cost_scale is now replaced by user_objective_scale.
After HiGHS determines and logs the coefficient ranges and warns about extreme values, it recommends values of user_objective_scale and user_bound_scale if
- All the objective coefficients (bound values) are smaller than the "excessively small constant"
kExcessivelySmallObjectiveCoefficient(kExcessivelySmallBoundValue) - both of which are 1e-4 - suggesting that they are scaled up so that the largest value becomes (just over) the excessively small constant. Since the smallest value can be arbitrarily small, scaling so that this becomes (just over) the small constant is inadvisable, as the largest value could then be scaled up to an extremely large value. - All the objective coefficients (bound values) are larger than the "excessively large constant"
kExcessivelyLargeObjectiveCoefficient(kExcessivelyLargeBoundValue) - both of which are 1e6 - suggesting that they are scaled down so that the largest value becomes (just over) the excessively large constant.
The recommended objective scaling is determined with respect to the recommended bound scaling
Users can obtain the recommended values of user_objective_scale and user_bound_scale by calling Highs::getObjectiveBoundScaling
The irreducible infeasibility system (IIS) facility now detects infeasibility due to bounds on constraint activity values being incompatible with constraint bounds. A kIisStrategyLight mode for the iis_strategy option has been introduced so that only infeasibility due to incompatible variable/constraint bounds and constraint activity values is checked for. The model corresponding to any known IIS is now formed and held as a data member of the HighsIis class. The HighsIis class is available via highspy, and its data members are available via the C API.
Prompted by #2463, when HiGHS writes out a solution or basis for a model without column or row names, it creates names. This avoids a mis-match between the ordering of variables when such a model is written out as a .lp file, and then this and a solution or a basis is read in.
Prompted by #2528, the logging for the HiGHS interior point method (IPM) solvers and PDLP solver has been standardised, and logging has been added to the IPM solver during time-consuming computational phases.
Prompted by #2557, Highs::getFixedLp has been added so that, after solving a MIP, the LP with discrete variables fixed at their optimal values can be formed, allowing it to be passed to HiGHS and solved as an LP.
Prompted by #2581, the QP example in call_highs_from_csharp.cs has been corrected
Prompted by #2582, the C API constants are declared static const to prevent multiple definition linker errors
Build changes
The Bazel build now supports building with Cuda with an optional parameter cupdlp_gpu.
v1.11.0
Build changes
Replace command line parsing library with Cpp11 #2211
CMake updates #2286, the root of the HiGHS source files is now highs/, rather than src/
Add missing include to zstr needed for gcc v15 and clang v19 #2313
Updates for intel llvm compiler on linux #2257
Build directory for Windows MSVC now Release/bin replacing bin/Release #2376
Code changes
Fixed incorrect assertion in HighsMipSolver::solutionFeasible() (fixing #2204)
As part of #2251 cuPDLP-C will start from the incumbent solution in HiGHS. For a model that has been changed, the user must supply a starting solution via a call to Highs::setSolution
getColIntegrality now returns HighsVarType::kContinuous when model_.lp_.integrality_ is empty (fixing #2261)
Now ensuring that when solving a scaled LP with useful but unvalidated basis, it does not lose its scaling after validation, since the scaling factors will be applied to the solution (fixing #2267)
By setting non-empty values of options read_solution_file, read_basis_file, write_model_file (with extension .lp or .mps), write_solution_file, solution_file, write_basis_file, these files will be read or written when calling Highs::run(). Hence options previously only available via the command line interface can be use (for example) by modelling languages that only call Highs::run() (fixing #2269).
Bug #2273 fixed
Added the feasibility jump heuristic as per #1423. This is on by default, but using the option mip_heuristic_run_feasibility_jump=false switches it off.
ZI rounding and shifting MIP primal heuristics have been added (see #2287). They are off by default, but can be activated by setting the options mip_heuristic_run_zi_round and mip_heuristic_run_shifting to be true. Options mip_heuristic_run_rins, mip_heuristic_run_rens and mip_heuristic_run_root_reduced_cost to run the RINS, RENS and rootReducedCost heuristics have been added. These are true by default, but setting them to be false can accelerate the MIP solver on easy problems.
Added Highs_changeRowsBoundsByRange to C API, fixing #2296
Corrected docstrings for Highs_getReducedRow, motivated by #2312
LP file reader no longer fails when there is no objective section. Fix is #2316, but this exposes code quality issue #2318
Added a max scale factor (+1024) when scaling up coefficients in preprocessBaseInequality and postprocessCut. Fix is #2337
Corrected the bounds used in when strengthening coefficients in HPresolve::rowPresolve, fixing #1517
Fixed numerical error in highs/mip/HighsCliqueTable.cpp, closing #2320
Fixed bug in highs/mip/HighsFeasibilityJump.cpp, closing #2331
Tightened CMIR cuts, leading to small performance gain, closing #2333
Scaling the tolerance in forcing row reduction to avoid use of rows with small coefficients and bounds, closing #2290
Fixed bug when calculating a coefficient in one of the cuts in separateImpliedBounds in highs/mip/HighsImplications.cpp
Added CSECTION to the exceptions for keywords that are followed by text, and thus cannot be used as names of columns, RHS, ranges, bounds etc.
Introduced the following KKT error measures to HighsInfo: num_relative_primal_infeasibilities; max_relative_primal_infeasibility; num_relative_dual_infeasibilities; max_relative_dual_infeasibility; num_primal_residual_errors; max_primal_residual_error; num_dual_residual_errors; max_dual_residual_error; num_relative_primal_residual_errors; max_relative_primal_residual_error; num_relative_dual_residual_errors; max_relative_dual_residual_error; num_complementarity_violations; max_complementarity_violation; primal_dual_objective_error. The relative values are used to assess whether a solution deemed to be optimal by the first order LP solver cuPDLP-C or interior point solver IPX (without crossover) is truly acceptable. They also enable users to determine whether a solution corresponding to HighsModelStatus::kUnknown is acceptable to them as optimal. Also introduced options complementarity_tolerance used to assess whether the (relative) primal-dual objective error is acceptable, and kkt_tolerance which, if set to a value other than kDefaultKktTolerance = 1e-7 is used as the tolerance for all the KKT error measures. The HiGHS documentation has been updated to reflect the new options and HighsInfo data, and logging messages indicate when KKT error measures are not satisfied, despite the solver considering the LP solution to be optimal.
Added a max scale factor (+1024) when scaling up coefficients in preprocessBaseInequality and postprocessCut. Fix is #2337.
Renamed HighsOptions::pdlp_d_gap_tol to HighsOptions::pdlp_optimality_tolerance for consistency with IPM
Renamed HighsOptions::complementarity_tolerance to HighsOptions::optimality_tolerance for consistency with IPM and PDLP
v1.10.0
Build changes
Added code coverage report
Replaced command line parsing library with CLI11. Removed C++17 reference with cxxopts, which is no longer in HiGHS
Code changes
Any LP offset is communicated to the IPM solver, and used in logging and primal/dual objective calculations.
If there is a valid basis when Highs::run() is called, presolve isn't skipped unless the solver option is "simplex" or "choose" (when simplex will always be chosen if there is an advanced basis).
Added basis solve methods to highspy
Added methods to get primal/dual ray and dual unboundedness direction to highspy
When a presolved LP has model status kUnknown, rather than returning this to the user, it performs postsolve and then uses the basis to solve the original LP
Fixed bug in presolve when pointers stored in HighsMatrixSlice get invalidated when the coefficient matrix is reallocated (e.g. when non-zeros are added in HPresolve::addToMatrix)
Primal and dual residual tolerances - applied following IPM or PDLP solution - now documented as options
Highs::getCols (Highs::getRows) now runs in linear time if the internal constraint matrix is stored column-wise (row-wise). Added ensureColwise/Rowwise to the Highs class, the C API and highspy so that users can set the internal constraint matrix storage orientation
When columns and rows are deleted from the incumbent LP after a basic solution has been found, HiGHS no longer invalidates the basis. Now it maintains the basic and nonbasic status of the remaining variables and constraints. When the model is re-solved, this information is used to construct a starting basis.
Fixed bugs in presolve
When running from the command line, changes to default option values are reported
Added callback to allow users to supply integer feasible solutions to the MIP solver during execution
Bug fix for primal heuristics in the MIP solver
Model status is set appropriately when a solver's claimed optimality doesn't satify the general HiGHS primal/dual feasibilily tolerances. Affects IPM without crossover and PDLP
Command line parsing now done with pure C++11 code
Added command line flags to read basis from and write basis to a file
Bug fixes in records of primal/dual rays
MPS read utility improved. Error logging is now less verbose; inability to handle USERCUTS section is properly logged
Implemented lifting for probing as described by Achterberg et al in Presolve Reductions in Mixed Integer Programming. INFORMS Journal on Computing 32(2):473-506 (2019). Not used by default, but option mip_lifting_for_probing allows it to be used with two levels of modification
Propagated updates from cuPDLP-C
Added GPU support for cuPDLP-C
v1.9.0
Build changes
Python: Source Distribution update, added to PyPI
Code changes
HiGHS now handles multiple linear objectives by either blending using weights, or performing lexicographic optimization: see https://ergo-code.github.io/HiGHS/stable/guide/further/#guide-multi-objective-optimization
Fixed minor bug in bound checking in presolve
Fixed bug in floor(HighsCDouble x) and ceil(HighsCDouble x) when argument is small
Added some sanity checks to Highs::writeLocalModel to prevent segfaults if called directly by a user