Skip to content

Make isFeasible abstract? #65

Description

@fgfuchs

Make it an abstract function?

def isFeasible(self, string):
"""
Check if a solution string is feasible.
This method provides a default implementation that always returns True.
Subclasses can override this method to implement custom feasibility checks.
Args:
string (str): A solution string or configuration to check.
Returns:
bool: True if the solution is feasible; otherwise, False.
"""
return True

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions