Changeset 660 for library/bdm/design/ctrlbase.h
- Timestamp:
- 10/15/09 00:04:30 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/design/ctrlbase.h
r649 r660 89 89 //! refresh temporary storage - inefficient can be improved 90 90 void initialize(); 91 //! validation procedure 91 92 void validate(); 92 93 //! function for future use which is called at each time td; Should call initialize()! … … 111 112 L = -inv(post_qr.get(0,dimu-1, 0,dimu-1)) * post_qr.get(0,dimu-1, dimu, 2*dimu+dimx+dimy-1); 112 113 } 114 //! compute control action 113 115 vec apply(const vec &state, const vec &ukm){vec pom=concat(state, ones(dimy), ukm); return L*pom;} 114 116 } ;