Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
lp_solver.cc File Reference
#include "ortools/glop/lp_solver.h"
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <memory>
#include <string>
#include "absl/flags/flag.h"
#include "absl/log/check.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "google/protobuf/text_format.h"
#include "ortools/base/logging.h"
#include "ortools/base/version.h"
#include "ortools/glop/parameters.pb.h"
#include "ortools/glop/preprocessor.h"
#include "ortools/glop/revised_simplex.h"
#include "ortools/glop/status.h"
#include "ortools/glop/variables_info.h"
#include "ortools/linear_solver/linear_solver.pb.h"
#include "ortools/lp_data/lp_data.h"
#include "ortools/lp_data/lp_types.h"
#include "ortools/lp_data/lp_utils.h"
#include "ortools/lp_data/proto_utils.h"
#include "ortools/port/proto_utils.h"
#include "ortools/util/fp_utils.h"
#include "ortools/util/logging.h"
#include "ortools/util/file_util.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.
 
namespace  operations_research::glop
 

Functions

 ABSL_FLAG (bool, lp_dump_to_proto_file, false, "Tells whether do dump the problem to a protobuf file.")
 
 ABSL_FLAG (bool, lp_dump_compressed_file, true, "Whether the proto dump file is compressed.")
 
 ABSL_FLAG (bool, lp_dump_binary_file, false, "Whether the proto dump file is binary.")
 
 ABSL_FLAG (int, lp_dump_file_number, -1, "Number for the dump file, in the form name-000048.pb. " "If < 0, the file is automatically numbered from the number of " "calls to LPSolver::Solve().")
 
 ABSL_FLAG (std::string, lp_dump_dir, "/tmp", "Directory where dump files are written.")
 
 ABSL_FLAG (std::string, lp_dump_file_basename, "", "Base name for dump files. LinearProgram::name_ is used if " "lp_dump_file_basename is empty. If LinearProgram::name_ is " "empty, \"linear_program_dump_file\" is used.")
 
 ABSL_FLAG (std::string, glop_params, "", "Override any user parameters with the value of this flag. This is " "interpreted as a GlopParameters proto in text format.")
 

Function Documentation

◆ ABSL_FLAG() [1/7]

ABSL_FLAG ( bool ,
lp_dump_binary_file ,
false ,
"Whether the proto dump file is binary."  )

◆ ABSL_FLAG() [2/7]

ABSL_FLAG ( bool ,
lp_dump_compressed_file ,
true ,
"Whether the proto dump file is compressed."  )

◆ ABSL_FLAG() [3/7]

ABSL_FLAG ( bool ,
lp_dump_to_proto_file ,
false ,
"Tells whether do dump the problem to a protobuf file."  )

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): abstract this in some way to the port directory.

◆ ABSL_FLAG() [4/7]

ABSL_FLAG ( int ,
lp_dump_file_number ,
- 1,
"Number for the dump file )

◆ ABSL_FLAG() [5/7]

ABSL_FLAG ( std::string ,
glop_params ,
"" ,
"Override any user parameters with the value of this flag. This is " "interpreted as a GlopParameters proto in text format."  )

◆ ABSL_FLAG() [6/7]

ABSL_FLAG ( std::string ,
lp_dump_dir ,
"/tmp" ,
"Directory where dump files are written."  )

◆ ABSL_FLAG() [7/7]

ABSL_FLAG ( std::string ,
lp_dump_file_basename ,
"" ,
"Base name for dump files. LinearProgram::name_ is used if " "lp_dump_file_basename is empty. If LinearProgram::name_ is " " empty,
\"linear_program_dump_file\" is used."  )