







Compares the objective values of this solution instance to others.
Namespace: Optimization
Assembly: Optimization.Framework (in Optimization.Framework.dll) Version: 0.3.1036.0
Syntax
C# |
---|
public int CompareTo( Solution other ) |
Visual Basic |
---|
Public Function CompareTo ( _ other As Solution _ ) As Integer |
Visual C++ |
---|
public: virtual int CompareTo( Solution^ other ) sealed |
Parameters
- other
- Type: Optimization..::..Solution
Solution instance to compare to.
Return Value
If the objective values are compared, the return value indicates dominance of solution quality (i.e. zero indicates indifference).Implements
IComparable<(Of <(<'T>)>)>..::..CompareTo(T)
Exceptions
Exception | Condition |
---|---|
System..::..NotSupportedException | If this solution instance has status NoSolutionValues. |
System..::..ArgumentException | If other has status NoSolutionValues or the solutions' objective names do not fit to each other. |