Changeset 883

Show
Ignore:
Timestamp:
03/29/10 23:01:19 (14 years ago)
Author:
smidl
Message:

bdmtoolbox + arx

Files:
5 modified

Legend:

Unmodified
Added
Removed
  • applications/bdmtoolbox/mex/arena.cpp

    r801 r883  
    5858 
    5959        //DBG 
    60 //      Cfg.writeFile ( "arena.cfg" ); 
     60        Cfg.writeFile ( "arena.cfg" ); 
    6161 
    6262#else 
  • applications/bdmtoolbox/mex/controlloop.cpp

    r801 r883  
    100100 
    101101        //DBG 
    102 //      Cfg.writeFile ( "controlloop.cfg" ); 
     102        Cfg.writeFile ( "controlloop.cfg" ); 
    103103 
    104104#else 
     
    230230                if ( n_output<1 ) mexErrMsgTxt ( "Wrong number of output variables!" ); 
    231231                output[0] = mL->toCell(); 
     232                if (n_output>1) { 
     233                        mL->_setting_conf().setAutoConvert(true); 
     234                        output[1]= UImxArray::create_mxArray(mL->_setting_conf().getRoot()); 
     235                } 
    232236        } 
    233237#endif 
  • applications/bdmtoolbox/tutorial/mpdm/dist_ctrl_acc.m

    r871 r883  
    4949P1.merger.method = 'geometric'; 
    5050%P1.merger.dbg_file = 'mp.it'; 
    51 P1.merger.ncoms = 20; 
     51P1.merger.ncoms = 1; 
    5252P1.merger.stop_niter= 5; 
    5353P1.neighbours = {};%{'P2'}; 
  • library/bdm/design/arx_ctrl.h

    r763 r883  
    6666                        state ( state.length() - 1 ) = 1; 
    6767                } 
    68                 return lq.ctrlaction ( state, cond.right ( Stsp->_B().cols() ) ); 
     68                vec tmp=lq.ctrlaction ( state, cond.right ( Stsp->_B().cols() ) ); 
     69                if (!isfinite(sum(tmp))) { 
     70                        cout << "infinite ctrl action"; 
     71                } 
     72                return tmp; 
    6973        } 
    7074        //! 
  • library/bdm/estim/arx.cpp

    r878 r883  
    216216void ARX::from_setting ( const Setting &set ) { 
    217217        BMEF::from_setting(set); 
     218         
    218219        shared_ptr<RV> yrv_ = UI::build<RV> ( set, "rv", UI::compulsory ); 
    219220        shared_ptr<RV> rrv = UI::build<RV> ( set, "rgr", UI::compulsory );