Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
min_cost_flow.cc File Reference
#include "ortools/graph/min_cost_flow.h"
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <limits>
#include <string>
#include <vector>
#include "absl/flags/flag.h"
#include "absl/strings/str_format.h"
#include "absl/strings/string_view.h"
#include "ortools/base/dump_vars.h"
#include "ortools/base/mathutil.h"
#include "ortools/graph/graph.h"
#include "ortools/graph/graphs.h"
#include "ortools/graph/max_flow.h"
#include "ortools/util/saturated_arithmetic.h"

Go to the source code of this file.

Namespaces

namespace  operations_research
 In SWIG mode, we don't want anything besides these top-level includes.
 

Functions

 ABSL_FLAG (int64_t, min_cost_flow_alpha, 5, "Divide factor for epsilon at each refine step.")
 
 ABSL_FLAG (bool, min_cost_flow_check_feasibility, true, "Check that the graph has enough capacity to send all supplies " "and serve all demands. Also check that the sum of supplies " "is equal to the sum of demands.")
 
 ABSL_FLAG (bool, min_cost_flow_check_balance, true, "Check that the sum of supplies is equal to the sum of demands.")
 
 ABSL_FLAG (bool, min_cost_flow_check_result, true, "Check that the result is valid.")
 

Function Documentation

◆ ABSL_FLAG() [1/4]

ABSL_FLAG ( bool ,
min_cost_flow_check_balance ,
true ,
"Check that the sum of supplies is equal to the sum of demands."  )

◆ ABSL_FLAG() [2/4]

ABSL_FLAG ( bool ,
min_cost_flow_check_feasibility ,
true ,
"Check that the graph has enough capacity to send all supplies " "and serve all demands. Also check that the sum of supplies " "is equal to the sum of demands."  )

◆ ABSL_FLAG() [3/4]

ABSL_FLAG ( bool ,
min_cost_flow_check_result ,
true ,
"Check that the result is valid."  )

◆ ABSL_FLAG() [4/4]

ABSL_FLAG ( int64_t ,
min_cost_flow_alpha ,
5 ,
"Divide factor for epsilon at each refine step."  )

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.

Todo
(user): Remove these flags and expose the parameters in the API. New clients, please do not use these flags!