- GitHub Staff
This file contains hidden or 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
import java.util.ArrayList; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Properties; | |
import org.moeaframework.Executor; | |
import org.moeaframework.algorithm.AbstractEvolutionaryAlgorithm; | |
import org.moeaframework.analysis.plot.Plot; | |
import org.moeaframework.core.Algorithm; | |
import org.moeaframework.core.EpsilonBoxDominanceArchive; |
This file contains hidden or 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
import java.io.IOException; | |
import java.io.StringReader; | |
import javax.script.Bindings; | |
import javax.script.ScriptEngine; | |
import javax.script.ScriptEngineManager; | |
import javax.script.ScriptException; | |
import javax.script.SimpleBindings; | |
import org.moeaframework.Executor; |
This file contains hidden or 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
import java.security.SecureRandom; | |
import java.util.Random; | |
import org.apache.commons.math3.random.MersenneTwister; | |
public class SynchronizedMersenneTwister extends Random { | |
private static final long serialVersionUID = -4586969514356530381L; | |
private static Random SEEDER; | |
This file contains hidden or 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
/* Copyright 2009-2016 David Hadka | |
* | |
* This file is part of the MOEA Framework. | |
* | |
* The MOEA Framework is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or (at your | |
* option) any later version. | |
* | |
* The MOEA Framework is distributed in the hope that it will be useful, but |
This file contains hidden or 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
/* Copyright 2009-2016 David Hadka | |
* | |
* This file is part of the MOEA Framework. | |
* | |
* The MOEA Framework is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or (at your | |
* option) any later version. | |
* | |
* The MOEA Framework is distributed in the hope that it will be useful, but |
This file contains hidden or 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
Instrumenter instrumenter = new Instrumenter() | |
.withProblem("UF1") | |
.withFrequency(100) | |
.attachApproximationSetCollector(); | |
new Executor() | |
.withProblem("UF1") | |
.withAlgorithm("NSGAII") | |
.withMaxEvaluations(10000) | |
.withInstrumenter(instrumenter) |
This file contains hidden or 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
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.ExecutionException; |
This file contains hidden or 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
// FPGAFitnessComparator.java | |
// | |
// Author: | |
// Antonio J. Nebro <[email protected]> | |
// Juan J. Durillo <[email protected]> | |
// | |
// Copyright (c) 2011 Antonio J. Nebro, Juan J. Durillo | |
// | |
// This program is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU Lesser General Public License as published by |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
private Algorithm newNSGAIII(TypedProperties properties, Problem problem) { | |
int divisionsOuter = 4; | |
int divisionsInner = 0; | |
if (properties.contains("divisionsOuter") && properties.contains("divisionsInner")) { | |
divisionsOuter = (int)properties.getDouble("divisionsOuter", 4); | |
divisionsInner = (int)properties.getDouble("divisionsInner", 0); | |
} else if (properties.contains("divisions")){ | |
divisionsOuter = (int)properties.getDouble("divisions", 4); | |
} else if (problem.getNumberOfObjectives() == 1) { |
NewerOlder