Lines Matching defs:solution
346 FunctionSample solution, bracket_low, bracket_high;
418 &solution,
419 summary) && !solution.value_is_valid) {
429 solution =
430 solution.value_is_valid && solution.value <= bracket_low.value
431 ? solution : bracket_low;
433 summary->optimal_step_size = solution.x;
637 // Returns true iff solution satisfies the strong Wolfe conditions. Otherwise,
639 // reaching max_num_iterations, solution is the step size amongst all those
644 FunctionSample* solution,
695 solution->value_is_valid = false;
704 // Set solution to bracket_low, as it is our best step size (smallest f())
707 *solution = bracket_low;
744 solution->x =
766 solution->value_is_valid =
767 function->Evaluate(solution->x,
768 &solution->value,
769 &solution->gradient);
770 solution->gradient_is_valid = solution->value_is_valid;
771 if (!solution->value_is_valid) {
777 solution->x, bracket_low.x, bracket_high.x);
786 << ", minimizing solution: " << *solution;
788 if ((solution->value > (initial_position.value
791 * solution->x)) ||
792 (solution->value >= bracket_low.value)) {
795 bracket_high = *solution;
800 if (fabs(solution->gradient) <=
805 << "Zoom phase found step size: " << solution->x
809 } else if (solution->gradient * (bracket_high.x - bracket_low.x) >= 0) {
813 bracket_low = *solution;
815 // Solution contains a valid point which satisfies the strong Wolfe