mgo.test.TestFunctionSMSEMOEA.scala Maven / Gradle / Ivy
The newest version!
///*
// * Copyright (C) 2012 Romain Reuillon
// *
// * This program is free software: you can redistribute it and/or modify
// * it under the terms of the GNU General Public License as published by
// * the Free Software Foundation, either version 3 of the License, or
// * (at your option) any later version.
// *
// * This program is distributed in the hope that it will be useful,
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// * GNU General Public License for more details.
// *
// * You should have received a copy of the GNU General Public License
// * along with this program. If not, see .
// */
//
//package mgo.test
//
//import mgo.evolution._
//import util.Random
//import scalax.io.Resource
//
//object TestFunctionSMSEMOEA extends App {
//
// implicit val rng = new Random
//
// val smsemoea =
// new ZDT4 with SMSEMOEA with HyperVolumeStabilityTermination {
// def windowSize = 100
// def deviationEpsilon = 0.001
// def mu = 200
// def lambda = 200
// def genomeSize = 10
// def referencePoint = IndexedSeq(1000.0, 1000.0)
// }
//
// val res =
// smsemoea.evolve.untilConverged {
// s =>
// println(s.generation + " " + s.terminationState)
// }.population
//
// val output = Resource.fromFile("/tmp/res.csv")
// for {
// r <- res.toIndividuals
// } {
// def line = smsemoea.scale(smsemoea.values.get(r.genome)) ++ smsemoea.fitness(r)
// output.append(line.mkString(",") + "\n")
// }
//
//}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy