Class BatchStudy.BatchStudyResult
java.lang.Object
neqsim.process.util.optimization.BatchStudy.BatchStudyResult
- All Implemented Interfaces:
Serializable
- Enclosing class:
BatchStudy
Results of a batch study.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Instantprivate intprivate final List<BatchStudy.CaseResult> private static final longprivate Instantprivate final Stringprivate intprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddResult(BatchStudy.CaseResult result) (package private) voidcomplete()voidexportToCSV(String filePath) Exports results to CSV.voidexportToJSON(String filePath) Exports results to JSON format.getBestCase(String objectiveName) Gets the best case for a given objective.intgetParetoFront(String objective1, String objective2) Gets the Pareto-optimal front for two objectives.intGets all successful results.Gets study summary.inttoJson()Converts results to a JSON string.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
studyName
-
totalCases
private final int totalCases -
results
-
startTime
-
endTime
-
successCount
private int successCount -
failureCount
private int failureCount
-
-
Constructor Details
-
BatchStudyResult
BatchStudyResult(String studyName, int totalCases)
-
-
Method Details
-
addResult
-
complete
void complete() -
getSuccessfulResults
Gets all successful results.- Returns:
- list of successful results
-
getBestCase
Gets the best case for a given objective.- Parameters:
objectiveName- the objective to optimize- Returns:
- the best case result
-
exportToCSV
Exports results to CSV.- Parameters:
filePath- output file path- Throws:
IOException- if write fails
-
exportToJSON
Exports results to JSON format.- Parameters:
filePath- output file path- Throws:
IOException- if write fails
-
toJson
-
getParetoFront
Gets the Pareto-optimal front for two objectives.A case is Pareto-optimal if no other case is better in both objectives.
- Parameters:
objective1- first objective name (to minimize)objective2- second objective name (to minimize)- Returns:
- list of Pareto-optimal cases
-
getSummary
-
getTotalCases
public int getTotalCases() -
getSuccessCount
public int getSuccessCount() -
getFailureCount
public int getFailureCount() -
getAllResults
-