Changeset 302


Ignore:
Timestamp:
Oct 29, 2009 5:44:54 PM (10 years ago)
Author:
bjarni
Message:

Changed from clp->writeMps() to osi->writeMps() so MIP models are written out correctly. Calling now also osi->setInteger() to make sure Osi knows about integer variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/1.4/CoinMP/src/CoinMP.cpp

    r301 r302  
    845845                        if (pCoin->IsInt[i]) {
    846846                                pCoin->cbc->solver()->setInteger(i);
     847                                pCoin->osi->setInteger(i);
    847848                        }
    848849                }
     
    17121713        switch (FileType) {
    17131714                case SOLV_FILE_MPS:             
    1714                         pCoin->clp->writeMps(WriteFilename);   
     1715                        pCoin->osi->writeMps(WriteFilename,"", pCoin->ObjectSense);   
    17151716                        break;
    17161717
Note: See TracChangeset for help on using the changeset viewer.