source: trunk/coopr/plugins/mip/NLWRITE.py @ 1768

Last change on this file since 1768 was 1768, checked in by wehart, 11 years ago

Rework of Coopr to use the new PyUtilib? package decomposition.

NOTE: to use Coopr with this update, we need to work with a new version of coopr_install.

File size: 1.1 KB
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
12import re
13import pyutilib.misc
14from coopr.opt.base import *
15from coopr.opt.solver import *
16
17
18class NLWRITE(SystemCallSolver):
19    """The NLWRITE .nl file writer (as a solver)
20    """
21
22    def __init__(self, **kwds):
23        kwds['type'] = 'nlwrite'
24        SystemCallSolver.__init__(self, **kwds)
25        self._valid_problem_formats=[ProblemFormat.nl]
26        self._valid_result_formats=[ResultsFormat.log]
27
28    def defaultPath(self):
29        return "/bin/true"
30
31    def create_command_line(self,executable,problem_files):
32        return pyutilib.misc.Bunch(cmd="/bin/true", log_file=None, env=None)
33
Note: See TracBrowser for help on using the repository browser.