jmetal.problems
Class IntRealProblem

java.lang.Object
  extended by jmetal.core.Problem
      extended by jmetal.problems.IntRealProblem
All Implemented Interfaces:
java.io.Serializable

public class IntRealProblem
extends Problem

Class representing a problem having N integer and M real variables. This is not a true problem; it is only intended as an example

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jmetal.core.Problem
length_, lowerLimit_, numberOfConstraints_, numberOfObjectives_, numberOfVariables_, problemName_, solutionType_, upperLimit_
 
Constructor Summary
IntRealProblem(java.lang.String solutionType)
          Constructor.
IntRealProblem(java.lang.String solutionType, int intVariables, int realVariables)
          Constructor.
 
Method Summary
 void evaluate(Solution solution)
          Evaluates a solution
 
Methods inherited from class jmetal.core.Problem
evaluateConstraints, getLength, getLowerLimit, getName, getNumberOfBits, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables, getPrecision, getPrecision, getSolutionType, getUpperLimit, setNumberOfVariables, setPrecision, setSolutionType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntRealProblem

public IntRealProblem(java.lang.String solutionType)
               throws java.lang.ClassNotFoundException
Constructor. Creates a default instance of the IntRealProblem problem.

Throws:
java.lang.ClassNotFoundException

IntRealProblem

public IntRealProblem(java.lang.String solutionType,
                      int intVariables,
                      int realVariables)
Constructor. Creates a new instance of the IntRealProblem problem.

Parameters:
intVariables - Number of integer variables of the problem
realVariables - Number of real variables of the problem
Method Detail

evaluate

public void evaluate(Solution solution)
              throws JMException
Evaluates a solution

Specified by:
evaluate in class Problem
Parameters:
solution - The solution to evaluate
Throws:
JMException