Actors by optimization