McdaToolkit 2.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package McdaToolkit --version 2.2.0                
NuGet\Install-Package McdaToolkit -Version 2.2.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="McdaToolkit" Version="2.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add McdaToolkit --version 2.2.0                
#r "nuget: McdaToolkit, 2.2.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

alternate text is missing from this package README image License

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 88 12/14/2024
3.0.0-rc1 66 11/21/2024
2.2.0 124 8/15/2024
2.1.0 125 6/16/2024
2.0.1 111 6/12/2024
1.0.1 102 6/9/2024