Solving the current optimization model

Presents the solve() function.

To solve the current optimization model, just call the solve() function on the IloCplex instance. This function returns true or false depending on whether a solution has been found. If a solution is found, you can ask for the objective value as follows:

    if ( cplex.solve() ) {
      curr = cplex.getObjValue();
      writeln();
      writeln("OBJECTIVE: ",curr);
      ofile.writeln("Objective with capFlour = ", capFlour, " is ", curr);        
    } 
    else {
      writeln("No solution!");
      break;
    }