package io.jenetics.example;

import static java.lang.Math.cos;
import static java.lang.Math.sin;

import io.jenetics.Optimize;

import io.jenetics.ext.moea.Vec;
import io.jenetics.ext.moea.VecFactory;

public class MixedMOEAOptimization {

	private static final VecFactory<double[]> VEC_FACTORY =
		VecFactory.ofDoubleVec(
			Optimize.MAXIMUM,
			Optimize.MINIMUM,
			Optimize.MAXIMUM,
			Optimize.MINIMUM,
			Optimize.MAXIMUM
		);

	static Vec<double[]> fitness(final double[] point) {
		final double x = point[0];
		final double y = point[1];
		return VEC_FACTORY.newVec(new double[] {
			sin(x)*y,
			cos(y)*x,
			sin(x + y),
			cos(x + y)*x,
			x
		});
	}

}

@@ -1,8 +1,752 @@
+/*%0A * Java Genetic Algorithm Library (@__identifier__@).%0A * Copyright (c) @__year__@ Franz Wilhelmst%C3%B6tter%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A *%0A * Author:%0A *    Franz Wilhelmst%C3%B6tter (franz.wilhelmstoetter@gmail.com)%0A */%0A
 package 
@@ -940,16 +940,109 @@
 ctory;%0A%0A
+/**%0A * @author %3Ca href=%22mailto:franz.wilhelmstoetter@gmail.com%22%3EFranz Wilhelmst%C3%B6tter%3C/a%3E%0A */%0A
 public c

Add copyright header.