![](https://secure.gravatar.com/avatar/da3a0a1942fbdc5ee9a9b8115ac5dae7.jpg?s=120&d=mm&r=g)
Sept. 29, 2012
7:09 a.m.
29.09.2012 06:20, The Helmbolds kirjoitti: [clip]
An engine designer has an 18-dimensional design variable, with 24 constraints and 60 args, and wants to run 70 to 100 cases by varying the args. She writes a Python program that reads the args from a file of cases, prepares the inputs to cobyla, turns the cobyla crank and saves its outputs to a file for further analysis. She wants to save all of the Results information from each run to this output file. That's not convenient to do if the Results information is not actually _returned_ by COBYLA.
Good point. This is a good reason why library routines should never print anything. Luckily, it is not more difficult to implement than performing I/O via Python. -- Pauli Virtanen