Comments (6)
Hi @jsboige, can you point me any of your unit tests that can be used to verify the items below?
Very Easy Sudoku: 250 chromosomes, <1 sec
Easy Sudoku: 5000 chromosomes, 10 sec
Medium Sudoku: 100000 chromosomes, 5-10 min
Hard Sudoku: 300000 chromosomes, 1-2h
from geneticsharp.
Hi, those tests were not performed in the unit tests but rather manually in the GTK interface: You'll find the corresponding sudokus in the corresponding controller, and they correspond to Sudokus 1-4 loaded by default. I then had to set the population numbers manually.
The corresponding unit-test only tests solving the easy sudoku, which it loads from the Test helper.
from geneticsharp.
In your tests what option did you use on "Genetics" dropdown?
from geneticsharp.
@jsboige another question:
What is the expected fitness value return from SudokuFitness's Evaluate method when a board is resolved?
from geneticsharp.
In your tests what option did you use on "Genetics" dropdown?
The cells genetics has pretty poor performances as compared to the permutations one, since the search space is much larger with no benefits AFAIK in terms of getting away from local maxima.
@jsboige another question:
What is the expected fitness value return from SudokuFitness's Evaluate method when a board is resolved?
The expected fitness is 0 for a solved Sudoku, (it counts the number of misplaced cells, I believe I placed a dual termination criterion accordingly in the unit tests).
For now, the evolution looks like a single collapse to all the local maxima closest to the initial population without any room for lateral exploration, meaning the only way I found to get to the solution is making sure the initial population is large enough so that the global maxima is reachable during that collapse. IMHO, this makes it an interesting problem to push this Framework's limits in terms of lateral exploration. Now the default parameter are quite aggressive as far as I understand, so with your knowledge of ways to soften that a bit, you might be able to find the right tuning.
Otherwise, what I believe might be missing in order to achieve some better performances and avoid the whole population collapsing to a local maximum is some kind of tabu search for parts of the population to force divergence and diversity.
Have you had a look at https://dev.heuristiclab.com/trac.fcgi/, which seems to be one of the main competing stacks in the .Net ecosystem? They do have those kind of advanced features that might be interesting to add to your Framework.
from geneticsharp.
The performance of GeneticSharp has been improved a lot in the latest versions, but probably won't solve the points mentioned by you about sudoku's sample.
I'll close the issue right now, but feel free to re-open it with a PR associated. This PR should add benchmark methods to our BenchmarkDotNet project, This benchmarks should demonstrate the performance of the points you mentioned. Please, in the same PR add the changes (no breaking changes) suggestions to improve the performance on those points.
from geneticsharp.
Related Issues (20)
- Reference to defective, outdated chocolatery GTKSharp package prevents contributions
- TplTaskExecutor seems not occupying enough CPU HOT 1
- IMutation. RequiredLength property HOT 1
- Cannot run simple integer array optimization. Got boolean results HOT 1
- Need implementation help HOT 1
- Running optimization on a list of parameters with specific step
- Unity and NuGet package is still at version 2.6.0 at in release 3.0.0 and later HOT 1
- Can we identify which Chromosome is which? HOT 1
- Nuget documentation is missing
- GA pause & resume HOT 2
- FitnessStagnationTermination Does Not Terminate at Expected Generation When Using GenerationRan Event HOT 1
- Resume GA when instantiated using a population with GenerationsNumber > 0 HOT 2
- Multipopulations implementation and fitness stagnation plateau - how to approach
- ChomosomeBase vs FloatingPointChromosome
- Fixed Chromsome Values.
- Selection doesn't seem to do anything HOT 2
- Multiple occurances of same chromosome instance in generation
- ToFloatingPoints() ArgumentException HOT 2
- reinsertion control HOT 1
- Saving current progress HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geneticsharp.