Change proto to/from file API to use absl::StatusOr; add reader/writer proto_file to model_builder

This commit is contained in:
Laurent Perron
2023-11-20 16:13:03 +01:00
parent dd57344ef2
commit 72f274f844
27 changed files with 229 additions and 524 deletions

View File

@@ -19,7 +19,6 @@
#include <string>
#include "ortools/linear_solver/linear_solver.pb.h"
#include "ortools/sat/sat_parameters.pb.h"
#include "ortools/util/logging.h"
namespace operations_research {
@@ -29,7 +28,7 @@ namespace operations_research {
// If possible, std::move the request into this function call to avoid a copy.
//
// If you need to change the solver parameters, please use the
// EncodeSatParametersAsString() function below to set the request's
// EncodeParametersAsString() function to set the request's
// solver_specific_parameters field.
//
// The optional interrupt_solve can be used to interrupt the solve early. It