Clean up the get solution function using new optlang features
Clean up the get solution function using new optlang features: a task in life-science-SWE1.0 (Harbor dataset). Title: Clean up the get solution function using new optlang features
The task
**Title:** Clean up the `get_solution` function using new optlang features
Part of scalingX/life-science-SWE1.0.