A general distributed framework based on iterated local search