gamspy 1.19.1__tar.gz → 1.19.2__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.
Files changed (97) hide show
  1. {gamspy-1.19.1/src/gamspy.egg-info → gamspy-1.19.2}/PKG-INFO +1 -1
  2. {gamspy-1.19.1 → gamspy-1.19.2}/pyproject.toml +1 -1
  3. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_container.py +1 -0
  4. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_validation.py +2 -1
  5. {gamspy-1.19.1 → gamspy-1.19.2/src/gamspy.egg-info}/PKG-INFO +1 -1
  6. {gamspy-1.19.1 → gamspy-1.19.2}/tests/test_gamspy.py +5 -5
  7. {gamspy-1.19.1 → gamspy-1.19.2}/LICENSE +0 -0
  8. {gamspy-1.19.1 → gamspy-1.19.2}/README.md +0 -0
  9. {gamspy-1.19.1 → gamspy-1.19.2}/README_PYPI.md +0 -0
  10. {gamspy-1.19.1 → gamspy-1.19.2}/setup.cfg +0 -0
  11. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/__init__.py +0 -0
  12. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/__main__.py +0 -0
  13. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_algebra/__init__.py +0 -0
  14. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_algebra/condition.py +0 -0
  15. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_algebra/domain.py +0 -0
  16. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_algebra/expression.py +0 -0
  17. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_algebra/number.py +0 -0
  18. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_algebra/operable.py +0 -0
  19. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_algebra/operation.py +0 -0
  20. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_backend/__init__.py +0 -0
  21. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_backend/backend.py +0 -0
  22. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_backend/engine.py +0 -0
  23. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_backend/local.py +0 -0
  24. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_backend/neos.py +0 -0
  25. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_cli/__init__.py +0 -0
  26. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_cli/cli.py +0 -0
  27. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_cli/gdx.py +0 -0
  28. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_cli/install.py +0 -0
  29. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_cli/list.py +0 -0
  30. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_cli/mps2gms.py +0 -0
  31. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_cli/probe.py +0 -0
  32. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_cli/retrieve.py +0 -0
  33. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_cli/run.py +0 -0
  34. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_cli/show.py +0 -0
  35. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_cli/uninstall.py +0 -0
  36. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_cli/util.py +0 -0
  37. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_communication.py +0 -0
  38. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_config.py +0 -0
  39. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_convert.py +0 -0
  40. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_database.py +0 -0
  41. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_extrinsic.py +0 -0
  42. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_miro.py +0 -0
  43. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_model.py +0 -0
  44. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_model_instance.py +0 -0
  45. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_options.py +0 -0
  46. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_serialization.py +0 -0
  47. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_symbols/__init__.py +0 -0
  48. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_symbols/alias.py +0 -0
  49. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_symbols/equation.py +0 -0
  50. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_symbols/implicits/__init__.py +0 -0
  51. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_symbols/implicits/implicit_equation.py +0 -0
  52. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_symbols/implicits/implicit_parameter.py +0 -0
  53. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_symbols/implicits/implicit_set.py +0 -0
  54. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_symbols/implicits/implicit_symbol.py +0 -0
  55. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_symbols/implicits/implicit_variable.py +0 -0
  56. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_symbols/parameter.py +0 -0
  57. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_symbols/set.py +0 -0
  58. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_symbols/symbol.py +0 -0
  59. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_symbols/universe_alias.py +0 -0
  60. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_symbols/variable.py +0 -0
  61. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_types.py +0 -0
  62. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/_workspace.py +0 -0
  63. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/exceptions.py +0 -0
  64. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/__init__.py +0 -0
  65. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/ml/__init__.py +0 -0
  66. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/ml/decision_tree_struct.py +0 -0
  67. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/ml/gradient_boosting.py +0 -0
  68. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/ml/random_forest.py +0 -0
  69. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/ml/regression_tree.py +0 -0
  70. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/nn/__init__.py +0 -0
  71. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/nn/avgpool2d.py +0 -0
  72. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/nn/conv1d.py +0 -0
  73. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/nn/conv2d.py +0 -0
  74. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/nn/linear.py +0 -0
  75. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/nn/maxpool2d.py +0 -0
  76. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/nn/minpool2d.py +0 -0
  77. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/nn/mpool2d.py +0 -0
  78. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/nn/torch_sequential.py +0 -0
  79. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/piecewise.py +0 -0
  80. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/result.py +0 -0
  81. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/shape.py +0 -0
  82. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/formulations/utils.py +0 -0
  83. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/math/__init__.py +0 -0
  84. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/math/activation.py +0 -0
  85. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/math/log_power.py +0 -0
  86. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/math/matrix.py +0 -0
  87. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/math/misc.py +0 -0
  88. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/math/probability.py +0 -0
  89. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/math/trigonometric.py +0 -0
  90. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/py.typed +0 -0
  91. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/utils.py +0 -0
  92. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy/version.py +0 -0
  93. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy.egg-info/SOURCES.txt +0 -0
  94. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy.egg-info/dependency_links.txt +0 -0
  95. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy.egg-info/entry_points.txt +0 -0
  96. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy.egg-info/requires.txt +0 -0
  97. {gamspy-1.19.1 → gamspy-1.19.2}/src/gamspy.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gamspy
