Skip to content

Commit

Permalink
[Squash] Only add equality constraints to hopsy when n_eq > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
schmoelder committed Dec 9, 2023
1 parent 1011eda commit 397ea24
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions CADETProcess/optimization/optimizationProblem.py
Original file line number Diff line number Diff line change
Expand Up @@ -2691,11 +2691,12 @@ def compute_negative_log_likelihood(self, x):
simplify=simplify,
)

problem = hopsy.add_equality_constraints(
problem,
self.Aeq,
self.beq
)
if self.n_linear_equality_constraints > 0:
problem = hopsy.add_equality_constraints(
problem,
self.Aeq,
self.beq
)

return problem

Expand Down

0 comments on commit 397ea24

Please sign in to comment.