trial outcome optimization