MCPcopy Create free account
hub / github.com/Gecode/gecode / optimize

Method optimize

contribs/qecode/QCOPPlus.cc:215–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213
214
215void Qcop::optimize(int scope, int optType,OptVar* var) {
216 if (var->getScope() < scope) {cout<<"optvar out of optimizing scope"<<endl;abort();} // Variable � optimiser avant d�cideur
217 for (int i=scope; i<var->getScope();i++) {
218 if (Quantifiers[i]) // universelle entre variable et d�cideur
219 { cout<<"universal scope between variable and optimizing scope"<<endl;abort();}
220 }
221 // cout<<"I add an optVar* for scope "<<scope<<endl;
222 optim[scope].vars.clear();
223 optim[scope].vars.push_back(var);
224 optim[scope].opt_type=optType;
225}
226
227
228MySpace* Qcop::getSpace(int scope) {

Callers 3

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 2

getScopeMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected