Skip to content

Commit

Permalink
Update ptah to GDP examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiirola committed Oct 12, 2024
1 parent 28a365d commit 68e7056
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pyomo/contrib/satsolver/tests/test_satsolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
# This software is distributed under the 3-clause BSD License.
# ___________________________________________________________________________

from os.path import abspath, dirname, join, normpath
from os.path import join

import pyomo.common.unittest as unittest

from pyomo.common.fileutils import import_file
from pyomo.common.fileutils import import_file, PYOMO_ROOT_DIR
from pyomo.contrib.satsolver.satsolver import satisfiable, z3_available
from pyomo.core.base.set_types import PositiveIntegers, NonNegativeReals, Binary
from pyomo.environ import (
Expand All @@ -33,8 +33,7 @@
)
from pyomo.gdp import Disjunct, Disjunction

currdir = dirname(abspath(__file__))
exdir = normpath(join(currdir, '..', '..', '..', 'examples', 'gdp'))
exdir = join(PYOMO_ROOT_DIR, 'examples', 'gdp')


@unittest.skipUnless(z3_available, "Z3 SAT solver is not available.")
Expand Down

0 comments on commit 68e7056

Please sign in to comment.