Exemplo n.º 1
0
    public HighsBasis getBasis()
    {
        int nc = this.getNumCols();
        int nr = this.getNumRows();

        HighsBasis bas = new HighsBasis(nc, nr);

        HighsLpSolver.Highs_getBasis(this.highs, bas.colbasisstatus, bas.rowbasisstatus);
        return(bas);
    }
Exemplo n.º 2
0
    public HighsBasis getBasis()
    {
        int nc = this.getNumCol();
        int nr = this.getNumRow();

        int[] colbasstat = new int[nc];
        int[] rowbasstat = new int[nr];

        HighsLpSolver.Highs_getBasis(this.highs, colbasstat, rowbasstat);
        HighsBasis bas = new HighsBasis(colbasstat.Select(x => (HighsBasisStatus)x).ToArray(), rowbasstat.Select(x => (HighsBasisStatus)x).ToArray());

        return(bas);
    }