|
Cream version 1.4 Core API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.ac.kobe_u.cs.cream.Operation
jp.ac.kobe_u.cs.cream.Serialized.Swap
public class Serialized.Swap
This class represents an operation of swapping an order of two variables.
LocalSearch
Constructor Summary | |
---|---|
Serialized.Swap(int index,
int i,
int j)
Constructs the swap operation exchanging the order of two variables v[i] and v[j]. |
Method Summary | |
---|---|
void |
applyTo(Network network)
Applies the operation to the network to change the condition for finding a neighbor solution. |
boolean |
isTaboo(Operation op)
Returns true when op is a taboo operation relative to this operation (for example, op is the same operation with this operation). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Serialized.Swap(int index, int i, int j)
index
- index of the serialized constrainti
- index of the first variable (v[i])j
- index of the second variable (v[j])Method Detail |
---|
public void applyTo(Network network)
Operation
applyTo
in class Operation
network
- the networkpublic boolean isTaboo(Operation op)
Operation
isTaboo
in class Operation
op
- the operation to be checked
TabooSearch
|
Cream version 1.4 Core API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |