gamspy 1.18.0__tar.gz → 1.18.1__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.
- {gamspy-1.18.0 → gamspy-1.18.1}/PKG-INFO +1 -1
- {gamspy-1.18.0 → gamspy-1.18.1}/pyproject.toml +1 -1
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/install.py +2 -2
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/uninstall.py +11 -4
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_miro.py +0 -8
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy.egg-info/PKG-INFO +1 -1
- {gamspy-1.18.0 → gamspy-1.18.1}/tests/test_gamspy.py +1 -1
- {gamspy-1.18.0 → gamspy-1.18.1}/LICENSE +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/README.md +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/README_PYPI.md +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/setup.cfg +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/__init__.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/__main__.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_algebra/__init__.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_algebra/condition.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_algebra/domain.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_algebra/expression.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_algebra/number.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_algebra/operable.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_algebra/operation.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_backend/__init__.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_backend/backend.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_backend/engine.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_backend/local.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_backend/neos.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/__init__.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/cli.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/gdx.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/list.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/probe.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/retrieve.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/run.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/show.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/util.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_communication.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_config.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_container.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_convert.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_database.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_extrinsic.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_model.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_model_instance.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_options.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_serialization.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/__init__.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/alias.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/equation.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/implicits/__init__.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/implicits/implicit_equation.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/implicits/implicit_parameter.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/implicits/implicit_set.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/implicits/implicit_symbol.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/implicits/implicit_variable.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/parameter.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/set.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/symbol.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/universe_alias.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/variable.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_types.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_validation.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_workspace.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/exceptions.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/__init__.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/ml/__init__.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/ml/decision_tree_struct.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/ml/gradient_boosting.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/ml/random_forest.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/ml/regression_tree.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/__init__.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/avgpool2d.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/conv1d.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/conv2d.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/linear.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/maxpool2d.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/minpool2d.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/mpool2d.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/torch_sequential.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/piecewise.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/result.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/shape.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/utils.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/math/__init__.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/math/activation.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/math/log_power.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/math/matrix.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/math/misc.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/math/probability.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/math/trigonometric.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/py.typed +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/utils.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/version.py +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy.egg-info/SOURCES.txt +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy.egg-info/dependency_links.txt +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy.egg-info/entry_points.txt +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy.egg-info/requires.txt +0 -0
- {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy.egg-info/top_level.txt +0 -0
|
@@ -224,6 +224,8 @@ def solver(
|
|
|
224
224
|
install_all_solvers: bool = typer.Option(
|
|
225
225
|
False,
|
|
226
226
|
"--install-all-solvers",
|
|
227
|
+
"--all",
|
|
228
|
+
"-a",
|
|
227
229
|
help="Installs all available add-on solvers.",
|
|
228
230
|
),
|
|
229
231
|
existing_solvers: bool = typer.Option(
|
|
@@ -279,8 +281,6 @@ def solver(
|
|
|
279
281
|
command = [
|
|
280
282
|
"uv",
|
|
281
283
|
"pip",
|
|
282
|
-
"--python-preference",
|
|
283
|
-
"only-system",
|
|
284
284
|
"install",
|
|
285
285
|
f"gamspy-{solver_name}=={solver_version}",
|
|
286
286
|
"--force-reinstall",
|
|
@@ -51,7 +51,11 @@ def solver(
|
|
|
51
51
|
),
|
|
52
52
|
] = None,
|
|
53
53
|
uninstall_all_solvers: bool = typer.Option(
|
|
54
|
-
False,
|
|
54
|
+
False,
|
|
55
|
+
"--uninstall-all-solvers",
|
|
56
|
+
"--all",
|
|
57
|
+
"-a",
|
|
58
|
+
help="Uninstalls all add-on solvers.",
|
|
55
59
|
),
|
|
56
60
|
skip_pip_uninstall: bool = typer.Option(
|
|
57
61
|
False,
|
|
@@ -95,8 +99,6 @@ def solver(
|
|
|
95
99
|
command = [
|
|
96
100
|
"uv",
|
|
97
101
|
"pip",
|
|
98
|
-
"--python-preference",
|
|
99
|
-
"only-system",
|
|
100
102
|
"uninstall",
|
|
101
103
|
f"gamspy-{solver_name}",
|
|
102
104
|
]
|
|
@@ -110,7 +112,12 @@ def solver(
|
|
|
110
112
|
"-y",
|
|
111
113
|
]
|
|
112
114
|
try:
|
|
113
|
-
_ = subprocess.run(
|
|
115
|
+
_ = subprocess.run(
|
|
116
|
+
command,
|
|
117
|
+
check=True,
|
|
118
|
+
encoding="utf-8",
|
|
119
|
+
stderr=subprocess.PIPE,
|
|
120
|
+
)
|
|
114
121
|
except subprocess.CalledProcessError as e:
|
|
115
122
|
raise GamspyException(
|
|
116
123
|
f"Could not uninstall gamspy-{solver_name}: {e.output}"
|
|
@@ -80,14 +80,6 @@ class MiroJSONEncoder:
|
|
|
80
80
|
self,
|
|
81
81
|
container: Container,
|
|
82
82
|
):
|
|
83
|
-
if (
|
|
84
|
-
len(container._miro_input_symbols) == 0
|
|
85
|
-
and len(container._miro_output_symbols) == 0
|
|
86
|
-
):
|
|
87
|
-
raise ValidationError(
|
|
88
|
-
"There must be at least one miro input/output symbol in the model"
|
|
89
|
-
)
|
|
90
|
-
|
|
91
83
|
self.container = container
|
|
92
84
|
self.model_title = "GAMSPy App"
|
|
93
85
|
self.input_symbols = container._miro_input_symbols
|
|
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
|