class_docstr: Basic rectangle representation using kiwi solver variables
class_docstr_tok: ["Basic","rectangle","representation","using","kiwi","solver","variables"]
code: def add_constraints(self):
      sol = self.solver
      # never let width and height go negative.
      for i in [self.min_width, self.min_height]:
          sol.addEditVariable(i, 1e9)
          sol.suggestValue(i, 0.0)
      # define relation ships between things thing width and right and left
      self.hard_constraints()
      # self.soft_constraints()
      if self.parent:
          self.parent_constrain()
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import itertools
  import kiwisolver
  import logging
  import numpy
  import warnings
  import matplotlib
label_desc: Use image node_id 5 for calling the LayoutBox obj's underlying member method code with example usage: obj.add_constraints() without return types