Changeset 1569


Ignore:
Timestamp:
Apr 5, 2020 1:01:06 PM (3 months ago)
Author:
stefan
Message:

matrix start should be CoinBigIndex?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/CglCliqueStrengthening/CglCliqueStrengthening.cpp

    r1559 r1569  
    421421    int *idxMap = (int*)xmalloc(sizeof(int) * numCols);//controls duplicated indexes (var and complement)
    422422    double *nrCoef = (double*)xmalloc(sizeof(double) * newCliques.totalElements());
    423     int *nrStart = (int*)xmalloc(sizeof(int) * (nCliques + 1)); nrStart[0] = 0;
     423    CoinBigIndex *nrStart = (CoinBigIndex*)xmalloc(sizeof(CoinBigIndex) * (nCliques + 1)); nrStart[0] = 0;
    424424    double *nrLB = (double*)xmalloc(sizeof(double) * nCliques);
    425425    double *nrUB = (double*)xmalloc(sizeof(double) * nCliques);
     
    462462        assert(duplicated == 0 || duplicated == 1);
    463463        if(duplicated == 1) {
    464             int last = nrStart[ic];
     464            CoinBigIndex last = nrStart[ic];
    465465            rhs = 0.0;
    466             for(int k = nrStart[ic]; k < numVars; k++) {
     466            for(CoinBigIndex k = nrStart[ic]; k < numVars; k++) {
    467467                        assert(nrCoef[k] == -1.0 || nrCoef[k] == 0.0 || nrCoef[k] == 1.0);
    468468                if(nrCoef[k] == -1.0 || nrCoef[k] == 1.0) {
Note: See TracChangeset for help on using the changeset viewer.