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

Sets a variable's value to the absolute value of another variable. More...

Inheritance diagram for OperationsResearch.MPAbsConstraint:

Public Member Functions

 MPAbsConstraint ()
 
 MPAbsConstraint (MPAbsConstraint other)
 
MPAbsConstraint Clone ()
 
void ClearVarIndex ()
 Clears the value of the "var_index" field.
 
void ClearResultantVarIndex ()
 Clears the value of the "resultant_var_index" field.
 
override bool Equals (object other)
 
bool Equals (MPAbsConstraint other)
 
override int GetHashCode ()
 
override string ToString ()
 
void WriteTo (pb::CodedOutputStream output)
 
int CalculateSize ()
 
void MergeFrom (MPAbsConstraint other)
 
void MergeFrom (pb::CodedInputStream input)
 

Static Public Attributes

const int VarIndexFieldNumber = 1
 Field number for the "var_index" field.
 
const int ResultantVarIndexFieldNumber = 2
 Field number for the "resultant_var_index" field.
 

Properties

static pb::MessageParser< MPAbsConstraintParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
int VarIndex [get, set]
 Variable indices are relative to the "variable" field in MPModelProto. resultant_var = abs(var)
 
bool HasVarIndex [get]
 Gets whether the "var_index" field is set.
 
int ResultantVarIndex [get, set]
 
bool HasResultantVarIndex [get]
 Gets whether the "resultant_var_index" field is set.
 

Detailed Description

Sets a variable's value to the absolute value of another variable.

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

Constructor & Destructor Documentation

◆ MPAbsConstraint() [1/2]

OperationsResearch.MPAbsConstraint.MPAbsConstraint ( )
inline

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

◆ MPAbsConstraint() [2/2]

OperationsResearch.MPAbsConstraint.MPAbsConstraint ( MPAbsConstraint other)
inline

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

Member Function Documentation

◆ CalculateSize()

int OperationsResearch.MPAbsConstraint.CalculateSize ( )
inline

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

◆ ClearResultantVarIndex()

void OperationsResearch.MPAbsConstraint.ClearResultantVarIndex ( )
inline

Clears the value of the "resultant_var_index" field.

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

◆ ClearVarIndex()

void OperationsResearch.MPAbsConstraint.ClearVarIndex ( )
inline

Clears the value of the "var_index" field.

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

◆ Clone()

MPAbsConstraint OperationsResearch.MPAbsConstraint.Clone ( )
inline

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

◆ Equals() [1/2]

bool OperationsResearch.MPAbsConstraint.Equals ( MPAbsConstraint other)
inline

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

◆ Equals() [2/2]

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

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

◆ GetHashCode()

override int OperationsResearch.MPAbsConstraint.GetHashCode ( )
inline

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

◆ MergeFrom() [1/2]

void OperationsResearch.MPAbsConstraint.MergeFrom ( MPAbsConstraint other)
inline

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

◆ MergeFrom() [2/2]

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

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

◆ ToString()

override string OperationsResearch.MPAbsConstraint.ToString ( )
inline

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

◆ WriteTo()

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

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

Member Data Documentation

◆ ResultantVarIndexFieldNumber

const int OperationsResearch.MPAbsConstraint.ResultantVarIndexFieldNumber = 2
static

Field number for the "resultant_var_index" field.

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

◆ VarIndexFieldNumber

const int OperationsResearch.MPAbsConstraint.VarIndexFieldNumber = 1
static

Field number for the "var_index" field.

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

Property Documentation

◆ Descriptor

pbr.MessageDescriptor OperationsResearch.MPAbsConstraint.Descriptor
staticget

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

◆ HasResultantVarIndex

bool OperationsResearch.MPAbsConstraint.HasResultantVarIndex
get

Gets whether the "resultant_var_index" field is set.

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

◆ HasVarIndex

bool OperationsResearch.MPAbsConstraint.HasVarIndex
get

Gets whether the "var_index" field is set.

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

◆ Parser

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

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

◆ ResultantVarIndex

int OperationsResearch.MPAbsConstraint.ResultantVarIndex
getset

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

◆ VarIndex

int OperationsResearch.MPAbsConstraint.VarIndex
getset

Variable indices are relative to the "variable" field in MPModelProto. resultant_var = abs(var)

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


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