lib/solve.rb in solve-4.0.2 vs lib/solve.rb in solve-4.0.3
- old
+ new
@@ -39,9 +39,10 @@
if engine_class.nil?
raise Errors::InvalidEngine, "Engine `#{selected_engine}` is not supported. Valid values are `:ruby`, `:gecode`"
else
engine_class.activate
end
+
@engine = selected_engine
end
# A quick solve. Given the "world" as we know it (the graph) and a list of
# requirements (demands) which must be met. Return me the best solution of