Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
OperationsResearch.MPGeneralConstraintProto Class Referencesealed

General constraints. See each individual proto type for more information. More...

Inheritance diagram for OperationsResearch.MPGeneralConstraintProto:

Public Types

enum  GeneralConstraintOneofCase {
  None = 0 , IndicatorConstraint = 2 , SosConstraint = 3 , QuadraticConstraint = 4 ,
  AbsConstraint = 5 , AndConstraint = 6 , OrConstraint = 7 , MinConstraint = 8 ,
  MaxConstraint = 9
}
 Enum of possible cases for the "general_constraint" oneof. More...
 

Public Member Functions

 MPGeneralConstraintProto ()
 
 MPGeneralConstraintProto (MPGeneralConstraintProto other)
 
MPGeneralConstraintProto Clone ()
 
void ClearName ()
 Clears the value of the "name" field.
 
void ClearGeneralConstraint ()
 
override bool Equals (object other)
 
bool Equals (MPGeneralConstraintProto other)
 
override int GetHashCode ()
 
override string ToString ()
 
void WriteTo (pb::CodedOutputStream output)
 
int CalculateSize ()
 
void MergeFrom (MPGeneralConstraintProto other)
 
void MergeFrom (pb::CodedInputStream input)
 

Static Public Attributes

const int NameFieldNumber = 1
 Field number for the "name" field.
 
const int IndicatorConstraintFieldNumber = 2
 Field number for the "indicator_constraint" field.
 
const int SosConstraintFieldNumber = 3
 Field number for the "sos_constraint" field.
 
const int QuadraticConstraintFieldNumber = 4
 Field number for the "quadratic_constraint" field.
 
const int AbsConstraintFieldNumber = 5
 Field number for the "abs_constraint" field.
 
const int AndConstraintFieldNumber = 6
 Field number for the "and_constraint" field.
 
const int OrConstraintFieldNumber = 7
 Field number for the "or_constraint" field.
 
const int MinConstraintFieldNumber = 8
 Field number for the "min_constraint" field.
 
const int MaxConstraintFieldNumber = 9
 Field number for the "max_constraint" field.
 

Properties

static pb::MessageParser< MPGeneralConstraintProtoParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
string Name [get, set]
 The name of the constraint.
 
bool HasName [get]
 Gets whether the "name" field is set.
 
global::OperationsResearch.MPIndicatorConstraint IndicatorConstraint [get, set]
 
global::OperationsResearch.MPSosConstraint SosConstraint [get, set]
 
global::OperationsResearch.MPQuadraticConstraint QuadraticConstraint [get, set]
 
global::OperationsResearch.MPAbsConstraint AbsConstraint [get, set]
 
global::OperationsResearch.MPArrayConstraint AndConstraint [get, set]
 All variables in "and" constraints must be Boolean. resultant_var = and(var_1, var_2... var_n)
 
global::OperationsResearch.MPArrayConstraint OrConstraint [get, set]
 All variables in "or" constraints must be Boolean. resultant_var = or(var_1, var_2... var_n)
 
global::OperationsResearch.MPArrayWithConstantConstraint MinConstraint [get, set]
 resultant_var = min(var_1, var_2, ..., constant)
 
global::OperationsResearch.MPArrayWithConstantConstraint MaxConstraint [get, set]
 resultant_var = max(var_1, var_2, ..., constant)
 
GeneralConstraintOneofCase GeneralConstraintCase [get]
 

Detailed Description

General constraints. See each individual proto type for more information.

Definition at line 1242 of file LinearSolver.pb.cs.

Member Enumeration Documentation

◆ GeneralConstraintOneofCase

Enum of possible cases for the "general_constraint" oneof.

Enumerator
None 
IndicatorConstraint 
SosConstraint 
QuadraticConstraint 
AbsConstraint 
AndConstraint 
OrConstraint 
MinConstraint 
MaxConstraint 

Definition at line 1454 of file LinearSolver.pb.cs.

Constructor & Destructor Documentation

◆ MPGeneralConstraintProto() [1/2]

