NUCS 4.3.1__tar.gz → 4.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nucs-4.3.1 → nucs-4.4/NUCS.egg-info}/PKG-INFO +1 -1
- {nucs-4.3.1 → nucs-4.4}/NUCS.egg-info/SOURCES.txt +1 -2
- {nucs-4.3.1 → nucs-4.4}/NUCS.egg-info/top_level.txt +0 -2
- {nucs-4.3.1/NUCS.egg-info → nucs-4.4}/PKG-INFO +1 -1
- {nucs-4.3.1 → nucs-4.4}/docs/source/conf.py +2 -2
- {nucs-4.3.1 → nucs-4.4}/pyproject.toml +1 -1
- nucs-4.3.1/venv/bin/activate_this.py +0 -32
- {nucs-4.3.1 → nucs-4.4}/LICENSE.md +0 -0
- {nucs-4.3.1 → nucs-4.4}/NUCS.egg-info/dependency_links.txt +0 -0
- {nucs-4.3.1 → nucs-4.4}/NUCS.egg-info/requires.txt +0 -0
- {nucs-4.3.1 → nucs-4.4}/README.md +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/constants.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/alpha/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/alpha/__main__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/alpha/alpha_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/bibd/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/bibd/__main__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/bibd/bibd_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/donald/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/donald/__main__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/donald/donald_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/golomb/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/golomb/__main__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/golomb/golomb_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/knapsack/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/knapsack/__main__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/knapsack/knapsack_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/magic_sequence/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/magic_sequence/__main__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/magic_sequence/magic_sequence_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/magic_square/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/magic_square/__main__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/magic_square/magic_square_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/quasigroup/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/quasigroup/__main__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/quasigroup/quasigroup_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/queens/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/queens/__main__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/queens/queens_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/schur_lemma/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/schur_lemma/__main__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/schur_lemma/schur_lemma_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/sports_tournament_scheduling/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/sports_tournament_scheduling/__main__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/sports_tournament_scheduling/sports_tournament_scheduling_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/sudoku/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/sudoku/sudoku_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/tsp/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/tsp/__main__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/tsp/total_cost_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/tsp/tsp_instances.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/tsp/tsp_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/examples/tsp/tsp_var_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/heuristics/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/heuristics/first_not_instantiated_var_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/heuristics/greatest_domain_var_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/heuristics/heuristics.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/heuristics/max_regret_var_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/heuristics/max_value_dom_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/heuristics/mid_value_dom_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/heuristics/min_cost_dom_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/heuristics/min_value_dom_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/heuristics/smallest_domain_var_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/heuristics/split_high_dom_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/heuristics/split_low_dom_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/heuristics/value_dom_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/numba_helper.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/numpy_helper.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/problems/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/problems/circuit_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/problems/latin_square_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/problems/permutation_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/problems/problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/affine_eq_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/affine_geq_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/affine_leq_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/alldifferent_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/and_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/count_eq_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/dummy_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/element_iv_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/element_lic_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/element_liv_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/exactly_eq_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/exactly_true_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/gcc_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/lexicographic_leq_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/max_eq_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/max_leq_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/min_eq_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/min_geq_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/no_sub_cycle_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/permutation_aux_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/propagators.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/relation_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/propagators/scc_propagator.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/solvers/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/solvers/backtrack_solver.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/solvers/bound_consistency_algorithm.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/solvers/choice_points.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/solvers/consistency_algorithms.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/solvers/multiprocessing_solver.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/solvers/shaving_consistency_algorithm.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/nucs/solvers/solver.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/setup.cfg +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/examples/test_alpha.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/examples/test_bibd.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/examples/test_donald.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/examples/test_golomb.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/examples/test_knapsack.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/examples/test_latin_square.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/examples/test_magic_sequence.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/examples/test_magic_square.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/examples/test_quasigroup.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/examples/test_queens.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/examples/test_schur_lemma.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/examples/test_sports_tournament_scheduling.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/examples/test_sudokus.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/examples/test_tsp.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/heuristics/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/heuristics/test_max_value_dom_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/heuristics/test_mid_value_dom_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/heuristics/test_min_value_dom_heuristic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/problems/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/problems/test_circuit_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/problems/test_permutation_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/problems/test_problem.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_affine_eq.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_affine_geq.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_affine_leq.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_alldifferent.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_count_eq.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_element_iv.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_element_lic.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_element_liv.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_exactly_eq.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_gcc.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_lexicographic_leq.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_max_eq.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_max_leq.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_min_eq.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_min_geq.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_no_sub_cycle.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_relation.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/propagators/test_scc.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/solvers/__init__.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/solvers/test_backtrack_solver.py +0 -0
- {nucs-4.3.1 → nucs-4.4}/tests/solvers/test_multiprocessing_solver.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: NUCS
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.4
|
|
4
4
|
Summary: A Numpy and Numba based Python library for solving Constraint Satisfaction Problems over finite domains
|
|
5
5
|
Author-email: Yan Georget <yan.georget@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/yangeorget/nucs
|
|
@@ -147,5 +147,4 @@ tests/propagators/test_relation.py
|
|
|
147
147
|
tests/propagators/test_scc.py
|
|
148
148
|
tests/solvers/__init__.py
|
|
149
149
|
tests/solvers/test_backtrack_solver.py
|
|
150
|
-
tests/solvers/test_multiprocessing_solver.py
|
|
151
|
-
venv/bin/activate_this.py
|
|
150
|
+
tests/solvers/test_multiprocessing_solver.py
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: NUCS
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.4
|
|
4
4
|
Summary: A Numpy and Numba based Python library for solving Constraint Satisfaction Problems over finite domains
|
|
5
5
|
Author-email: Yan Georget <yan.georget@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/yangeorget/nucs
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
"""Activate virtualenv for current interpreter:
|
|
3
|
-
|
|
4
|
-
Use exec(open(this_file).read(), {'__file__': this_file}).
|
|
5
|
-
|
|
6
|
-
This can be used when you must use an existing Python interpreter, not the virtualenv bin/python.
|
|
7
|
-
"""
|
|
8
|
-
import os
|
|
9
|
-
import site
|
|
10
|
-
import sys
|
|
11
|
-
|
|
12
|
-
try:
|
|
13
|
-
abs_file = os.path.abspath(__file__)
|
|
14
|
-
except NameError:
|
|
15
|
-
raise AssertionError("You must use exec(open(this_file).read(), {'__file__': this_file}))")
|
|
16
|
-
|
|
17
|
-
bin_dir = os.path.dirname(abs_file)
|
|
18
|
-
base = bin_dir[: -len("bin") - 1] # strip away the bin part from the __file__, plus the path separator
|
|
19
|
-
|
|
20
|
-
# prepend bin to PATH (this file is inside the bin directory)
|
|
21
|
-
os.environ["PATH"] = os.pathsep.join([bin_dir] + os.environ.get("PATH", "").split(os.pathsep))
|
|
22
|
-
os.environ["VIRTUAL_ENV"] = base # virtual env is right above bin directory
|
|
23
|
-
|
|
24
|
-
# add the virtual environments libraries to the host python import mechanism
|
|
25
|
-
prev_length = len(sys.path)
|
|
26
|
-
for lib in "../lib/python3.12/site-packages".split(os.pathsep):
|
|
27
|
-
path = os.path.realpath(os.path.join(bin_dir, lib))
|
|
28
|
-
site.addsitedir(path.decode("utf-8") if "" else path)
|
|
29
|
-
sys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length]
|
|
30
|
-
|
|
31
|
-
sys.real_prefix = sys.prefix
|
|
32
|
-
sys.prefix = base
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|