Changeset 5936


Ignore:
Timestamp:
12/04/08 10:59:07 (5 years ago)
Author:
wehart
Message:

If the IP file defines the name of the problem, then
override the default name, which is derived from the filename.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pico/trunk/src/milp/pico/milp.cpp

    r5932 r5936  
    12601260void MILP::setName(const char* cname) 
    12611261{ 
    1262   // First do the usual setName fromthe file name 
     1262  // First do the usual setName from the file name 
    12631263 
    12641264  branching::setName(cname); 
    12651265 
    1266   // Next take of .mps or .MPS 
     1266  // Next take off .mps or .MPS 
    12671267 
    12681268  size_type n = problemName.length(); 
     
    13911391  } 
    13921392  lp_solve = ((listOfInts.size() == 0) || (onlyRootLP == 1)); 
     1393  // Override the name, if one was givin in the IP file. 
     1394  if ((lp->name() != "") && (lp->name() != "unknown")) 
     1395     setName(lp->name().data()); 
    13931396  if (!lp_solve) { 
    13941397    // 
Note: See TracChangeset for help on using the changeset viewer.