Пример #1
0
Файл: ASL.py Проект: Pyomo/pyomo
 def __init__(self, **kwds):
     try:
         ASL.__init__(self,**kwds)
     except pyutilib.common.ApplicationError: #pragma:nocover
         pass                        #pragma:nocover
     MockMIP.__init__(self,"asl")
     self._assert_available = True
Пример #2
0
 def create_command_line(self, executable, problem_files):
     command = CPLEXSHELL.create_command_line(self,
                                              executable,
                                              problem_files)
     MockMIP.create_command_line(self,
                                 executable,
                                 problem_files)
     return command
Пример #3
0
 def create_command_line(self,executable,problem_files):
     command = GLPKSHELL_old.create_command_line(self,executable,problem_files)
     MockMIP.create_command_line(self,executable,problem_files)
     return command
Пример #4
0
 def __init__(self, **kwds):
     try:
         GLPKSHELL_old.__init__(self, **kwds)
     except ApplicationError: #pragma:nocover
         pass                        #pragma:nocover
     MockMIP.__init__(self,"glpk")
Пример #5
0
 def __init__(self, **kwds):
     try:
         GLPKSHELL.__init__(self, **kwds)
     except ApplicationError:
         pass
     MockMIP.__init__(self, "glpk")
Пример #6
0
 def _execute_command(self, cmd):
     return MockMIP._execute_command(self, cmd)
Пример #7
0
 def create_command_line(self, executable, problem_files):
     command = CBCSHELL.create_command_line(self, executable, problem_files)
     MockMIP.create_command_line(self, executable, problem_files)
     return command
Пример #8
0
 def _execute_command(self,cmd):
     return MockMIP._execute_command(self,cmd)
Пример #9
0
 def __init__(self, **kwds):
     try:
         GLPKSHELL_old.__init__(self, **kwds)
     except ApplicationError: #pragma:nocover
         pass                        #pragma:nocover
     MockMIP.__init__(self,"glpk")
Пример #10
0
 def __init__(self, **kwds):
     try:
         XPRESS_shell.__init__(self, **kwds)
     except ApplicationError:  #pragma:nocover
         pass  #pragma:nocover
     MockMIP.__init__(self, "cplex")
Пример #11
0
 def __init__(self, **kwds):
     try:
         CBCSHELL.__init__(self, **kwds)
     except ApplicationError:  #pragma:nocover
         pass  #pragma:nocover
     MockMIP.__init__(self, "cbc")
Пример #12
0
 def create_command_line(self,executable,problem_files):
     command = XPRESS_shell.create_command_line(self,executable,problem_files)
     MockMIP.create_command_line(self,executable,problem_files)
     return command
Пример #13
0
 def __init__(self, **kwds):
     try:
         XPRESS_shell.__init__(self, **kwds)
     except pyutilib.common.ApplicationError: #pragma:nocover
         pass                                 #pragma:nocover
     MockMIP.__init__(self,"cplex")
Пример #14
0
 def _default_executable(self):
     return MockMIP.executable(self)
Пример #15
0
 def __init__(self, **kwds):
     try:
         CBCSHELL.__init__(self,**kwds)
     except pyutilib.common.ApplicationError: #pragma:nocover
         pass                        #pragma:nocover
     MockMIP.__init__(self,"cbc")
Пример #16
0
 def executable(self):
     return MockMIP.executable(self)
Пример #17
0
 def create_command_line(self,executable,problem_files):
     command = GLPKSHELL_old.create_command_line(self,executable,problem_files)
     MockMIP.create_command_line(self,executable,problem_files)
     return command
Пример #18
0
 def _default_executable(self):
     return MockMIP.executable(self)
Пример #19
0
 def __init__(self, **kwds):
     try:
         PICOSHELL.__init__(self, **kwds)
     except ApplicationError:  #pragma:nocover
         pass  #pragma:nocover
     MockMIP.__init__(self, "pico")
Пример #20
0
 def executable(self):
     return MockMIP.executable(self)
Пример #21
0
 def __init__(self, **kwds):
     try:
         ASL.__init__(self, **kwds)
     except pyutilib.common.ApplicationError:  #pragma:nocover
         pass  #pragma:nocover
     MockMIP.__init__(self, "asl")
Пример #22
0
 def __init__(self, **kwds):
     try:
         CPLEXSHELL.__init__(self, **kwds)
     except pyutilib.common.ApplicationError:  #pragma:nocover
         pass  #pragma:nocover
     MockMIP.__init__(self, "cplex")
Пример #23
0
 def create_command_line(self, executable, problem_files):
     command = XPRESS_shell.create_command_line(self, executable,
                                                problem_files)
     MockMIP.create_command_line(self, executable, problem_files)
     return command