> Hi Nathan, it doesn't work if my constraint is say 2l + 3u - 8 <= 0 ?
No... It just works for all kind of constraints that you have given so far .... > It seems I cant get around the hard work of 1) from the original cst, > figureout the variables (l,u) , then declare those variables with p , > then recreate a list of linear constraints using the original csts and the > new variables. Try to use those methods : sage: e =z+x+y sage: e.operands() [x, 2*y, z] sage: e =z+x-2*y sage: e.operands() [x, -2*y, z] sage: e =z+x-2*y sage: e.operands() [x, -2*y, z] sage: e.operands()[1] -2*y sage: e.operands()[1].operands() [y, -2] Nathann -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.