#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.
|
namespace | operations_research |
| In SWIG mode, we don't want anything besides these top-level includes.
|
|
|
| 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.") |
|
◆ 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
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!