MCPcopy Create free account
hub / github.com/davisking/dlib / set_subproblem_max_iterations

Method set_subproblem_max_iterations

dlib/optimization/optimization_oca.h:75–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 ) const { return sub_eps; }
74
75 void set_subproblem_max_iterations (
76 unsigned long sub_max_iter_
77 )
78 {
79 // make sure requires clause is not broken
80 DLIB_ASSERT(sub_max_iter_ > 0,
81 "\t void oca::set_subproblem_max_iterations"
82 << "\n\t max iterations must be greater than 0"
83 << "\n\t sub_max_iter_: " << sub_max_iter_
84 << "\n\t this: " << this
85 );
86
87 sub_max_iter = sub_max_iter_;
88 }
89
90 unsigned long get_subproblem_max_iterations (
91 ) const { return sub_max_iter; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected