AGE_polynomial
index
/home/hennich/Uni/SONC_polynomial_optimization/python/AGE_polynomial.py

Class for Circuit Polynomials, intended for SONC.

 
Modules
       
cvxpy
numpy
polynomial_base
sympy

 
Classes
       
polynomial_base.Polynomial(builtins.object)
AGEPolynomial

 
class AGEPolynomial(polynomial_base.Polynomial)
    Class for AGE-polynomials.
 
Arithmetic-geometric-mean-exponentials (AGE) are polynomials where at most 
one terms is not a monomial square.
 
 
Method resolution order:
AGEPolynomial
polynomial_base.Polynomial
builtins.object

Methods defined here:
__init__(self, *args, **kwargs)
Docstring imported from polynomial.
__sizeof__(self)
Return bit-size of the instance, uncluding convex combination lambda.
non_negative(self)
Check, whether polynomial is non-negative.

Methods inherited from polynomial_base.Polynomial:
__add__(self, other)
Return the sum of this polynomial with another one.
__call__(self, x, dtype='float')
Evaluate the polynomial at point x.
__dict__ = mappingproxy({'__module__': 'AGE_polynomial', '_...ion AGEPolynomial.__sizeof__ at 0x7fd456f92ae8>})
__eq__(self, other)
Check equality of polynomials.
__neg__(self)
Return the negation of this polynomial.
__str__(self)
Return the polynomial as string.
__sub__(self, other)
Return the difference between this polynomial and another one.
clean(self)
Bring polynomial into clean state.
copy(self)
Return a copy of itself.
derive(self, index)
Compute the derivative with respect to the given index.
 
Call:
        res = p.derive(index)
Input:
        index [integer] - index of variable, by which we derive p, starting with zero
Output:
        res - Polynomial, derivative of p by x_index
pip(self)
Return the polynomial in PIP-format.
prime(self, variables=None)
Compute full derivative of the polynomial.
 
Call:
        pprime = p.prime([variables])
Input:
        variables [optional, default: all occurring] - number of variables, by which we derive
Output:
        pprime - Polynomial, derivative of p
scaleround(self, factor)
Scale polynomial and round coefficients to integer.
 
Call:
        p.scaleround(factor)
Input:
        factor [number] - scale all coefficients by 'factor', then round to integer
 
Note: This function changes the coefficients in place and sets the 'dirty' flag to 'True'.
tex(self)
Return the polynomial as string for LaTeX.
to_symbolic(self)
Return the polynomial as symbolic expression in sympy.

Data descriptors inherited from polynomial_base.Polynomial:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from polynomial_base.Polynomial:
__hash__ = None

 
Data
        symlog = <numpy.vectorize object>
sympy_flag = True
x = x