Model: jfaldanam/moostral-7B
Author: jfaldanam
Pipeline: text-generation
Library: peft
Tags: peft, safetensors, multi-objective optimization, jMetal, text-generation, dataset:jfaldanam/text2jMetal, license:apache-2.0, region:us
Card metadata: license: apache-2.0
pipeline_tag: text-generation
library_name: peft
widget: example_title: Problem Generation
text: ### Textual problem:
f(x) = exp(x[1]) + x[2]^2 + sin(x[3])

g(x) = x[1]^2 + exp(x[2]) + cos(x[3])

h(x) = tanh(x[1]) - x[2]*x[3] + sin(x[1])

Value ranges:
x[1] in [-3, 3]
x[2] in [-3, 3]
x[3] in [0, 2*PI]
### Java implementation:

output: text: package xyz.jfaldanam;

import java.util.List;
import org.uma.jmetal.problem.doubleproblem.impl.AbstractDoubleProblem;
import org.uma.jmetal.solution.doublesolution.DoubleSolution;

public class ProblemY extends AbstractDoubleProblem {

  /** Constructor */
  public ProblemY() {
    int numberOfVariables = 3;
    numberOfObjectives(3);
    numberOfConstraints(0);
    name("ProblemY");

    List<Double> lowerLimit = List.of(-3.0, -3.0, 0.0);
    List<Double> upperLimit = List.of(3.0, 3.0, 6.283);

    variableBounds(lowerLimit, upperLimit);
  }

  /** Evaluate() method */
  @Override
  public DoubleSolution evaluate(DoubleSolution solution) {
    double x1 = solution.variables().get(0);
    double x2 = solution.variables().get(1);
    double x3 = solution.variables().get(2);

    solution.objectives()[0] = Math.exp(x1) + Math.pow(x2, 2) + Math.sin(x3);
    solution.objectives()[1] = Math.pow(x1, 2) + Math.exp(x2) + Math.cos(x3);
    solution.objectives()[2] = Math.tanh(x1) - x2 * x3 + Math.sin(x1);

    return solution;
  }
}

tags: multi-objective optimization, jMetal
datasets: jfaldanam/text2jMetal
Likes: 0 | All-time downloads: 3
Created: 2024-04-10 07:11:08