예제 #1
0
void JCutSetup::AddCutsByList(JCutList* cutlist){

  for(Int_t cutid=1;cutid<=cutlist->GetNCuts();cutid++){
    AddCut(cutlist->GetCut(cutid));
  }

}
예제 #2
0
long GenModelCplex::AddSolverRow(vector<int>& ind, vector<double>& val, double rhs, char sense, string name)
{
    if(!bcreated)
        return ThrowError("AddSolverRow() not available : Problem not created yet");
    AddModelRow(ind, val, rhs, sense, name);
    AddCut(&ind[0], &val[0], int(ind.size()), rhs, sense, name.c_str());

    return 0;
}
예제 #3
0
void CutManager::AddCut(const char * name, int* array_ids_p, int n_array_ids , const char * function_name) {
    std::vector<int> array_ids(array_ids_p,array_ids_p+n_array_ids);
    AddCut(name,array_ids,function_name);
}