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
from executioner.salib import * | |
from SALib.sample import saltelli | |
from SALib.analyze import sobol | |
problem = { | |
'num_vars': 11, | |
'names': ['x1', 'x2', 'x3', 'x4', 'x5', 'x6', 'x7', 'x8', 'x9', 'x10', 'x11'], | |
'bounds': [[0, 1], [0, 1], [0, 1], [0, 1], [0, 1], [0, 1], [0, 1], [0, 1], | |
[0, 1], [0, 1], [0, 1]] | |
} |
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
import java.util.Comparator; | |
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.util.Map; | |
import java.util.Properties; | |
import java.util.concurrent.Semaphore; | |
import org.apache.commons.math3.random.MersenneTwister; | |
import org.apache.commons.math3.random.RandomAdaptor; | |
import org.apache.commons.math3.random.SynchronizedRandomGenerator; |
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 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
public class ScaledProblem implements Problem { | |
private final Problem problem; | |
private final double[] factors; | |
public ScaledProblem(Problem problem, double base) { | |
super(); | |
this.problem = problem; | |
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
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) { |
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 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 <antonio@lcc.uma.es> | |
// Juan J. Durillo <durillo@lcc.uma.es> | |
// | |
// 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 |
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
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 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 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 |
OlderNewer