McdaToolkit 3.0.0

dotnet add package McdaToolkit --version 3.0.0                
NuGet\Install-Package McdaToolkit -Version 3.0.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="3.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add McdaToolkit --version 3.0.0                
#r "nuget: McdaToolkit, 3.0.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=3.0.0

// Install McdaToolkit as a Cake Tool
#tool nuget:?package=McdaToolkit&version=3.0.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 and .NET Standard 2.0
  • 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 matrix = new[,]
    {
        {3, 6, 4, 20, 2, 30000 },
        {4, 4, 6, 15, 2.2, 32000 },
        {6, 5, 9, 18, 3, 32100 },
        {5, 6, 3, 23, 2.8, 28000 },
        {4, 8, 7, 30, 1.5, 29000 },
        {8, 3, 6, 35, 1.9, 27000 },
        {7, 2, 5, 33, 1.7, 28500 },
        {3, 8, 3, 34, 1.6, 30500 },
        {8, 4, 8, 40, 2.5, 33000 },
        {9, 3, 7, 34, 2, 29800 }
    };
double[] weights = [0.1,0.2,0.1,0.2,0.1,0.3];
int[] types = [1,1,1,-1,-1,-1];
        
var data = new DataProviderBuilder()
    .AddWeights(weights)
    .AddDecisionCriteria(types)
    .AddDecisionMatrix(matrix)
    .Build();
        
var vikor = MethodFactory.CreateVikor(new VikorOptions()
{
    NormalizationMethod = NormalizationMethod.Vector,
    VikorParameters = VikorParameters.Create(0.5)
});
        
var vikorResult = vikor.Run(data);
        
var scores = vikorResult
    .Value.Q;
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 was computed.  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 was computed.  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 netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  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