gana 0.0.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.
gana-0.0.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Rahul Kakodkar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
gana-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,85 @@
1
+ Metadata-Version: 2.2
2
+ Name: gana
3
+ Version: 0.0.1
4
+ Summary: An Algebraic Modeling Language (AML) for multiscale modeling and optimization
5
+ Author-email: Rahul Kakodkar <cacodcar@gmail.com>
6
+ Maintainer-email: Rahul Kakodkar <cacodcar@gmail.com>
7
+ License: MIT License
8
+
9
+ Copyright (c) 2025 Rahul Kakodkar
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ Project-URL: Homepage, https://github.com/cacodcar/gana
30
+ Project-URL: Issues, https://github.com/cacodcar/gana/issues
31
+ Keywords: modeling,optimization,mathematical programming,aml
32
+ Classifier: Programming Language :: Python :: 3.12
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Operating System :: OS Independent
35
+ Requires-Python: >=3.12
36
+ Description-Content-Type: text/markdown
37
+ License-File: LICENSE
38
+ Requires-Dist: ppopt
39
+ Provides-Extra: all
40
+ Requires-Dist: gurobipy; extra == "all"
41
+ Requires-Dist: pyomo; extra == "all"
42
+ Requires-Dist: sympy; extra == "all"
43
+ Provides-Extra: test
44
+ Requires-Dist: coverage; extra == "test"
45
+ Requires-Dist: pytest; extra == "test"
46
+
47
+ Gana is an algebraic modeling language (AML) for multiscale modeling and optimization
48
+
49
+ Modeling in Gana is done using four sets:
50
+
51
+ 1. I - index
52
+ 2. V - variable
53
+ 3. P - parameter
54
+ 4. T - parametric variable
55
+
56
+ The model can be exported as a .mps or .lp file and passed to a solver
57
+
58
+ or
59
+
60
+ Matrices can be generated to represent:
61
+
62
+ LHS Parameter coefficient of variables in constraints:
63
+ 1. A - all
64
+ 2. G - inequality
65
+ 3. H - equality
66
+ 4. NN - nonnegativity
67
+
68
+ RHS parameters in constraints:
69
+ 1. B
70
+
71
+ RHS Parameter coefficient of parametric variables in constraints:
72
+ 1. F
73
+
74
+ Bounds of the parametric variables:
75
+ 1. CRa - RHS coefficients
76
+ 2. CRb - Bound (upper or lower)
77
+
78
+
79
+ Gana was developed to enable certain functionalities in [energia (py)](https://pypi.org/project/energiapy/).
80
+
81
+ Both were developed through my PhD and as such have a lot of room for improvement.
82
+
83
+ So please reach out to me on cacodcar@gmail.com with suggestions and such.
84
+
85
+
gana-0.0.1/README.md ADDED
@@ -0,0 +1,39 @@
1
+ Gana is an algebraic modeling language (AML) for multiscale modeling and optimization
2
+
3
+ Modeling in Gana is done using four sets:
4
+
5
+ 1. I - index
6
+ 2. V - variable
7
+ 3. P - parameter
8
+ 4. T - parametric variable
9
+
10
+ The model can be exported as a .mps or .lp file and passed to a solver
11
+
12
+ or
13
+
14
+ Matrices can be generated to represent:
15
+
16
+ LHS Parameter coefficient of variables in constraints:
17
+ 1. A - all
18
+ 2. G - inequality
19
+ 3. H - equality
20
+ 4. NN - nonnegativity
21
+
22
+ RHS parameters in constraints:
23
+ 1. B
24
+
25
+ RHS Parameter coefficient of parametric variables in constraints:
26
+ 1. F
27
+
28
+ Bounds of the parametric variables:
29
+ 1. CRa - RHS coefficients
30
+ 2. CRb - Bound (upper or lower)
31
+
32
+
33
+ Gana was developed to enable certain functionalities in [energia (py)](https://pypi.org/project/energiapy/).
34
+
35
+ Both were developed through my PhD and as such have a lot of room for improvement.
36
+
37
+ So please reach out to me on cacodcar@gmail.com with suggestions and such.
38
+
39
+
@@ -0,0 +1,32 @@
1
+ [build-system]
2
+ requires = ["setuptools", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "gana"
7
+ version = "0.0.1"
8
+ authors = [
9
+ { name="Rahul Kakodkar", email="cacodcar@gmail.com" },
10
+ ]
11
+ maintainers = [
12
+ { name="Rahul Kakodkar", email="cacodcar@gmail.com" },
13
+ ]
14
+ description = "An Algebraic Modeling Language (AML) for multiscale modeling and optimization"
15
+ requires-python = ">=3.12"
16
+ readme = "README.md"
17
+ license = {file = "LICENSE"}
18
+ keywords = ["modeling", "optimization", "mathematical programming", "aml"]
19
+ classifiers = [
20
+ "Programming Language :: Python :: 3.12",
21
+ "License :: OSI Approved :: MIT License",
22
+ "Operating System :: OS Independent",
23
+ ]
24
+
25
+ dependencies = ["ppopt"]
26
+ [project.optional-dependencies]
27
+ all = ["gurobipy", "pyomo", "sympy"]
28
+ test = ["coverage", "pytest"]
29
+
30
+ [project.urls]
31
+ Homepage = "https://github.com/cacodcar/gana"
32
+ Issues = "https://github.com/cacodcar/gana/issues"
gana-0.0.1/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,11 @@
1
+ """Gana Imports
2
+ """
3
+
4
+ from .block.program import Prg
5
+ from .operations.composition import inf, sup
6
+ from .sets.index import I
7
+ from .sets.parameter import P
8
+ from .sets.theta import T
9
+ from .sets.variable import V
10
+
11
+ __all__ = ["V", "P", "I", "T", "Prg", "inf", "sup"]
File without changes