generate proto3 version of the linear solver proto in C#
This commit is contained in:
@@ -119,6 +119,19 @@ $(GEN_DIR)/ortools/constraint_solver/RoutingEnums.pb.cs: \
|
||||
--csharp_opt=file_extension=.pb.cs \
|
||||
$(SRC_DIR)$Sortools$Sconstraint_solver$Srouting_enums.proto
|
||||
|
||||
$(GEN_DIR)/ortools/linear_solver/linear_solver.proto: \
|
||||
$(SRC_DIR)/ortools/linear_solver/linear_solver.proto \
|
||||
| $(GEN_DIR)/ortools/linear_solver
|
||||
$(SED) -f tools$Sproto2_to_proto3.sed $(SRC_DIR)/ortools/linear_solver/linear_solver.proto > $(GEN_DIR)/ortools/linear_solver/linear_solver.proto
|
||||
|
||||
$(GEN_DIR)/ortools/linear_solver/LinearSolver.pb.cs: \
|
||||
$(GEN_DIR)/ortools/linear_solver/linear_solver.proto \
|
||||
| $(GEN_DIR)/ortools/linear_solver
|
||||
$(PROTOC) --proto_path=$(GEN_DIR) --proto_path=$(SRC_DIR) \
|
||||
--csharp_out=$(GEN_PATH)$Sortools$Slinear_solver \
|
||||
--csharp_opt=file_extension=.pb.cs \
|
||||
$(GEN_DIR)$Sortools$Slinear_solver$Slinear_solver.proto
|
||||
|
||||
$(GEN_DIR)/ortools/sat/CpModel.pb.cs: \
|
||||
$(SRC_DIR)/ortools/sat/cp_model.proto \
|
||||
| $(GEN_DIR)/ortools/sat
|
||||
|
||||
@@ -419,8 +419,8 @@ message MPModelRequest {
|
||||
// program?).
|
||||
// This must remain consistent with MPSolver::OptimizationProblemType.
|
||||
enum SolverType {
|
||||
GLOP_LINEAR_PROGRAMMING = 2; // Recommended default for LP models.
|
||||
CLP_LINEAR_PROGRAMMING = 0;
|
||||
GLOP_LINEAR_PROGRAMMING = 2; // Recommended default for LP models.
|
||||
GLPK_LINEAR_PROGRAMMING = 1;
|
||||
GUROBI_LINEAR_PROGRAMMING = 6; // Commercial, needs a valid license.
|
||||
XPRESS_LINEAR_PROGRAMMING = 101; // Commercial, needs a valid license. NOLINT
|
||||
|
||||
3
tools/proto2_to_proto3.sed
Normal file
3
tools/proto2_to_proto3.sed
Normal file
@@ -0,0 +1,3 @@
|
||||
s| \[default = [^;]*\]||g
|
||||
s|proto2|proto3|g
|
||||
|
||||
Reference in New Issue
Block a user