LotSizingDataModel.Core 2.0.1
Core domain model, shared abstractions and XML-serializable entities.
Loading...
Searching...
No Matches
OptimizationObjectivePolicy.Execution.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using System.Linq;
3using System.Xml.Serialization;
4
6
7/// <summary>
8/// Adds executable multiobjective criterion data to <see cref="OptimizationObjectivePolicy"/>.
9/// </summary>
10public sealed partial class OptimizationObjectivePolicy
11{
12 [XmlArray("executionCriteria")]
13 [XmlArrayItem("criterion")]
14 public List<ObjectiveCriterionExecutionSpecification>
16 {
17 get;
18 } = new();
19
20 [XmlIgnore]
22 ExecutionCriteria.Count > 0;
23
24 [XmlIgnore]
27 .Select(criterion => criterion.Kind)
28 .Distinct()
29 .Count() ==
31
32 [XmlIgnore]
35 .Select(criterion => criterion.Priority)
36 .Distinct()
37 .Count() ==
39}
Declares the business objective policy independently from any particular mathematical scalarization i...