14#ifndef OR_TOOLS_MODEL_BUILDER_WRAPPERS_MODEL_BUILDER_HELPER_H_
15#define OR_TOOLS_MODEL_BUILDER_WRAPPERS_MODEL_BUILDER_HELPER_H_
21#include "ortools/linear_solver/linear_solver.pb.h"
46 const operations_research::MPModelProto& input_model,
51 const operations_research::MPModelProto& input_model,
56 const std::string& mps_string);
58 const std::string& mps_file);
60 const std::string& lp_string);
62 const std::string& lp_file);
80 operations_research::MPSolutionResponse
Solve(
81 const operations_research::MPModelRequest& request);
87 void SetLogCallback(std::function<
void(
const std::string&)> log_callback);
91 std::atomic<bool> interrupt_solve_;
92 std::function<void(
const std::string&)> log_callback_;
virtual void NewMessage(const std::string &message)=0
static operations_research::MPModelProto ImportFromLpFile(const std::string &lp_file)
static operations_research::MPModelProto ImportFromMpsString(const std::string &mps_string)
static operations_research::MPModelProto ImportFromMpsFile(const std::string &mps_file)
static std::string ExportModelProtoToMpsString(const operations_research::MPModelProto &input_model, const operations_research::MPModelExportOptions &options=MPModelExportOptions())
static operations_research::MPModelProto ImportFromLpString(const std::string &lp_string)
static std::string ExportModelProtoToLpString(const operations_research::MPModelProto &input_model, const operations_research::MPModelExportOptions &options=MPModelExportOptions())
void SetLogCallbackFromDirectorClass(LogCallback *log_callback)
void SetLogCallback(std::function< void(const std::string &)> log_callback)
operations_research::MPSolutionResponse Solve(const operations_research::MPModelRequest &request)
Collection of objects used to extend the Constraint Solver library.