Changeset 1270 for applications/robust

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

Location:
applications/robust
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • applications/robust/robustlib.cpp

    r1269 r1270  
    1919 
    2020                                        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); 
    2124                                        if(should_integrate && condition_order-my_emlig->number_of_parameters >= 0) 
    2225                                        { 
     
    128131                                                } 
    129132 
     133                                                cout << int_value << endl; 
     134                                                pause(0.1); 
     135 
     136 
    130137                                                simplex_integrals.insert(int_value); 
    131138                                        } 
  • 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);