Skip to content

Commit

Permalink
Merge pull request #65 from UTA-WESOME/feature/beisert/fix_delta
Browse files Browse the repository at this point in the history
Feature/beisert/fix delta
  • Loading branch information
JBeisert authored Jan 2, 2024
2 parents 8980598 + ca4ef52 commit 35da12b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
## v0.0.28 - 27-12-2023
### Fixed
- Delta issue (whenever there are no possible relations)

## v0.0.27 - 27-12-2023
### Fixed
- Rounding error
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = uta-gms-engine
version = 0.0.27
version = 0.0.28
author = Filip Marciniak
author_email = filip.marciniak15@gmail.com
description = Engine for UTA GMS method
Expand Down
5 changes: 4 additions & 1 deletion src/utagmsengine/utils/solver_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,10 @@ def calculate_the_most_representative_function(
if len(alternatives_binary_variables[worst_best[0]]) > 1:
x += 1

problem += big_M * epsilon - delta
if 'delta' in problem.variablesDict():
problem += big_M * epsilon - delta
else:
problem += big_M * epsilon

problem.solve(solver=GLPK(msg=show_logs))

Expand Down

0 comments on commit 35da12b

Please sign in to comment.