Skip to content

Commit

Permalink
add different scores for decomposition
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgen-lentz committed Dec 8, 2024
1 parent 9eeb7c8 commit f90b5e9
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/pygcgopt/decomposition.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,38 @@ cdef class PartialDecomposition:
"""
return self.thisptr.getMaxWhiteScore()

@property
def classic_score(self):
return self.thisptr.getScore(GCGfindScore(self.thisptr.getDetprobdata().getScip(), str_conversion("classic")))

@property
def border_area_score(self):
return self.thisptr.getScore(GCGfindScore(self.thisptr.getDetprobdata().getScip(), str_conversion("border area")))

@property
def max_for_white_score(self):
return self.thisptr.getScore(GCGfindScore(self.thisptr.getDetprobdata().getScip(), str_conversion("max foreseeing white")))

@property
def set_part_for_white_score(self):
return self.thisptr.getScore(GCGfindScore(self.thisptr.getDetprobdata().getScip(), str_conversion("ppc-max-white with aggregation info")))

@property
def max_for_white_agg_score(self):
return self.thisptr.getScore(GCGfindScore(self.thisptr.getDetprobdata().getScip(), str_conversion"max foreseeing white with aggregation info")))

@property
def set_part_for_white_agg_score(self):
return self.thisptr.getScore(GCGfindScore(self.thisptr.getDetprobdata().getScip(), str_conversion("ppc-max-white")))

@property
def benders_score(self):
return self.thisptr.getScore(GCGfindScore(self.thisptr.getDetprobdata().getScip(), str_conversion("experimental benders score")))

@property
def strong_decomp_score(self):
return self.thisptr.getScore(GCGfindScore(self.thisptr.getDetprobdata().getScip(), str_conversion("strong decomposition score")))

def addClockTime(self, double clocktime):
"""adds detection time of one detector
Expand Down

0 comments on commit f90b5e9

Please sign in to comment.