Replies: 1 comment 1 reply
-
There's only ever one "basis" in the HiGHS simplex solver, and it is of dimension Given an LP in the format above, HiGHS introduces (implicit) slack variables so that it has an equation system In the example, what you refer to as the "row basis" corresponds to the nonbasic slacks. It has a "kernel" role in Soplex, but isn't identified specifically in HiGHS. When Hence, with HiGHS, it is still possible to solve systems involving this matrix When |
Beta Was this translation helpful? Give feedback.
-
I an wondering about the documentation specifically of the functions
As far as I see, the type of LPs HiGHs expects to solve are given as
where$A$ is $L, U$ $l, u$
num_rows
timesnum_cols
,num_rows
, andnum_cols
(fornum_cols = Highs_getNumCol()
andnum_rows = Highs_getNumRow()
)As far as I see it, a (row) basis of this problem should consist of$A$ is empty, the row basis should consist only of variable bounds, and the corresponding matrix should be the identity. This matrix should (?) coincide with the basis matrix
num_cols
of the inequalities and bounds, forming a regular matrix, which, when solved against their respective right hand sides should reproduce the associated basic solution. In particular, ifB
mentioned in the documentation.I would like to use the functions above in order to solve
B
against a right-hand side, but I am confused regarding the dimensions in the documentation:b
is not specified (I assumed it should benum_rows
as well?)num_rows
entries.I would have thought that input / output have a size equal to the size of the row basis (
num_cols
). I tried to understand the operations using an example:The row basis consists of constraints 2 & 3 at their lower bounds, producing the solution (.5, 2.25). So I would have expected that solving the basis would solve against the corresponding matrix
which would have inputs and outputs in R^2. This does not seem to be the case however as the input and output is in R^3.
Could you explain to me the definition of the basis matrix and the semantics of the two functions?
Beta Was this translation helpful? Give feedback.
All reactions