IBM ILOG Solver User's Manual > Local Search > Combining Complete and Local Search: Locating Warehouses > Model > Create the model

We create an environment to handle input/output, memory allocation, and other general services for the variables of our problem. We then create a model to hold the variables that define the problem:

int main(int argc, char *argv[]){
  IloEnv env;
  try {
    IloModel m(env);