This document presents an algorithm for determining whether goals in a goal model can be achieved given a certain context. It introduces the concepts of pragmatic goals and achievability, which take into account that goal achievement depends on context. The algorithm evaluates goal models containing tasks, goals, quality constraints, and contexts to determine if goals are achievable. It was tested on sample goal models and medical emergency response scenarios to evaluate runtime, reliability, and scalability.