SimSharp 3.4.1

.NET Standard 2.0 .NET Framework 4.5
Install-Package SimSharp -Version 3.4.1
dotnet add package SimSharp --version 3.4.1
<PackageReference Include="SimSharp" Version="3.4.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SimSharp --version 3.4.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SimSharp, 3.4.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install SimSharp as a Cake Addin
#addin nuget:?package=SimSharp&version=3.4.1

// Install SimSharp as a Cake Tool
#tool nuget:?package=SimSharp&version=3.4.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Sim# aims to port the concepts used in SimPy ( to the .NET world. It is implemented in C# and builds on the .NET Framework 4.5 / .NET Standard 2.0. Sim# uses an efficient event queue (adapted from The MachineShop benchmark comes close to 3.5 million events per second on a Core i7-7 2.7Ghz.

Sim# allows modeling processes easily and with little boiler plate code. A process is described as a method that yields events. When an event is yielded, the process waits on it. Processes are themselves events and so it is convenient to spawn sub-processes that can either be waited upon or that run next to each other. There is no need to inherit from classes or understand a complex object oriented design.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SimSharp:

Package Downloads


GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.4.1 751 2/8/2022
3.4.1-pre2 68 2/4/2022
3.4.1-pre1 89 2/4/2022
3.4.0 180 1/12/2022
3.3.2 7,328 5/4/2020
3.3.1 397 2/21/2020
3.3.0 770 12/6/2019
3.2.0 11,623 9/1/2019
3.1.1 853 1/4/2019
3.1.0 669 12/17/2018 669 6/26/2018
3.0.10 1,086 9/27/2017
3.0.9 918 3/23/2016
3.0.8 900 8/21/2015
3.0.7 966 3/1/2015
3.0.5 879 9/14/2014
3.0.4 828 8/25/2014

Sim# 3.4.1 adds source links to the NuGet package.
   Sim# 3.4 contains two enhancements, two bug fixes, and some deprecations.
   1) Adds implementations of sampling from distributions in form of classes and an IDistribtion interface.
   2) Added sampling from Erlang distributions
   Bug fixes - it fixes two bugs in the Simulation class
   1) The supplied instance of the random number generator was ignored in the RandChoiceOnline<T> methods.
   2) The parameters alpha and beta for the Weibull distribution have been reversed (alpha is now shape and beta is scale)

   1) All of the RandXXX methods in class Simulation have been marked as obsolete.
   2) All of the random TimeoutXXX methods in class Simulation have been marked as obsolete.

   To port code, it is advised to add "using static SimSharp.Distributions" to the using section and change e.g.
   env.RandUniform(1, 2) to env.Rand(UNIF(1, 2))
   env.RandNormalPositive(3, 0.5) to env.Rand(POS(N(3, 0.5)))
   env.RandLogNormal(1, 2) to env.Rand(LNORM(1, 2))
   env.RandLogNormal2(1, 2) to env.Rand(LNORM2(1, 2))
   env.TimeoutUniformD(1, 2) to env.TimeoutD(UNIF(1, 2))
   env.TimeoutLogNormalD(1, 2) to env.TimeoutD(LNORM(1, 2))
   env.TimeoutLogNormal2D(1, 2) to env.Timeout(LNORM2(1, 2))
   The RandChoice methods have been replaced with EmpiricalUniform and EmpiricalNonUniform distributions.

   All distributions also provide a static sampling method.

   The big improvement is that your process may be declared without needing to determine the actual random distribution.
   Thus Sim# 3.4 makes it simpler to parameterize processes with specific distributions.

   Distributions are lightweight classes, but Normal and LogNormal do contain state information as these use a cached
   value from the Marsaglia polar method. In case you reuse distribution instances among simulation runs you should
   call Reset() on all distribution instances of type IStatefulDistribution.