|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
Convenience class used by the iterator. More...

Public Member Functions | |
| CustomerAssignment (AddableInteger[] assignment) | |
| Constructor. | |
| CustomerAssignment (AddableInteger[] assignment, U utility) | |
| Constructor. | |
| void | setUtility (VehicleRoutingSpace< U > space) |
| Calculate the utility of the assignment. | |
| boolean | equals (Object o) |
| int | hashCode () |
| int | compareTo (CustomerAssignment< U > o) |
| AddableInteger[] | getAssignment () |
| U | getUtility () |
| ArrayList< CustomerAssignment< U > > | generateAssignmentList (AddableInteger zero, AddableInteger one, boolean[] fixed) |
| Method to generate a batch of new customer assignments based on this assignment. | |
| String | toString () |
Private Attributes | |
| AddableInteger[] | assignment |
| A customer assignment. | |
| U | utility |
| The utility of the assignment. | |
Convenience class used by the iterator.
It is outside and static to reduce memory consumption.
| <U> | the type of the utility values |
| frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.CustomerAssignment | ( | AddableInteger[] | assignment | ) |
Constructor.
| assignment | a customer assignment |
References assignment.
Referenced by compareTo(), equals(), and generateAssignmentList().
| frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.CustomerAssignment | ( | AddableInteger[] | assignment, |
| U | utility ) |
Constructor.
| assignment | a customer assignment |
| utility | the corresponding utility |
References assignment, and utility.
| int frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.compareTo | ( | CustomerAssignment< U > | o | ) |
References CustomerAssignment(), and utility.

| boolean frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.equals | ( | Object | o | ) |
References assignment, CustomerAssignment(), and equals().
Referenced by equals(), and generateAssignmentList().

| ArrayList< CustomerAssignment< U > > frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.generateAssignmentList | ( | AddableInteger | zero, |
| AddableInteger | one, | ||
| boolean[] | fixed ) |
Method to generate a batch of new customer assignments based on this assignment.
Every new assignment is equal to the old one, safe that one previously unserved customer is added
| zero | the domain value zero |
| one | the domain value one |
| fixed | tells this method which variables are not to be changed |
References assignment, CustomerAssignment(), equals(), frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.one, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.zero.
Referenced by frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.VRPiteratorBestFirst.iter().

| AddableInteger[] frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.getAssignment | ( | ) |
Referenced by frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.VRPiteratorBestFirst.iter().
| U frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.getUtility | ( | ) |
Referenced by frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.VRPiteratorBestFirst.iter().
| int frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.hashCode | ( | ) |
References assignment, and hashCode().
Referenced by hashCode(), and toString().

| void frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.setUtility | ( | VehicleRoutingSpace< U > | space | ) |
Calculate the utility of the assignment.
| space | the space used to calculate the utility |
References assignment, frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.getUtility(), utility, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.VehicleRoutingSpace().

| String frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.CustomerAssignment< U extends Addable< U > >.toString | ( | ) |
References hashCode(), and utility.

|
private |
A customer assignment.
Referenced by CustomerAssignment(), CustomerAssignment(), equals(), generateAssignmentList(), hashCode(), and setUtility().
|
private |
The utility of the assignment.
Referenced by compareTo(), CustomerAssignment(), setUtility(), and toString().