OR-Tools  9.3
lagrangian_relaxation.cc File Reference

Go to the source code of this file.

Functions

 ABSL_FLAG (double, step_size, 0.95, "Stepsize for gradient ascent, determined as step_size^t.")
 
 ABSL_FLAG (int, max_iterations, 1000, "Max number of iterations for gradient ascent.")
 
 ABSL_FLAG (bool, dualize_resource_1, true, "If true, the side constraint associated to resource 1 is dualized.")
 
 ABSL_FLAG (bool, dualize_resource_2, false, "If true, the side constraint associated to resource 2 is dualized.")
 
 ABSL_FLAG (bool, lagrangian_output, false, "If true, shows the iteration log of the subgradient ascent " "procedure use to solve the Lagrangian problem")
 
int main (int argc, char **argv)
 

Variables

constexpr double kZeroTol = 1.0e-8
 

Function Documentation

◆ ABSL_FLAG() [1/5]

ABSL_FLAG ( bool  ,
dualize_resource_1  ,
true  ,
"If  true,
the side constraint associated to resource 1 is dualized."   
)

◆ ABSL_FLAG() [2/5]

ABSL_FLAG ( bool  ,
dualize_resource_2  ,
false  ,
"If  true,
the side constraint associated to resource 2 is dualized."   
)

◆ ABSL_FLAG() [3/5]

ABSL_FLAG ( bool  ,
lagrangian_output  ,
false  ,
"If  true,
shows the iteration log of the subgradient ascent " "procedure use to solve the Lagrangian problem"   
)

◆ ABSL_FLAG() [4/5]

ABSL_FLAG ( double  ,
step_size  ,
0.  95,
"Stepsize for gradient  ascent,
determined as step_size^t."   
)

◆ ABSL_FLAG() [5/5]

ABSL_FLAG ( int  ,
max_iterations  ,
1000  ,
"Max number of iterations for gradient ascent."   
)

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 485 of file lagrangian_relaxation.cc.

Variable Documentation

◆ kZeroTol

constexpr double kZeroTol = 1.0e-8
constexpr

Definition at line 115 of file lagrangian_relaxation.cc.