3
- Version: 1.19.1
3
+ Version: 1.19.2
4
4
  Summary: Python-based algebraic modeling interface to GAMS
5
5
  Author-email: GAMS Development Corporation <support@gams.com>
6
6
  Project-URL: homepage, https://gams.com/sales/gamspy_facts/
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "gamspy"
7
- version = "1.19.1"
7
+ version = "1.19.2"
8
8
  authors = [
9
9
  { name = "GAMS Development Corporation", email = "support@gams.com" },
10
10
  ]
@@ -995,6 +995,7 @@ class Container(gt.Container):
995
995
  symbol_names = utils._get_symbol_names_from_gdx(
996
996
  self.system_directory, load_from
997
997
  )
998
+ self._add_statement(f"$declareAndLoad {load_from}")
998
999
  symbol_names = self._filter_load_symbols(
999
1000
  symbol_names, # type: ignore
1000
1001
  create_if_not_declared,
@@ -331,7 +331,8 @@ def validate_domain(
331
331
  try:
332
332
  if (
333
333
  given != "*"
334
- and len(actual.records) < 1000
334
+ and actual.records is not None
335
+ and len(actual.records) < 100
335
336
  and not actual.records.isin([given]).sum().any()
336
337
  ):
337
338
  raise ValidationError(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gamspy
3
- Version: 1.19.1
3
+ Version: 1.19.2
4
4
  Summary: Python-based algebraic modeling interface to GAMS
5
5
  Author-email: GAMS Development Corporation <support@gams.com>
6
6
  Project-URL: homepage, https://gams.com/sales/gamspy_facts/
@@ -18,7 +18,7 @@ from gamspy.exceptions import GamspyException, ValidationError
18
18
 
19
19
  @pytest.mark.unit
20
20
  def test_version():
21
- assert gp.__version__ == "1.19.1"
21
+ assert gp.__version__ == "1.19.2"
22
22
 
23
23
 
24
24
  @pytest.mark.unit
@@ -73,20 +73,20 @@ def test_config():
73
73
  def test_domain_checking_config_performance():
74
74
  gp.set_options({"DOMAIN_VALIDATION": 1})
75
75
  m = gp.Container()
76
- i = gp.Set(m, records=range(999))
76
+ i = gp.Set(m, records=range(99))
77
77
  a = gp.Parameter(m, domain=i)
78
78
  start = time.time()
79
- for idx in range(999):
79
+ for idx in range(99):
80
80
  _ = a[idx] + a[idx] + a[idx] + a[idx] + a[idx] + a[idx] + a[idx] + a[idx]
81
81
 
82
82
  timing_with_validation = time.time() - start
83
83
 
84
84
  gp.set_options({"DOMAIN_VALIDATION": 0})
85
85
  m = gp.Container()
86
- i = gp.Set(m, records=range(999))
86
+ i = gp.Set(m, records=range(99))
87
87
  a = gp.Parameter(m, domain=i)
88
88
  start = time.time()
89
- for idx in range(999):
89
+ for idx in range(99):
90
90
  _ = a[idx] + a[idx] + a[idx] + a[idx] + a[idx] + a[idx] + a[idx] + a[idx]
91
91
  timing_without_validation = time.time() - start
92
92
  gp.set_options({"DOMAIN_VALIDATION": 1})
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