LotSizingDataModel.Solver 2.0.1
Solver-independent modeling, execution, monitoring and adapter infrastructure.
Loading...
Searching...
No Matches
SolverProgressEventArgs.cs
Go to the documentation of this file.
1using System;
3
5
6/// <summary>
7/// Provides solver progress information to .NET event
8/// subscribers.
9/// </summary>
10public sealed class SolverProgressEventArgs :
11 EventArgs
12{
13 /// <summary>
14 /// Initializes a new solver progress event.
15 /// </summary>
16 /// <param name="snapshot">
17 /// Current solver progress snapshot.
18 /// </param>
19 /// <exception cref="ArgumentNullException">
20 /// Thrown when <paramref name="snapshot"/> is
21 /// <see langword="null"/>.
22 /// </exception>
25 {
26 ArgumentNullException.ThrowIfNull(
27 snapshot);
28
29 Snapshot =
30 snapshot;
31 }
32
33 /// <summary>
34 /// Gets the solver progress snapshot associated with the
35 /// event.
36 /// </summary>
38 {
39 get;
40 }
41}
SolverProgressSnapshot Snapshot
Gets the solver progress snapshot associated with the event.
SolverProgressEventArgs(SolverProgressSnapshot snapshot)
Initializes a new solver progress event.
Represents an immutable snapshot of the current progress of a mathematical optimization run.