Skip to content

Commit

Permalink
Fixed error in Extended Gradient Based Algorithm Class
Browse files Browse the repository at this point in the history
  • Loading branch information
mansueto committed Sep 12, 2023
1 parent b502643 commit 132b40a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self,
True, gurobi_method, gurobi_verbose,
0., 0., 0., 0.)

self._direction_solver = DirectionSolverFactory.get_direction_calculator(name_DDS, gurobi_method, gurobi_verbose)
self._direction_solver = DirectionSolverFactory.get_direction_calculator(name_DDS, gurobi_method, gurobi_verbose) if name_DDS is not None else None
self._line_search = LineSearchFactory.get_line_search(name_ALS, ALS_alpha_0, ALS_delta, ALS_beta, ALS_min_alpha) if name_ALS is not None else None

@staticmethod
Expand Down

0 comments on commit 132b40a

Please sign in to comment.