Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::LinearTerm Struct Reference

Detailed Description

Definition at line 170 of file variable_and_expressions.h.

#include <variable_and_expressions.h>

Public Member Functions

 LinearTerm (Variable variable, double coefficient)
LinearTerm operator- () const
LinearTermoperator*= (double d)
LinearTermoperator/= (double d)

Public Attributes

Variable variable
double coefficient

Constructor & Destructor Documentation

◆ LinearTerm()

operations_research::math_opt::LinearTerm::LinearTerm ( Variable variable,
double coefficient )
inline

Definition at line 1264 of file variable_and_expressions.h.

Member Function Documentation

◆ operator*=()

LinearTerm & operations_research::math_opt::LinearTerm::operator*= ( double d)
inline

Definition at line 1271 of file variable_and_expressions.h.

◆ operator-()

LinearTerm operations_research::math_opt::LinearTerm::operator- ( ) const
inline

Definition at line 1267 of file variable_and_expressions.h.

◆ operator/=()

LinearTerm & operations_research::math_opt::LinearTerm::operator/= ( double d)
inline

Definition at line 1276 of file variable_and_expressions.h.

Member Data Documentation

◆ coefficient

double operations_research::math_opt::LinearTerm::coefficient

Definition at line 181 of file variable_and_expressions.h.

◆ variable

Variable operations_research::math_opt::LinearTerm::variable

Definition at line 180 of file variable_and_expressions.h.


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