Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
parser_main.cc File Reference
#include <string>
#include "absl/flags/flag.h"
#include "absl/log/check.h"
#include "absl/strings/match.h"
#include "ortools/base/init_google.h"
#include "ortools/base/logging.h"
#include "ortools/base/timer.h"
#include "ortools/flatzinc/model.h"
#include "ortools/flatzinc/parser.h"
#include "ortools/flatzinc/presolve.h"
#include "ortools/util/logging.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::fz
 

Functions

 ABSL_FLAG (std::string, input, "", "Input file in the flatzinc format.")
 
 ABSL_FLAG (bool, print, false, "Print model.")
 
 ABSL_FLAG (bool, presolve, false, "Presolve loaded file.")
 
 ABSL_FLAG (bool, statistics, false, "Print model statistics")
 
void operations_research::fz::ParseFile (const std::string &filename, bool presolve)
 
int main (int argc, char **argv)
 

Function Documentation

◆ ABSL_FLAG() [1/4]

ABSL_FLAG ( bool ,
presolve ,
false ,
"Presolve loaded file."  )

◆ ABSL_FLAG() [2/4]

ABSL_FLAG ( bool ,
print ,
false ,
"Print model."  )

◆ ABSL_FLAG() [3/4]

ABSL_FLAG ( bool ,
statistics ,
false ,
"Print model statistics"  )

◆ ABSL_FLAG() [4/4]

ABSL_FLAG ( std::string ,
input ,
"" ,
"Input file in the flatzinc format."  )

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. This binary reads an input file in the flatzinc format (see http://www.minizinc.org/), parses it, and spits out the model it has built.

◆ main()

int main ( int argc,
char ** argv )

Definition at line 81 of file parser_main.cc.