Changeset 570

Show
Ignore:
Timestamp:
05/20/10 18:53:47 (14 years ago)
Author:
nikhil
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vtcross/branches/nikhil/crossmodel2/src/libvtcross/test1.py

    r564 r570  
    1818 
    1919 
    20         for i in range(0,40): 
     20        for i in range(0,30): 
    2121                if i is 0: 
    2222                        currentParameters[0].name = "Txpower" 
     
    3838                print "Application:: Receiving the following parameters.\n" 
    3939         
    40                 u1 = (p[0].value)/30 
     40                u1 = (p[0].value)/25 
    4141 
    42                 u2 = (p[1].value)/10 
     42                u2 = (p[1].value)/20 
    4343 
    44                 u[0].value = 1 - (u1 - u2) 
     44                u[0].value = 1 - u1 + u2 
    4545 
    4646                print "utilities " + u[0].name + " = " + str(u[0].value) + "\n"