es.udc.gii.common.eaf.problem.constraint
Class Constraint
java.lang.Object
es.udc.gii.common.eaf.problem.constraint.Constraint
- All Implemented Interfaces:
- Configurable
- Direct Known Subclasses:
- EqualityConstraint, InequalityConstraint
public abstract class Constraint
- extends java.lang.Object
- implements Configurable
This interface represents a constraint of a problem. The solution of a
problen can't violate this constraint.
- Author:
- Pilar Caama�o Sobrino
Method Summary |
void |
configure(org.apache.commons.configuration.Configuration conf)
|
abstract double |
evaluate(double[] values)
This methods evaluate a list of values with a function implemented by
a contraint. |
double |
getConstraintValue()
|
abstract boolean |
isViolated(double value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
constraint_value
private double constraint_value
Constraint
public Constraint()
evaluate
public abstract double evaluate(double[] values)
- This methods evaluate a list of values with a function implemented by
a contraint.
- Parameters:
values
-
- Returns:
- the constraint violation value of a list of values evaluated by
a implemented constraint.
isViolated
public abstract boolean isViolated(double value)
getConstraintValue
public double getConstraintValue()
configure
public void configure(org.apache.commons.configuration.Configuration conf)
- Specified by:
configure
in interface Configurable