Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ examples/ cpp/

or-tools/examples/cpp/dimacs_assignment.cc File Reference

#include <algorithm>
#include <cstdlib>
#include "base/hash.h"
#include <string>
#include <vector>
#include "base/commandlineflags.h"
#include "base/logging.h"
#include "base/stringprintf.h"
#include "base/timer.h"
#include "algorithms/hungarian.h"
#include "graph/ebert_graph.h"
#include "graph/linear_assignment.h"
#include "cpp/parse_dimacs_assignment.h"
#include "cpp/print_dimacs_assignment.h"

Go to the source code of this file.

Namespaces

namespace  operations_research

Functions

 DEFINE_bool (assignment_compare_hungarian, false,"Compare result and speed against Hungarian method.")
 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
 DEFINE_string (assignment_problem_output_file,"","Print the problem to this file in DIMACS format (after layout ""is optimized, if applicable).")
CostValue operations_research::BuildAndSolveHungarianInstance (const LinearSumAssignment< ForwardStarGraph > &assignment)
void operations_research::DisplayAssignment (const LinearSumAssignment< ForwardStarGraph > &assignment)
int operations_research::solve_dimacs_assignment (int argc, char *argv[])
int main (int argc, char *argv[])
 namespace operations_research

Variables

static const char *const operations_research::kUsageTemplate = "usage: %s <filename>"


Function Documentation

DEFINE_bool ( assignment_compare_hungarian  ,
false  ,
"Compare result and speed against Hungarian method."   
)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

DEFINE_string ( assignment_problem_output_file  ,
""  ,
"Print the problem to this file in DIMACS format (after layout ""is optimized, if applicable)."   
)

int main ( int  argc,
char *  argv[] 
)

namespace operations_research

Definition at line 182 of file dimacs_assignment.cc.