McdaToolkit 2.2.0
See the version list below for details.
dotnet add package McdaToolkit --version 2.2.0
NuGet\Install-Package McdaToolkit -Version 2.2.0
<PackageReference Include="McdaToolkit" Version="2.2.0" />
paket add McdaToolkit --version 2.2.0
#r "nuget: McdaToolkit, 2.2.0"
// Install McdaToolkit as a Cake Addin #addin nuget:?package=McdaToolkit&version=2.2.0 // Install McdaToolkit as a Cake Tool #tool nuget:?package=McdaToolkit&version=2.2.0
MCDA Toolkit
Introduction
The MCDA Toolkit is a lightweight .NET tool designed for Multi-Criteria Decision Analysis (MCDA).
Key feature
- .NET 6+ support
- Easy to use
Dependencies
Calculation process
Prepare data matrix
double[] data = new double[,]
{
{ 66, 56, 95 },
{ 61, 55, 166 },
{ 65, 49, 113 },
{ 95, 56, 99 },
{ 63, 43, 178 },
{ 74, 59, 140 },
};
Prepare weights matrix
Weights are discribed by double precision numbers ∈<0,1>, and they have to sum to 1
.
double[] weights = new double[]
{
0.4,0.25,0.35
};
Prepare types matrix
Types are discribed by two integer numbers -1
(cost) and 1
(profit).
int[] types = new int[]
{
-1,-1,1
};
Run calculation
The final result of the calculation is Result<Vector<double>>
.
This object contains information about the success or failure of the operation.
Before obtaining the Value
from the result object, it is necessary to check that no errors have occurred.
var topsis = new Topsis(new McdaMethodOptions()
{
NormalizationMethod = NormalizationMethod.MinMax
});
Result<Vector<double>> result = topsis.Calculate(data,weights,types);
if(topsisResult.IsFailed)
{
foreach (var error in topsisResult.Errors)
{
Console.WriteLine(error.Message);
}
return;
}
Vector<double> result.Value;
More info about Result
type and pattern at: Light Results and Fluent Results
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- LightResults (>= 8.0.9)
- MathNet.Numerics (>= 5.0.0)
-
net6.0
- LightResults (>= 8.0.9)
- MathNet.Numerics (>= 5.0.0)
-
net7.0
- LightResults (>= 8.0.9)
- MathNet.Numerics (>= 5.0.0)
-
net8.0
- LightResults (>= 8.0.9)
- MathNet.Numerics (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.