listOptimalTrials method
Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for single-objective Study. The definition of pareto-optimal can be checked in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency
Throws a http.ClientException if there were problems communicating with
the API service. Throws a ServiceException if the API method failed for
any reason.
Implementation
@override
Future<ListOptimalTrialsResponse> listOptimalTrials(
ListOptimalTrialsRequest request,
) async {
if (isClosed) throw StateError('Service is closed');
if (_listOptimalTrials case final listOptimalTrials?) {
return listOptimalTrials(request);
}
throw UnsupportedError('listOptimalTrials');
}