choco.kernel.model.constraints.automaton.penalty
Class LinearPenaltyFunction
java.lang.Object
choco.kernel.model.constraints.automaton.penalty.AbstractPenaltyFunction
choco.kernel.model.constraints.automaton.penalty.LinearPenaltyFunction
- All Implemented Interfaces:
- IPenaltyFunction
public class LinearPenaltyFunction
- extends AbstractPenaltyFunction
Created by IntelliJ IDEA.
User: julien
Date: May 3, 2010
Time: 5:49:24 PM
Constructor Summary |
LinearPenaltyFunction(int min,
int minPref,
int minPenalty,
int max,
int maxPref,
int maxPenalty)
|
Method Summary |
int |
penalty(int value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinearPenaltyFunction
public LinearPenaltyFunction(int min,
int minPref,
int minPenalty,
int max,
int maxPref,
int maxPenalty)
penalty
public int penalty(int value)
- Specified by:
penalty
in interface IPenaltyFunction
- Specified by:
penalty
in class AbstractPenaltyFunction
Copyright © 2012. All Rights Reserved.