LotSizingDataModel.Solution 2.0.1
Solution objects for production, setup, inventory and related decisions.
Loading...
Searching...
No Matches
TerminationReason.cs
Go to the documentation of this file.
1using System;
2using System.Xml.Serialization;
3
5
6/// <summary>
7/// Identifies the reason why a solution-generation
8/// execution was terminated.
9/// </summary>
10/// <remarks>
11/// The termination reason is independent of the feasibility,
12/// completeness and optimality of the generated solution.
13/// </remarks>
14[Serializable]
15[XmlType(TypeName = "terminationReason")]
17{
18 /// <summary>
19 /// The termination reason is unknown or was not recorded.
20 /// </summary>
21 [XmlEnum("unknown")]
23
24 /// <summary>
25 /// The method completed its normal execution.
26 /// </summary>
27 [XmlEnum("completed")]
29
30 /// <summary>
31 /// The method terminated after proving that the retained
32 /// solution is optimal.
33 /// </summary>
34 [XmlEnum("optimalityProven")]
36
37 /// <summary>
38 /// The method terminated because a predefined target
39 /// objective value or solution quality was reached.
40 /// </summary>
41 [XmlEnum("targetReached")]
43
44 /// <summary>
45 /// The method terminated because its maximum authorized
46 /// execution time was reached.
47 /// </summary>
48 [XmlEnum("timeLimit")]
50
51 /// <summary>
52 /// The method terminated because its maximum number
53 /// of iterations was reached.
54 /// </summary>
55 [XmlEnum("iterationLimit")]
57
58 /// <summary>
59 /// The method terminated because its maximum number
60 /// of solution or objective evaluations was reached.
61 /// </summary>
62 [XmlEnum("evaluationLimit")]
64
65 /// <summary>
66 /// The method terminated because no improvement was
67 /// observed during a specified number of iterations
68 /// or during a specified duration.
69 /// </summary>
70 [XmlEnum("noImprovement")]
72
73 /// <summary>
74 /// The method terminated because a generic computational
75 /// resource limit was reached, such as a memory, node
76 /// or processing limit.
77 /// </summary>
78 [XmlEnum("resourceLimit")]
80
81 /// <summary>
82 /// The execution was interrupted explicitly by a user
83 /// or by the calling application.
84 /// </summary>
85 [XmlEnum("userInterrupted")]
87
88 /// <summary>
89 /// The execution terminated because of an unexpected
90 /// technical or algorithmic error.
91 /// </summary>
92 [XmlEnum("error")]
94}
@ Unknown
The completeness of the solution has not been evaluated.
TerminationReason
Identifies the reason why a solution-generation execution was terminated.
@ Completed
The method completed its normal execution.
@ UserInterrupted
The execution was interrupted explicitly by a user or by the calling application.
@ NoImprovement
The method terminated because no improvement was observed during a specified number of iterations or ...
@ EvaluationLimit
The method terminated because its maximum number of solution or objective evaluations was reached.
@ TimeLimit
The method terminated because its maximum authorized execution time was reached.
@ ResourceLimit
The method terminated because a generic computational resource limit was reached, such as a memory,...
@ OptimalityProven
The method terminated after proving that the retained solution is optimal.
@ Error
The execution terminated because of an unexpected technical or algorithmic error.
@ TargetReached
The method terminated because a predefined target objective value or solution quality was reached.
@ IterationLimit
The method terminated because its maximum number of iterations was reached.