moved glpk import into optimize method.