Changeset 198 for trunk


Ignore:
Timestamp:
Aug 18, 2003 4:16:12 AM (17 years ago)
Author:
forrest
Message:

Fix bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PresolveTighten.cpp

    r57 r198  
     1// Copyright (C) 2002, International Business Machines
     2// Corporation and others.  All Rights Reserved.
    13#include <stdio.h>
    24#include <math.h>
     
    9496    if (dcost[j]==0.0) {
    9597      int iflag=0; /* 1 - up is towards feasibility, -1 down is towards */
     98      int nonFree=0; // Number of non-free rows
    9699
    97100      CoinBigIndex kcs = mcstrt[j];
     
    109112          iflag=0;
    110113          break;
     114        } else if (-1.0e28 < rlb || rub < 1.0e28) {
     115          nonFree++;
    111116        }
    112117
     
    132137      // done checking constraints
    133138
     139      if (!nonFree)
     140        iflag=0; // all free anyway
    134141      if (iflag) {
    135142        if (iflag==1 && cup[j]<1.0e10) {
Note: See TracChangeset for help on using the changeset viewer.