Changeset 1325


Ignore:
Timestamp:
Jan 19, 2009 11:04:51 AM (11 years ago)
Author:
forrest
Message:

fix bug in decomposition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpSolve.cpp

    r1321 r1325  
    31473147      thisBlock = dynamic_cast<CoinModel *>(model->block(i));
    31483148      assert (thisBlock);
     3149      // just fill in info
     3150      CoinModelBlockInfo info = CoinModelBlockInfo();
     3151      int whatsSet = thisBlock->whatIsSet();
     3152      info.matrix = ((whatsSet&1)!=0) ? 1 : 0;
     3153      info.rhs = ((whatsSet&2)!=0) ? 1 : 0;
     3154      info.rowName = ((whatsSet&4)!=0) ? 1 : 0;
     3155      info.integer = ((whatsSet&32)!=0) ? 1 : 0;
     3156      info.bounds = ((whatsSet&8)!=0) ? 1 : 0;
     3157      info.columnName = ((whatsSet&16)!=0) ? 1 : 0;
     3158      // Which block
     3159      int iRowBlock=model->rowBlock(thisBlock->getRowBlock());
     3160      info.rowBlock=iRowBlock;
     3161      int iColumnBlock=model->columnBlock(thisBlock->getColumnBlock());
     3162      info.columnBlock=iColumnBlock;
     3163      blockInfo[i] = info;
    31493164    }
    31503165  }
Note: See TracChangeset for help on using the changeset viewer.