Skip to content
Snippets Groups Projects
Commit 1b059ee3 authored by chsieh16's avatar chsieh16
Browse files

Fix bug in adding ultimate bound

parent 8b74f63d
No related branches found
No related tags found
No related merge requests found
...@@ -197,7 +197,7 @@ class DTreeGEMStanleyGurobiTeacher(DTreeGurobiTeacherBase): ...@@ -197,7 +197,7 @@ class DTreeGEMStanleyGurobiTeacher(DTreeGurobiTeacherBase):
lb=0.0, ub=NEW_RAW_ANG_ERR_LIM) lb=0.0, ub=NEW_RAW_ANG_ERR_LIM)
m.addConstr(new_lya_val == gp.norm(new_truth, float(self._norm_ord))) m.addConstr(new_lya_val == gp.norm(new_truth, float(self._norm_ord)))
m.addConstr(new_lya_val >= old_lya_val, name="Non-decreasing Error") # Tracking error is non-decreasing m.addConstr(new_lya_val >= bound_new_lya_val, name="Non-decreasing Error") # Tracking error is non-decreasing
m.update() m.update()
def _add_objective(self) -> None: def _add_objective(self) -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment