[SCIP] Installation Problem on Windows
Cokyasar, Taner
tcokyasar at anl.gov
Mon Jan 18 19:14:02 CET 2021
Hi,
I am trying to solve a nonlinear problem using the Jupyter Notebook interface to Python 3.7 via Ipopt through Pyomo modeling method.
Unfortunately, Ipopt could not solve my problem, and I started to look at alternative options.
I tried to install SCIP following instructions on here<https://www.scipopt.org/index.php#download>. Then, I tried to use it with Pyomo as follows (shown bold) and received the following error. Can you please help me get going with it?
opt = SolverFactory('scip', executable = C:/Program Files/SCIPOptSuite 7.0.2/bin/scip “
results = opt.solve(m, tee=True)
invalid parameter <C:\Users\TCOKYA~1\AppData\Local\Temp\tmp25pw_oxr.pyomo.nl>
invalid parameter <-AMPL>
syntax: C:\Program Files\SCIPOptSuite 7.0.2\bin\scip.exe [-l <logfile>] [-q] [-s <settings>] [-r <randseed>] [-f <problem>] [-b <batchfile>] [-c "command"]
-v, --version : print version and build options
-l <logfile> : copy output into log file
-q : suppress screen messages
-s <settings> : load parameter settings (.set) file
-f <problem> : load and solve problem file
-o <primref> <dualref> : pass primal and dual objective reference values for validation at the end of the solve
-b <batchfile>: load and execute dialog command batch file (can be used multiple times)
-r <randseed> : nonnegative integer to be used as random seed. Has priority over random seed specified through parameter settings (.set) file
-c "command" : execute single line of dialog commands (can be used multiple times)
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-27-5b246395f577> in <module>
10 opt = SolverFactory('{}'.format(solver_name))
11 # print(opt.solve(m))
---> 12 results = opt.solve(m, tee=True)
13 ### END SOLVING THE PROBLEM ###
~\Anaconda3\lib\site-packages\pyomo\opt\base\solvers.py in solve(self, *args, **kwds)
603 print(" %6.2f seconds required for solver" % (solve_completion_time - presolve_completion_time))
604
--> 605 result = self._postsolve()
606 result._smap_id = self._smap_id
607 result._smap = None
~\Anaconda3\lib\site-packages\pyomo\solvers\plugins\solvers\SCIPAMPL.py in _postsolve(self)
168
169 def _postsolve(self):
--> 170 results = super(SCIPAMPL, self)._postsolve()
171 if results.solver.message == "unknown":
172 results.solver.status = \
~\Anaconda3\lib\site-packages\pyomo\opt\solver\shellcmd.py in _postsolve(self)
268
269 if self._results_format is not None:
--> 270 results = self.process_output(self._rc)
271 #
272 # If keepfiles is true, then we pop the
~\Anaconda3\lib\site-packages\pyomo\opt\solver\shellcmd.py in process_output(self, rc)
348 results = self._results_reader(self._results_file,
349 res=results,
--> 350 suffixes=self._suffixes)
351 results_reader_completion_time = time.time()
352 if self._report_timing is True:
~\Anaconda3\lib\site-packages\pyomo\opt\plugins\sol.py in __call__(self, filename, res, soln, suffixes)
44 """
45 try:
---> 46 with open(filename,"r") as f:
47 return self._load(f, res, soln, suffixes)
48 except ValueError as e:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\TCOKYA~1\\AppData\\Local\\Temp\\tmp25pw_oxr.pyomo.sol'
Best regards,
_____________________________________________________________________
Taner Cokyasar, Ph.D.
Postdoctoral Appointee Transportation System Modeler
Energy Systems Division | Argonne National Laboratory
9700 S. Cass Avenue, Lemont, IL 60439<https://goo.gl/maps/T1VuNPs75J93fn2q9>
President – Student Leadership Board
Logistics and Supply Chain Division | Institute of Industrial & Systems Engineers
_____________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20210118/d81f9705/attachment.html>
More information about the Scip
mailing list