Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/2.8/Cbc/src/CbcSolverExpandKnapsack.cpp

    • Property svn:eol-style set to native
    • Property svn:keywords set to Author Date Id Revision
    r1752 r1902  
    1 /* $Id: CbcSolverExpandKnapsack.cpp 1240 2009-10-02 18:41:44Z forrest $ */
     1/* $Id$ */
    22// Copyright (C) 2007, International Business Machines
    33// Corporation and others.  All Rights Reserved.
     
    552552   for (iKnapsack=0;iKnapsack<numberKnapsack;iKnapsack++) {
    553553      int k=-1;
    554       double value=0.0;
    555554      for (iColumn=knapsackStart[iKnapsack];iColumn<knapsackStart[iKnapsack+1];iColumn++) {
    556555         if (knapsackSolution[iColumn]>1.0e-5) {
     
    561560            }
    562561            k=iColumn;
    563             value=floor(knapsackSolution[iColumn]+0.5);
    564             assert (fabs(value-knapsackSolution[iColumn])<1.0e-5);
     562            assert (fabs(floor(knapsackSolution[iColumn]+0.5)-knapsackSolution[iColumn])<1.0e-5);
    565563         }
    566564      }
Note: See TracChangeset for help on using the changeset viewer.