Skip to content

Commit e02ac4e

Browse files
Update solution/solution.go
Improved comment for GetStatus interface method. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fe8c57c commit e02ac4e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎solution/solution.go‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@ type Solution interface {
3434
// fmt.Println("Value of x1 in solution:", x1Value)
3535
GetValueMap() map[uint64]float64
3636

37-
// GetStatus
37+
// GetStatus returns the status of the solution (e.g., optimal, infeasible, etc.).
38+
//
39+
// The returned value is of type solution_status.SolutionStatus, which indicates
40+
// whether the solution is optimal, infeasible, unbounded, or has another status.
41+
//
42+
// Example usage:
43+
// status := solution.GetStatus()
44+
// fmt.Println("Solution status:", status)
3845
GetStatus() solution_status.SolutionStatus
3946

4047
// GetProblem returns the optimization problem that this solution is for

0 commit comments

Comments
 (0)