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 |
Make it an abstract function?
QAOA/qaoa/problems/base_problem.py
Lines 125 to 139 in 4d21272