BeeAlgorithm 1.0.2
dotnet add package BeeAlgorithm --version 1.0.2
NuGet\Install-Package BeeAlgorithm -Version 1.0.2
<PackageReference Include="BeeAlgorithm" Version="1.0.2" />
<PackageVersion Include="BeeAlgorithm" Version="1.0.2" />
<PackageReference Include="BeeAlgorithm" />
paket add BeeAlgorithm --version 1.0.2
#r "nuget: BeeAlgorithm, 1.0.2"
#:package BeeAlgorithm@1.0.2
#addin nuget:?package=BeeAlgorithm&version=1.0.2
#tool nuget:?package=BeeAlgorithm&version=1.0.2
<h1>BeeAlgorithmLibrary</h1>
<p>BeeAlgorithmLibrary is a C# library for solving optimization problems using the bee algorithm introduced by Derviş Karaboğa to the literature.</p>
<h2>More</h2> <p>You can learn more about how the algorithm works here See the <a href="https://abc.erciyes.edu.tr/">Artificial Bee Colony (ABC) Algorithm Homepage</a>.</p> <h2>Installation</h2>
<p>To use this library, you can add it to your project as a <a href="https://www.nuget.org/packages/BeeAlgorithmLibrary">NuGet Package</a>.</p>
<pre> <code>Install-Package BeeAlgorithmLibrary -Version 1.0.1</code></pre> or <pre> <code>dotnet add package BeeAlgorithm --version 1.0.1</code> </pre>
<h2>How to Use</h2> You can follow these steps to solve an optimization problem using BeeAlgorithmLibrary:
Define the Objective Function: Create an objective function that represents the problem you want to solve. This function takes a vector of inputs and returns a score. The goal is to minimize this score.
Create a BeeAlgorithm Object: Define the optimization problem using the BeeAlgorithm class. Specify parameters such as the objective function, dimension, colony size, maximum number of iterations, lower and upper bounds of the search space.
Solve the Optimization Problem: Solve the optimization problem using the BeeAlgorithm object. You can obtain the best solution by calling the Solve() method.
<pre> <code> using System; using BeeAlgorithm;
class Program { static void Main(string[] args) { // 1. Define the Objective Function Func<double[], double> objectiveFunction = (x) ⇒ { // Sample objective function: Sphere function double sum = 0; foreach (var value in x) { sum += value * value; } return sum; };
// 2. Create a BeeAlgorithm Object
int dimension = 3;
int colonySize = 20;
int maxIterations = 100;
double[] lowerBound = { -5, -5, -5 };
double[] upperBound = { 5, 5, 5 };
BeeAlgorithm.BeeAlgorithm beeAlgorithm = new BeeAlgorithm.BeeAlgorithm(objectiveFunction, dimension, colonySize, maxIterations, lowerBound, upperBound);
// 3. Solve the Optimization Problem
double[] bestSolution = beeAlgorithm.Solve();
// Print the best solution
Console.WriteLine("Best solution:");
foreach (var value in bestSolution)
{
Console.WriteLine(value);
}
}
} </code> </pre>
<h2>Contribution</h2>
<p>This library is open for contributions. If you find any bugs or have suggestions for improvement, please open a <a href="https://github.com/example/example/issues">GitHub issue</a> or submit a pull request.</p>
<h2>License</h2>
<p>This project is licensed under the MIT License. See the <a href="LICENSE">LICENSE</a> file for more information.</p>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Custom Random Generator function feature added