45 #ifndef ROL_SIMCONTROLLER_H 46 #define ROL_SIMCONTROLLER_H 58 std::vector<Teuchos::RCP<Vector<Real> > >
vectors_;
64 void reset(
const bool flag =
true) {
66 typename std::map<std::vector<Real>,
int>::iterator it;
67 for (it = indices_.begin(); it != indices_.end(); ++it) {
68 flags_[it->second] =
false;
77 : maxIndex_(0), objUpdated_(false), conUpdated_(false) {
90 if (conUpdated_ && objUpdated_) {
103 if (conUpdated_ && objUpdated_) {
112 const std::vector<Real> ¶m) {
113 int count = indices_.count(param);
117 typename std::map<std::vector<Real>,
int>::iterator it
118 = indices_.find(param);
120 flag = flags_[index];
122 x.set(*vectors_[index]);
127 std::pair<std::vector<Real>,
int>(param, index));
128 flags_.push_back(
false);
129 vectors_.push_back(x.clone());
138 const std::vector<Real> ¶m) {
139 int count = indices_.count(param);
142 typename std::map<std::vector<Real>,
int>::iterator it
143 = indices_.find(param);
145 flags_[index] =
true;
146 vectors_[index]->set(x);
150 std::pair<std::vector<Real>,
int>(param, index));
151 flags_.push_back(
true);
152 vectors_.push_back(x.clone());
153 vectors_[index]->set(x);
void reset(const bool flag=true)
std::map< std::vector< Real >, int > indices_
void equalityConstraintUpdate(const bool flag=true)
Equality constraint update for SimController storage.
SimController(void)
Constructor.
void objectiveUpdate(const bool flag=true)
Objective function update for SimController storage.
Defines the linear algebra or vector space interface.
std::vector< bool > flags_
std::vector< Teuchos::RCP< Vector< Real > > > vectors_