Show
Ignore:
Timestamp:
01/07/11 18:05:28 (13 years ago)
Author:
sindj
Message:

Opravena chyba s chybejici podminkou, zbyva doresit numericke problemy. JS

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/robust/robustlib.h

    r1269 r1270  
    1919using namespace itpp; 
    2020 
    21 const double max_range = 99999999.0;//numeric_limits<double>::max()/10e-10; 
     21const double max_range = 1000.0;//numeric_limits<double>::max()/10e-10; 
    2222 
    2323enum actions {MERGE, SPLIT}; 
     
    726726                                                        else 
    727727                                                        { 
     728                                                                ((toprow*)current_parent)->condition_order++; 
     729 
    728730                                                                if(current_parent->negativechildren.size()>0) 
    729731                                                                { 
     
    736738                                                                        current_parent->set_state(1, SPLIT); 
    737739 
    738                                                                         ((toprow*)current_parent)->condition+=toadd; 
     740                                                                        ((toprow*)current_parent)->condition+=toadd;                                                                     
    739741                                                                } 
    740742                                                                else 
     
    966968                                        else 
    967969                                        { 
    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; 
    969974 
    970975                                                new_totally_neutral_child = neutral_toprow; 
     
    984989                                        } 
    985990 
    986                                         cout << ((toprow*)current_polyhedron)->condition << endl << toadd << endl; 
     991                                        // cout << ((toprow*)current_polyhedron)->condition << endl << toadd << endl; 
    987992 
    988993                                        toprow* positive_poly = new toprow(((toprow*)current_polyhedron)->condition+toadd, ((toprow*)current_polyhedron)->condition_order+1);