Ignore:
Timestamp:
05/02/12 10:55:06 (2 years ago)
Author:
dlwoodr
Message:

Add cross product operators, emphasize loading solutions after solving in a script and correct the noiteration1.py example to include the load

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.doc/trunk/GettingStarted/current/scripts.txt

    r5689 r5744  
    303303==== All Variables from a Python Script ==== 
    304304 
    305 As with one variable, we assume that the model has been instantiated and solved and the results have been loded back into the instance object, then we can make 
     305As with one variable, we assume that the model has been instantiated and solved and the results have been loded back into the instance object 
     306using +instance.load(results)+, then we can make 
    306307use of the fact that the variable is a member of the instance object and its value can be accessed using its +value+ member. Assuming the 
    307308instance object has the name +instance+, the following code snippet displays all variables and their values: 
Note: See TracChangeset for help on using the changeset viewer.