Skip to content

Commit f05b921

Browse files
committed
Reduced the number of generations and organisms per core.
1 parent 5963fad commit f05b921

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SalemOptimizer.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
77
<ProjectGuid>{81CFEE8D-0FCA-47FD-8084-E2E84C858440}</ProjectGuid>
8-
<OutputType>Exe</OutputType>
8+
<OutputType>WinExe</OutputType>
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>SalemOptimizer</RootNamespace>
1111
<AssemblyName>SalemOptimizer</AssemblyName>

Solver.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public Organism[] Solve()
2929
var organisms = new List<Organism>();
3030
var generations = 0;
3131

32-
for (int i = 0; i < 100; i++)
32+
for (int i = 0; i < 50; i++)
3333
{
3434
Organism organism = new Organism(this, problem);
3535
organisms.Add(organism);
@@ -43,7 +43,7 @@ public Organism[] Solve()
4343

4444
var newBest = false;
4545

46-
while (generations < 4000)
46+
while (generations < 2000)
4747
{
4848
if (cancellationToken.IsCancellationRequested) break;
4949

0 commit comments

Comments
 (0)