gpkit-core 0.1.0__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.
- gpkit_core-0.1.0/LICENSE +21 -0
- gpkit_core-0.1.0/PKG-INFO +57 -0
- gpkit_core-0.1.0/README.md +14 -0
- gpkit_core-0.1.0/gpkit/__init__.py +49 -0
- gpkit_core-0.1.0/gpkit/breakdowns.py +1152 -0
- gpkit_core-0.1.0/gpkit/build.py +222 -0
- gpkit_core-0.1.0/gpkit/constraints/__init__.py +4 -0
- gpkit_core-0.1.0/gpkit/constraints/array.py +27 -0
- gpkit_core-0.1.0/gpkit/constraints/bounded.py +112 -0
- gpkit_core-0.1.0/gpkit/constraints/costed.py +64 -0
- gpkit_core-0.1.0/gpkit/constraints/gp.py +592 -0
- gpkit_core-0.1.0/gpkit/constraints/loose.py +45 -0
- gpkit_core-0.1.0/gpkit/constraints/model.py +231 -0
- gpkit_core-0.1.0/gpkit/constraints/prog_factories.py +262 -0
- gpkit_core-0.1.0/gpkit/constraints/relax.py +280 -0
- gpkit_core-0.1.0/gpkit/constraints/set.py +417 -0
- gpkit_core-0.1.0/gpkit/constraints/sgp.py +321 -0
- gpkit_core-0.1.0/gpkit/constraints/sigeq.py +15 -0
- gpkit_core-0.1.0/gpkit/constraints/single_equation.py +39 -0
- gpkit_core-0.1.0/gpkit/constraints/tight.py +53 -0
- gpkit_core-0.1.0/gpkit/exceptions.py +45 -0
- gpkit_core-0.1.0/gpkit/globals.py +135 -0
- gpkit_core-0.1.0/gpkit/interactive/__init__.py +1 -0
- gpkit_core-0.1.0/gpkit/interactive/plot_sweep.py +105 -0
- gpkit_core-0.1.0/gpkit/interactive/plotting.py +139 -0
- gpkit_core-0.1.0/gpkit/interactive/references.py +86 -0
- gpkit_core-0.1.0/gpkit/interactive/sankey.py +297 -0
- gpkit_core-0.1.0/gpkit/interactive/widgets.py +259 -0
- gpkit_core-0.1.0/gpkit/keydict.py +324 -0
- gpkit_core-0.1.0/gpkit/nomials/__init__.py +19 -0
- gpkit_core-0.1.0/gpkit/nomials/array.py +212 -0
- gpkit_core-0.1.0/gpkit/nomials/core.py +140 -0
- gpkit_core-0.1.0/gpkit/nomials/data.py +74 -0
- gpkit_core-0.1.0/gpkit/nomials/map.py +193 -0
- gpkit_core-0.1.0/gpkit/nomials/math.py +742 -0
- gpkit_core-0.1.0/gpkit/nomials/substitution.py +91 -0
- gpkit_core-0.1.0/gpkit/nomials/variables.py +200 -0
- gpkit_core-0.1.0/gpkit/repr_conventions.py +200 -0
- gpkit_core-0.1.0/gpkit/small_classes.py +274 -0
- gpkit_core-0.1.0/gpkit/small_scripts.py +82 -0
- gpkit_core-0.1.0/gpkit/solution_array.py +1168 -0
- gpkit_core-0.1.0/gpkit/solution_ensemble.py +273 -0
- gpkit_core-0.1.0/gpkit/solvers/__init__.py +0 -0
- gpkit_core-0.1.0/gpkit/solvers/cvxopt.py +117 -0
- gpkit_core-0.1.0/gpkit/solvers/mosek_cli.py +171 -0
- gpkit_core-0.1.0/gpkit/solvers/mosek_conif.py +319 -0
- gpkit_core-0.1.0/gpkit/tests/__init__.py +3 -0
- gpkit_core-0.1.0/gpkit/tests/from_paths.py +77 -0
- gpkit_core-0.1.0/gpkit/tests/helpers.py +181 -0
- gpkit_core-0.1.0/gpkit/tests/run_tests.py +74 -0
- gpkit_core-0.1.0/gpkit/tests/t_constraints.py +450 -0
- gpkit_core-0.1.0/gpkit/tests/t_examples.py +350 -0
- gpkit_core-0.1.0/gpkit/tests/t_keydict.py +77 -0
- gpkit_core-0.1.0/gpkit/tests/t_model.py +851 -0
- gpkit_core-0.1.0/gpkit/tests/t_nomial_array.py +163 -0
- gpkit_core-0.1.0/gpkit/tests/t_nomials.py +432 -0
- gpkit_core-0.1.0/gpkit/tests/t_small.py +90 -0
- gpkit_core-0.1.0/gpkit/tests/t_solution_array.py +129 -0
- gpkit_core-0.1.0/gpkit/tests/t_sub.py +457 -0
- gpkit_core-0.1.0/gpkit/tests/t_tools.py +169 -0
- gpkit_core-0.1.0/gpkit/tests/t_vars.py +292 -0
- gpkit_core-0.1.0/gpkit/tests/test_repo.py +118 -0
- gpkit_core-0.1.0/gpkit/tools/__init__.py +4 -0
- gpkit_core-0.1.0/gpkit/tools/autosweep.py +315 -0
- gpkit_core-0.1.0/gpkit/tools/docstring.py +224 -0
- gpkit_core-0.1.0/gpkit/tools/tools.py +129 -0
- gpkit_core-0.1.0/gpkit/units.py +71 -0
- gpkit_core-0.1.0/gpkit/varkey.py +130 -0
- gpkit_core-0.1.0/gpkit_core.egg-info/PKG-INFO +57 -0
- gpkit_core-0.1.0/gpkit_core.egg-info/SOURCES.txt +73 -0
- gpkit_core-0.1.0/gpkit_core.egg-info/dependency_links.txt +1 -0
- gpkit_core-0.1.0/gpkit_core.egg-info/requires.txt +7 -0
- gpkit_core-0.1.0/gpkit_core.egg-info/top_level.txt +1 -0
- gpkit_core-0.1.0/pyproject.toml +38 -0
- gpkit_core-0.1.0/setup.cfg +4 -0
gpkit_core-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Warren Hoburg
|
|
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.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: gpkit-core
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Package for defining and manipulating geometric programming models.
|
|
5
|
+
Author-email: Warren Hoburg <whoburg@alum.mit.edu>
|
|
6
|
+
License: The MIT License (MIT)
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2025 Warren Hoburg
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: Homepage, https://www.github.com/whoburg/gpkit
|
|
29
|
+
Classifier: Programming Language :: Python :: 3
|
|
30
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
31
|
+
Classifier: Operating System :: OS Independent
|
|
32
|
+
Requires-Python: >=3.5.2
|
|
33
|
+
Description-Content-Type: text/markdown
|
|
34
|
+
License-File: LICENSE
|
|
35
|
+
Requires-Dist: numpy>=1.16.4
|
|
36
|
+
Requires-Dist: pint>=0.8.1
|
|
37
|
+
Requires-Dist: plotly>=5.3.0
|
|
38
|
+
Requires-Dist: scipy>=1.7.0
|
|
39
|
+
Requires-Dist: adce>=1.3.2
|
|
40
|
+
Requires-Dist: cvxopt>=1.1.8
|
|
41
|
+
Requires-Dist: matplotlib>=3.3.0
|
|
42
|
+
Dynamic: license-file
|
|
43
|
+
|
|
44
|
+
[<img src="http://gpkit.rtfd.org/en/latest/_images/gplogo.png" width=110 alt="GPkit" />](http://gpkit.readthedocs.org/)
|
|
45
|
+
|
|
46
|
+
**[Documentation](http://gpkit.readthedocs.org/)** | [Install instructions](http://gpkit.readthedocs.org/en/latest/installation.html) | [Examples](http://gpkit.readthedocs.org/en/latest/examples.html) | [Glossary](https://gpkit.readthedocs.io/en/latest/autodoc/gpkit.html) | [Citing GPkit](http://gpkit.readthedocs.org/en/latest/citinggpkit.html)
|
|
47
|
+
|
|
48
|
+
GPkit is a Python package for defining and manipulating
|
|
49
|
+
geometric programming models,
|
|
50
|
+
abstracting away the backend solver.
|
|
51
|
+
Supported solvers are
|
|
52
|
+
[mosek](http://mosek.com)
|
|
53
|
+
and [cvxopt](http://cvxopt.org/).
|
|
54
|
+
|
|
55
|
+
[](https://github.com/whoburg/gpkit/actions/workflows/tests.yml)
|
|
56
|
+
|
|
57
|
+
Originally developed with Ned Burnell, whose extensive contributions were foundational to the early design.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[<img src="http://gpkit.rtfd.org/en/latest/_images/gplogo.png" width=110 alt="GPkit" />](http://gpkit.readthedocs.org/)
|
|
2
|
+
|
|
3
|
+
**[Documentation](http://gpkit.readthedocs.org/)** | [Install instructions](http://gpkit.readthedocs.org/en/latest/installation.html) | [Examples](http://gpkit.readthedocs.org/en/latest/examples.html) | [Glossary](https://gpkit.readthedocs.io/en/latest/autodoc/gpkit.html) | [Citing GPkit](http://gpkit.readthedocs.org/en/latest/citinggpkit.html)
|
|
4
|
+
|
|
5
|
+
GPkit is a Python package for defining and manipulating
|
|
6
|
+
geometric programming models,
|
|
7
|
+
abstracting away the backend solver.
|
|
8
|
+
Supported solvers are
|
|
9
|
+
[mosek](http://mosek.com)
|
|
10
|
+
and [cvxopt](http://cvxopt.org/).
|
|
11
|
+
|
|
12
|
+
[](https://github.com/whoburg/gpkit/actions/workflows/tests.yml)
|
|
13
|
+
|
|
14
|
+
Originally developed with Ned Burnell, whose extensive contributions were foundational to the early design.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"GP and SP modeling package"
|
|
2
|
+
|
|
3
|
+
# pylint:disable=wrong-import-position
|
|
4
|
+
__version__ = "0.1.0"
|
|
5
|
+
GPCOLORS = ["#59ade4", "#FA3333"]
|
|
6
|
+
GPBLU, GPRED = GPCOLORS
|
|
7
|
+
|
|
8
|
+
from .build import build
|
|
9
|
+
from .constraints.gp import GeometricProgram
|
|
10
|
+
from .constraints.model import Model
|
|
11
|
+
from .constraints.set import ConstraintSet
|
|
12
|
+
from .constraints.sgp import SequentialGeometricProgram
|
|
13
|
+
from .constraints.sigeq import SignomialEquality
|
|
14
|
+
from .globals import NamedVariables, SignomialsEnabled, Vectorize, settings
|
|
15
|
+
|
|
16
|
+
# NOTE above: the Variable the user sees is not the Variable used internally
|
|
17
|
+
from .nomials import ArrayVariable, Monomial, NomialArray, Posynomial, Signomial
|
|
18
|
+
from .nomials import VectorizableVariable as Variable
|
|
19
|
+
from .nomials import VectorVariable
|
|
20
|
+
from .solution_array import SolutionArray
|
|
21
|
+
from .tests.run_tests import run as run_unit_tests
|
|
22
|
+
from .tools.docstring import parse_variables
|
|
23
|
+
from .units import DimensionalityError, units, ureg
|
|
24
|
+
from .varkey import VarKey
|
|
25
|
+
|
|
26
|
+
if "just built!" in settings: # pragma: no cover
|
|
27
|
+
run_unit_tests(verbosity=1)
|
|
28
|
+
print(
|
|
29
|
+
"""
|
|
30
|
+
GPkit is now installed with solver(s) %s
|
|
31
|
+
To incorporate new solvers at a later date, run `gpkit.build()`.
|
|
32
|
+
|
|
33
|
+
If any tests didn't pass, please post the output above
|
|
34
|
+
(starting from "Found no installed solvers, beginning a build.")
|
|
35
|
+
to gpkit@mit.edu or https://github.com/convexengineering/gpkit/issues/new
|
|
36
|
+
so we can prevent others from having these errors.
|
|
37
|
+
|
|
38
|
+
The same goes for any other bugs you encounter with GPkit:
|
|
39
|
+
send 'em our way, along with any interesting models, speculative features,
|
|
40
|
+
comments, discussions, or clarifications you feel like sharing.
|
|
41
|
+
|
|
42
|
+
Finally, we hope you find our documentation (https://gpkit.readthedocs.io/)
|
|
43
|
+
and engineering-design models (https://github.com/convexengineering/gplibrary/)
|
|
44
|
+
to be useful resources for your own applications.
|
|
45
|
+
|
|
46
|
+
Enjoy!
|
|
47
|
+
"""
|
|
48
|
+
% settings["installed_solvers"]
|
|
49
|
+
)
|