-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Debabrata Acharya
authored and
Debabrata Acharya
committed
Jun 7, 2020
1 parent
197e627
commit 8f2f25b
Showing
12 changed files
with
84 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
src/main/java/com/debacharya/nsgaii/objectivefunction/ZDT1_1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/main/java/com/debacharya/nsgaii/objectivefunction/ZDT1_2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import com.debacharya.nsgaii.Reporter; | ||
|
||
import java.io.FileWriter; | ||
import java.io.IOException; | ||
import java.nio.file.Files; | ||
import java.nio.file.Paths; | ||
|
||
public class FileTest { | ||
|
||
public static void main(String[] args) throws IOException { | ||
|
||
Files.createDirectories(Paths.get("abc/xyz/")); | ||
Files.createDirectories(Paths.get("")); | ||
|
||
try { | ||
FileWriter writer = new FileWriter("abc/xyz/test.txt"); | ||
|
||
writer.write("test"); | ||
writer.close(); | ||
} catch (Exception e) { | ||
System.out.println("\n!!! COULD NOT WRITE FILE TO DISK!\n\n"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import com.debacharya.nsgaii.Reporter; | ||
import com.debacharya.nsgaii.datastructure.AbstractAllele; | ||
import com.debacharya.nsgaii.plugin.DefaultPluginProvider; | ||
|
||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
public class GeneticCodeProducerTest { | ||
|
||
public static void main(String[] args) { | ||
|
||
List<? extends AbstractAllele> geneticCode = DefaultPluginProvider.defaultGeneticCodeProducer().produce(7000); | ||
|
||
Reporter.reportGeneticCode(geneticCode.stream().map(e -> (AbstractAllele) e).collect(Collectors.toList())); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import com.debacharya.nsgaii.Configuration; | ||
import com.debacharya.nsgaii.NSGA2; | ||
import com.debacharya.nsgaii.Reporter; | ||
import com.debacharya.nsgaii.datastructure.Population; | ||
|
||
public class NSGA2Test { | ||
|
||
public static void main(String[] args) { | ||
|
||
NSGA2 nsga2 = new NSGA2(); | ||
Configuration configuration = new Configuration(); | ||
NSGA2 nsga2 = new NSGA2(configuration); | ||
Population paretoFront = nsga2.run(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters