Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Reutilisation of already enter parameters.

I would like to know if there is a general procedure to reuse some already enter parameters. For instance In

MixedIntegerLinearProgram

one can enter an inequation as

p.add_constraint( a[1,1]x[0] + a[1,2]x[1] + c[1,3]*x[2] >= b [1])

and now I need a[1, 1] ..., a[1, 3] and b[1]

to write

pol = Polyhedron(ieqs = [[-b [1], a[1, 1], a[1, 2]],...].

And when the result of a calculaton is verbose --- composed of strings and numbers ---, how to keep only the interesting part ?

Reutilisation of already enter parameters.

I would like to know if there is a general procedure to reuse some already enter parameters. For instance In

MixedIntegerLinearProgram

one can enter an inequation as

p.add_constraint( a[1,1]x[0] + a[1,2]x[1] + c[1,3]*x[2] >= b [1])

and now I need a[1, 1] ..., a[1, 3] and b[1]

to write

pol = Polyhedron(ieqs = [[-b [1], a[1, 1], a[1, 2]],...].

And when the result of a calculaton is verbose --- composed of strings and numbers ---, how to keep only the interesting part ?