Ignore:
Timestamp:
Jan 28, 2010 5:53:15 PM (10 years ago)
Author:
wehart
Message:

Merged revisions 2112-2195 via svnmerge from
https://software.sandia.gov/svn/public/coopr/coopr.opt/trunk

........

r2137 | wehart | 2010-01-10 12:17:40 -0700 (Sun, 10 Jan 2010) | 2 lines


Misc documentation updates.

........

r2155 | wehart | 2010-01-12 15:25:13 -0700 (Tue, 12 Jan 2010) | 2 lines


Adding a utility routine: results_attributes.

........

r2167 | jwatson | 2010-01-24 14:06:15 -0700 (Sun, 24 Jan 2010) | 3 lines


Added a _report_timing attribute to the base solver class. If true, it will print out presolve/solve/postsolve timing statistics. The derived shell-based solver will additionally report log and solution file read times.

........

r2173 | wehart | 2010-01-27 10:23:31 -0700 (Wed, 27 Jan 2010) | 2 lines


Misc edits.

........

r2174 | wehart | 2010-01-27 10:31:26 -0700 (Wed, 27 Jan 2010) | 2 lines


Adding a hook for specifying the format for reading/writing IO formats.

........

r2182 | wehart | 2010-01-27 15:39:31 -0700 (Wed, 27 Jan 2010) | 2 lines


Removing colin stuff from coopr.opt.

........

r2186 | wehart | 2010-01-27 17:39:31 -0700 (Wed, 27 Jan 2010) | 2 lines


Renaming results_attributes to results_schema.

........

Location:
coopr.opt/stable/2.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • coopr.opt/stable/2.2

  • coopr.opt/stable/2.2/coopr/opt/solver/shellcmd.py

    r1987 r2196  
    2323import pyutilib.plugin.core
    2424import pyutilib.misc
     25
     26import time
    2527
    2628class SystemCallSolver(OptSolver):
     
    175177        Process the output files.
    176178        """
     179        start_time = time.time()
    177180        if self._results_format is None:
    178181           raise ValueError, "Results format is None"
    179182        results = self.process_logfile()
     183        log_file_completion_time = time.time()
     184        if self._report_timing is True:
     185           print "Log file read time="+str(log_file_completion_time - start_time)+" seconds"
    180186        if self.results_reader is None:
    181187           self.process_soln_file(results)
     188           soln_file_completion_time = time.time()
     189           if self._report_timing is True:           
     190              print "Solution file read time="+str(soln_file_completion_time - log_file_completion_time)+" seconds"           
    182191        else:
    183192           results = self.results_reader(self.results_file, res=results)
     193           results_reader_completion_time = time.time()
     194           print "Results reader time="+str(results_reader_completion_time - log_file_completion_time)+" seconds"                     
    184195        if rc != None:
    185196           results.solver.error_rc=rc
Note: See TracChangeset for help on using the changeset viewer.