ULSAlgorithms 1.1.0-g3e5595996d
High-performance exact and heuristic algorithms for uncapacitated lot sizing
Loading...
Searching...
No Matches
ExternalSolverProcessProbeResult.cs
Go to the documentation of this file.
2
3/// <summary>
4/// Captured result of a short external solver process probe.
5/// </summary>
7{
8 /// <summary>Initializes a process-probe result.</summary>
10 int exitCode,
11 string standardOutput,
12 string standardError)
13 {
14 ExitCode = exitCode;
15 StandardOutput = standardOutput ?? string.Empty;
16 StandardError = standardError ?? string.Empty;
17 }
18
19 /// <summary>Gets the native process exit code.</summary>
20 public int ExitCode { get; }
21
22 /// <summary>Gets captured standard output.</summary>
23 public string StandardOutput { get; }
24
25 /// <summary>Gets captured standard error.</summary>
26 public string StandardError { get; }
27
28 /// <summary>Gets stdout and stderr as one diagnostic string.</summary>
29 public string CombinedOutput =>
30 string.Join(
31 Environment.NewLine,
32 new[]
33 {
34 StandardOutput,
35 StandardError
36 }.Where(
37 static text =>
38 !string.IsNullOrWhiteSpace(text)));
39}
ExternalSolverProcessProbeResult(int exitCode, string standardOutput, string standardError)
Initializes a process-probe result.