OperationsResearch.MPGeneralConstraintProto.MPGeneralConstraintProto ( )
inline

Definition at line 1267 of file LinearSolver.pb.cs.

◆ MPGeneralConstraintProto() [2/2]

OperationsResearch.MPGeneralConstraintProto.MPGeneralConstraintProto ( MPGeneralConstraintProto other)
inline

Definition at line 1275 of file LinearSolver.pb.cs.

Member Function Documentation

◆ CalculateSize()

int OperationsResearch.MPGeneralConstraintProto.CalculateSize ( )
inline

Definition at line 1629 of file LinearSolver.pb.cs.

◆ ClearGeneralConstraint()

void OperationsResearch.MPGeneralConstraintProto.ClearGeneralConstraint ( )
inline

Definition at line 1474 of file LinearSolver.pb.cs.

◆ ClearName()

void OperationsResearch.MPGeneralConstraintProto.ClearName ( )
inline

Clears the value of the "name" field.

Definition at line 1338 of file LinearSolver.pb.cs.

◆ Clone()

MPGeneralConstraintProto OperationsResearch.MPGeneralConstraintProto.Clone ( )
inline

Definition at line 1309 of file LinearSolver.pb.cs.

◆ Equals() [1/2]

bool OperationsResearch.MPGeneralConstraintProto.Equals ( MPGeneralConstraintProto other)
inline

Definition at line 1487 of file LinearSolver.pb.cs.

◆ Equals() [2/2]

override bool OperationsResearch.MPGeneralConstraintProto.Equals ( object other)
inline

Definition at line 1481 of file LinearSolver.pb.cs.

◆ GetHashCode()

override int OperationsResearch.MPGeneralConstraintProto.GetHashCode ( )
inline

Definition at line 1509 of file LinearSolver.pb.cs.

◆ MergeFrom() [1/2]

void OperationsResearch.MPGeneralConstraintProto.MergeFrom ( MPGeneralConstraintProto other)
inline

Definition at line 1666 of file LinearSolver.pb.cs.

◆ MergeFrom() [2/2]

void OperationsResearch.MPGeneralConstraintProto.MergeFrom ( pb.CodedInputStream input)
inline

Definition at line 1729 of file LinearSolver.pb.cs.

◆ ToString()

override string OperationsResearch.MPGeneralConstraintProto.ToString ( )
inline

Definition at line 1529 of file LinearSolver.pb.cs.

◆ WriteTo()

void OperationsResearch.MPGeneralConstraintProto.WriteTo ( pb.CodedOutputStream output)
inline

Definition at line 1535 of file LinearSolver.pb.cs.

Member Data Documentation

◆ AbsConstraintFieldNumber

const int OperationsResearch.MPGeneralConstraintProto.AbsConstraintFieldNumber = 5
static

Field number for the "abs_constraint" field.

Definition at line 1379 of file LinearSolver.pb.cs.

◆ AndConstraintFieldNumber

const int OperationsResearch.MPGeneralConstraintProto.AndConstraintFieldNumber = 6
static

Field number for the "and_constraint" field.

Definition at line 1391 of file LinearSolver.pb.cs.

◆ IndicatorConstraintFieldNumber

const int OperationsResearch.MPGeneralConstraintProto.IndicatorConstraintFieldNumber = 2
static

Field number for the "indicator_constraint" field.

Definition at line 1343 of file LinearSolver.pb.cs.

◆ MaxConstraintFieldNumber

const int OperationsResearch.MPGeneralConstraintProto.MaxConstraintFieldNumber = 9
static

Field number for the "max_constraint" field.

Definition at line 1438 of file LinearSolver.pb.cs.

◆ MinConstraintFieldNumber

const int OperationsResearch.MPGeneralConstraintProto.MinConstraintFieldNumber = 8
static

Field number for the "min_constraint" field.

Definition at line 1423 of file LinearSolver.pb.cs.

◆ NameFieldNumber

const int OperationsResearch.MPGeneralConstraintProto.NameFieldNumber = 1
static

