Changeset 2055


Ignore:
Timestamp:
Dec 28, 2009 4:15:54 PM (10 years ago)
Author:
wehart
Message:

Some additional documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/expr/canonical_repn.py

    r2054 r2055  
    114114# with None.
    115115#
     116# Examples:
     117#  Let x[1] ... x[4] be the first 4 variables, and
     118#      y[1] ... y[4] be the next 4 variables
     119#
     120# 1.3                           {0:{ None :1.3}}
     121# 3.2*x[1]                      {1:{ {0:1} :3.2}}
     122# 2*x[1]*y[2] + 3*x[2] + 4      {0:{None:4.0}, 1:{{1:1}:3.0}, 2:{{0:1, 5:1}:2.0}}
     123# log(y[1]) + x[1]*x[1]         {2:{{0:2}:1.0}, None:log(y[1])}
     124#
    116125temp_const = { 0: {None:0.0} }   
    117126temp_var = { 1: {frozendict({None:1}):1.0} }   
Note: See TracChangeset for help on using the changeset viewer.