Changeset 1270
- Timestamp:
- 01/07/11 18:05:28 (14 years ago)
- Location:
- applications/robust
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/robust/robustlib.cpp
r1269 r1270 19 19 20 20 int condition_order = ((toprow*)this)->condition_order-1; 21 22 // cout << "C:" << condition_order << " N:" << my_emlig->number_of_parameters << " C+N:" << condition_order-my_emlig->number_of_parameters << endl; 23 // pause(0.1); 21 24 if(should_integrate && condition_order-my_emlig->number_of_parameters >= 0) 22 25 { … … 128 131 } 129 132 133 cout << int_value << endl; 134 pause(0.1); 135 136 130 137 simplex_integrals.insert(int_value); 131 138 } -
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);