Changeset 2454 for trunk


Ignore:
Timestamp:
Dec 24, 2018 9:10:53 AM (6 months ago)
Author:
forrest
Message:

allow compressed .lp files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcSolver.cpp

    r2434 r2454  
    81958195                                const char * c_name = field.c_str();
    81968196                                size_t length = strlen(c_name);
    8197                                 if (length > 3 && !strncmp(c_name + length - 3, ".lp", 3))
     8197                                if ((length > 3 && !strncmp(c_name + length - 3, ".lp", 3))||
     8198                                (length > 6 && !strncmp(c_name + length - 6, ".lp.gz", 6)) ||
     8199                                    (length > 7 && !strncmp(c_name + length - 7, ".lp.bz2", 7)))
    81988200                                    gmpl = -1; // .lp
    81998201                            }
Note: See TracChangeset for help on using the changeset viewer.