This commit is contained in:
lperron@google.com
2012-03-20 13:10:43 +00:00
parent e87f8ebcbd
commit f53b68cb87
3 changed files with 3 additions and 0 deletions

View File

@@ -268,6 +268,7 @@ int64 SolutionChecker::GetObjectiveCost() const {
return total_cost;
}
bool SolutionChecker::HasProcessMoved(const Process& process) const {
const ProcessIndex process_id = process.id();
const MachineIndex initial_machine_id = initial_assignments_.at(process_id);

View File

@@ -275,6 +275,7 @@ class SolutionChecker {
// document. Note this method assumes all hard constraints are satisfied.
int64 GetObjectiveCost() const;
private:
// Returns true if process doesn't run on the same machine in the
// initial assignment and in the new assignment.

View File

@@ -75,5 +75,6 @@ int main(int argc, char **argv) {
LG << "Solution is invalid." << endl;
}
return 0;
}