Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::fz::SolutionOutputSpecs Struct Reference

#include <model.h>

Classes

struct  Bounds
 

Public Member Functions

std::string DebugString () const
 

Static Public Member Functions

static SolutionOutputSpecs SingleVariable (absl::string_view name, Variable *variable, bool display_as_boolean)
 Will output: name = <variable value>.
 
static SolutionOutputSpecs MultiDimensionalArray (absl::string_view name, std::vector< Bounds > bounds, std::vector< Variable * > flat_variables, bool display_as_boolean)
 
static SolutionOutputSpecs VoidOutput ()
 Empty output.
 

Public Attributes

std::string name
 
Variablevariable
 
std::vector< Variable * > flat_variables
 
std::vector< Boundsbounds
 
bool display_as_boolean
 

Detailed Description

Information on what should be displayed when a solution is found. It follows the flatzinc specification (www.minizinc.org).

Definition at line 308 of file model.h.

Member Function Documentation

◆ DebugString()

std::string operations_research::fz::SolutionOutputSpecs::DebugString ( ) const

Definition at line 1008 of file model.cc.

◆ MultiDimensionalArray()

SolutionOutputSpecs operations_research::fz::SolutionOutputSpecs::MultiDimensionalArray ( absl::string_view name,
std::vector< Bounds > bounds,
std::vector< Variable * > flat_variables,
bool display_as_boolean )
static

Will output (for example): name = array2d(min1..max1, min2..max2, [list of variable values]) for a 2d array (bounds.size() == 2).

Definition at line 989 of file model.cc.

◆ SingleVariable()

SolutionOutputSpecs operations_research::fz::SolutionOutputSpecs::SingleVariable ( absl::string_view name,
Variable * variable,
bool display_as_boolean )
static

Will output: name = <variable value>.

Definition at line 980 of file model.cc.

◆ VoidOutput()

SolutionOutputSpecs operations_research::fz::SolutionOutputSpecs::VoidOutput ( )
static

Empty output.

Definition at line 1001 of file model.cc.

Member Data Documentation

◆ bounds

std::vector<Bounds> operations_research::fz::SolutionOutputSpecs::bounds

These are the starts and ends of intervals for displaying (potentially multi-dimensional) arrays.

Definition at line 337 of file model.h.

◆ display_as_boolean

bool operations_research::fz::SolutionOutputSpecs::display_as_boolean

Definition at line 338 of file model.h.

◆ flat_variables

std::vector<Variable*> operations_research::fz::SolutionOutputSpecs::flat_variables

Definition at line 334 of file model.h.

◆ name

std::string operations_research::fz::SolutionOutputSpecs::name

Definition at line 332 of file model.h.

◆ variable

Variable* operations_research::fz::SolutionOutputSpecs::variable

Definition at line 333 of file model.h.


The documentation for this struct was generated from the following files: