Coverage for gpkit/__init__.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"GP and SP modeling package"
2#pylint:disable=wrong-import-position
3__version__ = "1.0.0"
4GPCOLORS = ["#59ade4", "#FA3333"]
5GPBLU, GPRED = GPCOLORS
7from .build import build
8from .units import units, ureg, DimensionalityError
9from .globals import settings, SignomialsEnabled, Vectorize, NamedVariables
10from .varkey import VarKey
11from .nomials import Monomial, Posynomial, Signomial, NomialArray
12from .nomials import VectorizableVariable as Variable
13# NOTE above: the Variable the user sees is not the Variable used internally
14from .nomials import VectorVariable, ArrayVariable
15from .constraints.gp import GeometricProgram
16from .constraints.sgp import SequentialGeometricProgram
17from .constraints.sigeq import SignomialEquality
18from .constraints.set import ConstraintSet
19from .constraints.model import Model
20from .solution_array import SolutionArray
21from .tools.docstring import parse_variables
22from .tests.run_tests import run as run_unit_tests
24if "just built!" in settings: # pragma: no cover
25 run_unit_tests(verbosity=1)
26 print("""
27GPkit is now installed with solver(s) %s
28To incorporate new solvers at a later date, run `gpkit.build()`.
30If any tests didn't pass, please post the output above
31(starting from "Found no installed solvers, beginning a build.")
32to gpkit@mit.edu or https://github.com/convexengineering/gpkit/issues/new
33so we can prevent others from having these errors.
35The same goes for any other bugs you encounter with GPkit:
36send 'em our way, along with any interesting models, speculative features,
37comments, discussions, or clarifications you feel like sharing.
39Finally, we hope you find our documentation (https://gpkit.readthedocs.io/)
40and engineering-design models (https://github.com/convexengineering/gplibrary/)
41to be useful resources for your own applications.
43Enjoy!
44""" % settings["installed_solvers"])