| 
  | __init__(self,
        name='',
        capacity=0,
        rhs=0,
        direction='<=')(Constructor)
 | source code |  OptSeq resource class. 
    
      Arguments:
      
        
          name: Name of resource. Remark that strings in OptSeq are 
          restricted to a-z, A-Z, 0-9,[],_ and @.
        
          capacity (optional): Capacity dictionary of the renewable 
          (standard) resource. Capacity dictionary maps intervals (pairs of
          start time and finish time) to amounts of capacity.
        
          rhs (optional): Right-hand-side constant of nonrenewable resource
          constraint.
        
          direction (optional): Rirection (or sense) of nonrenewable 
          resource constraint; "<=" (default) or 
          ">=" or "=".
        
      Attbibutes:
      
        
          capacity: Capacity dictionary of the renewable (standard) 
          resource.
        
          rhs: Right-hand-side constant of nonrenewable resource 
          constraint.
        
          direction: Rirection (or sense) of nonrenewable resource 
          constraint; "<=" (default) or ">=" or 
          "=".
        
          terms: List of terms in left-hand-side of nonrenewable resource. 
          Each term is a tuple of coeffcient,activity and mode.
         
   |