Field number for the "name" field.

Definition at line 1314 of file LinearSolver.pb.cs.

◆ OrConstraintFieldNumber

const int OperationsResearch.MPGeneralConstraintProto.OrConstraintFieldNumber = 7
static

Field number for the "or_constraint" field.

Definition at line 1407 of file LinearSolver.pb.cs.

◆ QuadraticConstraintFieldNumber

const int OperationsResearch.MPGeneralConstraintProto.QuadraticConstraintFieldNumber = 4
static

Field number for the "quadratic_constraint" field.

Definition at line 1367 of file LinearSolver.pb.cs.

◆ SosConstraintFieldNumber

const int OperationsResearch.MPGeneralConstraintProto.SosConstraintFieldNumber = 3
static

Field number for the "sos_constraint" field.

Definition at line 1355 of file LinearSolver.pb.cs.

Property Documentation

◆ AbsConstraint

global.OperationsResearch.MPAbsConstraint OperationsResearch.MPGeneralConstraintProto.AbsConstraint
getset

Definition at line 1382 of file LinearSolver.pb.cs.

◆ AndConstraint

global.OperationsResearch.MPArrayConstraint OperationsResearch.MPGeneralConstraintProto.AndConstraint
getset

All variables in "and" constraints must be Boolean. resultant_var = and(var_1, var_2... var_n)

Definition at line 1398 of file LinearSolver.pb.cs.

◆ Descriptor

pbr.MessageDescriptor OperationsResearch.MPGeneralConstraintProto.Descriptor
staticget

Definition at line 1255 of file LinearSolver.pb.cs.

◆ GeneralConstraintCase

GeneralConstraintOneofCase OperationsResearch.MPGeneralConstraintProto.GeneralConstraintCase
get

Definition at line 1468 of file LinearSolver.pb.cs.

◆ HasName

bool OperationsResearch.MPGeneralConstraintProto.HasName
get

Gets whether the "name" field is set.

Definition at line 1332 of file LinearSolver.pb.cs.

◆ IndicatorConstraint

global.OperationsResearch.MPIndicatorConstraint OperationsResearch.MPGeneralConstraintProto.IndicatorConstraint
getset

Definition at line 1346 of file LinearSolver.pb.cs.

◆ MaxConstraint

global.OperationsResearch.MPArrayWithConstantConstraint OperationsResearch.MPGeneralConstraintProto.MaxConstraint
getset

resultant_var = max(var_1, var_2, ..., constant)

Definition at line 1444 of file LinearSolver.pb.cs.

◆ MinConstraint

global.OperationsResearch.MPArrayWithConstantConstraint OperationsResearch.MPGeneralConstraintProto.MinConstraint
getset

resultant_var = min(var_1, var_2, ..., constant)

Definition at line 1429 of file LinearSolver.pb.cs.

◆ Name

string OperationsResearch.MPGeneralConstraintProto.Name
getset

The name of the constraint.

Definition at line 1323 of file LinearSolver.pb.cs.

◆ OrConstraint

global.OperationsResearch.MPArrayConstraint OperationsResearch.MPGeneralConstraintProto.OrConstraint
getset

All variables in "or" constraints must be Boolean. resultant_var = or(var_1, var_2... var_n)

Definition at line 1414 of file LinearSolver.pb.cs.

◆ Parser

pb.MessageParser<MPGeneralConstraintProto> OperationsResearch.MPGeneralConstraintProto.Parser
staticget

Definition at line 1251 of file LinearSolver.pb.cs.

◆ QuadraticConstraint

global.OperationsResearch.MPQuadraticConstraint OperationsResearch.MPGeneralConstraintProto.QuadraticConstraint
getset

Definition at line 1370 of file LinearSolver.pb.cs.

◆ SosConstraint

global.OperationsResearch.MPSosConstraint OperationsResearch.MPGeneralConstraintProto.SosConstraint
getset

Definition at line 1358 of file LinearSolver.pb.cs.


The documentation for this class was generated from the following file: