Changeset 1270 for applications/robust/robustlib.h
- Timestamp:
- 01/07/11 18:05:28 (13 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/robust/robustlib.h
r1269 r1270 19 19 using namespace itpp; 20 20 21 const double max_range = 99999999.0;//numeric_limits<double>::max()/10e-10;21 const double max_range = 1000.0;//numeric_limits<double>::max()/10e-10; 22 22 23 23 enum actions {MERGE, SPLIT}; … … 726 726 else 727 727 { 728 ((toprow*)current_parent)->condition_order++; 729 728 730 if(current_parent->negativechildren.size()>0) 729 731 { … … 736 738 current_parent->set_state(1, SPLIT); 737 739 738 ((toprow*)current_parent)->condition+=toadd; 740 ((toprow*)current_parent)->condition+=toadd; 739 741 } 740 742 else … … 966 968 else 967 969 { 968 toprow* neutral_toprow = new toprow(); 970 toprow* neutral_toprow = new toprow(); 971 972 neutral_toprow->condition = zeros(number_of_parameters+1); 973 neutral_toprow->condition_order = ((toprow*)current_polyhedron)->condition_order+1; 969 974 970 975 new_totally_neutral_child = neutral_toprow; … … 984 989 } 985 990 986 cout << ((toprow*)current_polyhedron)->condition << endl << toadd << endl;991 // cout << ((toprow*)current_polyhedron)->condition << endl << toadd << endl; 987 992 988 993 toprow* positive_poly = new toprow(((toprow*)current_polyhedron)->condition+toadd, ((toprow*)current_polyhedron)->condition_order+1);