Google OR-Tools
v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
names_removal.h
Go to the documentation of this file.
1
// Copyright 2010-2025 Google LLC
2
// Licensed under the Apache License, Version 2.0 (the "License");
3
// you may not use this file except in compliance with the License.
4
// You may obtain a copy of the License at
5
//
6
// http://www.apache.org/licenses/LICENSE-2.0
7
//
8
// Unless required by applicable law or agreed to in writing, software
9
// distributed under the License is distributed on an "AS IS" BASIS,
10
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
// See the License for the specific language governing permissions and
12
// limitations under the License.
13
14
// Functions to remove names from models and updates.
15
//
16
// Input models can contain duplicated names which MathOpt solvers will
17
// refuse. The functions in this header can be use to mitigate that.
18
//
19
// These functions can also be used to anonymize models before saving them.
20
#ifndef OR_TOOLS_MATH_OPT_IO_NAMES_REMOVAL_H_
21
#define OR_TOOLS_MATH_OPT_IO_NAMES_REMOVAL_H_
22
23
#include "
ortools/math_opt/model.pb.h
"
24
#include "
ortools/math_opt/model_update.pb.h
"
25
26
namespace
operations_research::math_opt
{
27
28
// Removes the model, variables and constraints names of the provided model.
29
void
RemoveNames
(
ModelProto
& model);
30
31
// Removes the variables and constraints names of the provided update.
32
void
RemoveNames
(
ModelUpdateProto
& update);
33
34
}
// namespace operations_research::math_opt
35
36
#endif
// OR_TOOLS_MATH_OPT_IO_NAMES_REMOVAL_H_
operations_research::math_opt::ModelProto
Definition
model.pb.h:2178
operations_research::math_opt::ModelUpdateProto
Definition
model_update.pb.h:2199
model.pb.h
model_update.pb.h
operations_research::math_opt
An object oriented wrapper for quadratic constraints in ModelStorage.
Definition
gurobi_isv.cc:28
operations_research::math_opt::RemoveNames
void RemoveNames(ModelProto &model)
Removes the model, variables and constraints names of the provided model.
Definition
names_removal.cc:32
ortools
math_opt
io
names_removal.h
Generated by
1.14.0