source: coopr.colin/trunk/coopr/colin/core/problem_io.py @ 2201

Last change on this file since 2201 was 2201, checked in by wehart, 10 years ago

Update to Coopr to account for changes in PyUtilib? package names.

File size: 984 bytes
Line 
1#  _________________________________________________________________________
2#
3#  Coopr: A COmmon Optimization Python Repository
4#  Copyright (c) 2008 Sandia Corporation.
5#  This software is distributed under the BSD License.
6#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
7#  the U.S. Government retains certain rights in this software.
8#  For more information, see the Coopr README.txt file.
9#  _________________________________________________________________________
10
11"""
12Define plugins used for defining OptProblem IO formats.
13"""
14
15from pyutilib.component.core import *
16
17class IOptProblemIO(Interface):
18    """An interface that defines reader/writer for a particular IO format"""
19
20    def read(self, filename, point):
21        """
22        Read a point and request information.
23        This method returns a tuple: point, requests
24        """
25
26    def write(self, filename, response):
27        """
28        Write response information to a file.
29        """
Note: See TracBrowser for help on using the repository browser.