Google OR-Tools v9.15
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...

Detailed Description

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

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

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.

Constructor & Destructor Documentation

◆ MPAbsConstraint() [1/2]

OperationsResearch.MPAbsConstraint.MPAbsConstraint ( )
inline

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

◆ MPAbsConstraint() [2/2]

OperationsResearch.MPAbsConstraint.MPAbsConstraint ( MPAbsConstraint other)
inline

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

Member Function Documentation

◆ CalculateSize()

int OperationsResearch.MPAbsConstraint.CalculateSize ( )
inline

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

◆ ClearResultantVarIndex()

void OperationsResearch.MPAbsConstraint.ClearResultantVarIndex ( )
inline

Clears the value of the "resultant_var_index" field.

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

◆ ClearVarIndex()

void OperationsResearch.MPAbsConstraint.ClearVarIndex ( )
inline

Clears the value of the "var_index" field.

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

◆ Clone()

MPAbsConstraint OperationsResearch.MPAbsConstraint.Clone ( )
inline

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

◆ Equals() [1/2]

bool OperationsResearch.MPAbsConstraint.Equals ( MPAbsConstraint other)
inline

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

◆ Equals() [2/2]

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

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

◆ GetHashCode()

override int OperationsResearch.MPAbsConstraint.GetHashCode ( )
inline

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

◆ MergeFrom() [1/2]

void OperationsResearch.MPAbsConstraint.MergeFrom ( MPAbsConstraint other)
inline

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

◆ MergeFrom() [2/2]

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

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

◆ ToString()

override string OperationsResearch.MPAbsConstraint.ToString ( )
inline

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

◆ WriteTo()

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

Definition at line 3170 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 3104 of file LinearSolver.pb.cs.

◆ VarIndexFieldNumber

const int OperationsResearch.MPAbsConstraint.VarIndexFieldNumber = 1
static

Field number for the "var_index" field.

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

Property Documentation

◆ Descriptor

pbr.MessageDescriptor OperationsResearch.MPAbsConstraint.Descriptor
staticget

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

◆ HasResultantVarIndex

bool OperationsResearch.MPAbsConstraint.HasResultantVarIndex
get

Gets whether the "resultant_var_index" field is set.

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

◆ HasVarIndex

bool OperationsResearch.MPAbsConstraint.HasVarIndex
get

Gets whether the "var_index" field is set.

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

◆ Parser

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

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

◆ ResultantVarIndex

int OperationsResearch.MPAbsConstraint.ResultantVarIndex
getset

Definition at line 3110 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 3083 of file LinearSolver.pb.cs.


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