Changeset 258


Ignore:
Timestamp:
Nov 20, 2003 10:18:33 AM (16 years ago)
Author:
forrest
Message:

Cosmetic printing when free variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ClpNonLinearCost.cpp

    r256 r258  
    109109    start_[iSequence+1]=put;
    110110  }
    111 
    112111}
    113112ClpNonLinearCost::ClpNonLinearCost(ClpSimplex * model,const int * starts,
     
    347346  return *this;
    348347}
    349 
    350348// Changes infeasible costs and computes number and cost of infeas
    351349// We will need to re-think objective offsets later
     
    379377    int end = start_[iSequence+1]-1;
    380378    // correct costs for this infeasibility weight
    381     double thisFeasibleCost=0.0;
     379    // If free then true cost will be first
     380    double thisFeasibleCost=cost_[start];
    382381    if (infeasible(start)) {
    383382      thisFeasibleCost = cost_[start+1];
     
    876875      value = max(value,upper-primalTolerance);
    877876    } else {
    878       printf("*** variable wandered off bound %g %g %g!\n",
    879              lower,value,upper);
     877      //printf("*** variable wandered off bound %g %g %g!\n",
     878      //     lower,value,upper);
    880879      if (value-lower<=upper-value)
    881880        value = lower+primalTolerance;
Note: See TracChangeset for help on using the changeset viewer.