experimented with heuristic optimization to no avail