Applying a genetic algorithm to the Linear Assignment Problem

Some sample C# code on how a genetic algorithm can be applied to the linear assignment problem. This problem can be efficiently solved using the Hungarian algorithm, but I wanted to demonstrate how the genetic algorithm can produce an optimal solution too. This example is implemented as a simple console application using code developed in …

Continue reading ‘Applying a genetic algorithm to the Linear Assignment Problem’ »

Handling changes to observable collection values as events in C#

From StackOverflow searches, I see that there are two possible ways: use an implementation of a TrulyObservableCollection; or use a Binding List. StackOverflow resource: https://stackoverflow.com/questions/1427471/observablecollection-not-noticing-when-item-in-it-changes-even-with-inotifyprop In your console application first implement a property that implements INotifyPropertyChanged for you: ViewModelBase.cs Code samples as follows: 1. TrulyObservableCollection Giving the following output as soon as one of the …

Continue reading ‘Handling changes to observable collection values as events in C#’ »