Package: pyomo Version: 4.3.11327-1 Severity: normal Pyomo crashes using the glp solver:
<cut> $ pyomo solve --solver=glp diet1.py diet.dat --summary Traceback (most recent call last): File "/usr/bin/pyomo", line 9, in <module> load_entry_point('Pyomo==4.3.11327', 'console_scripts', 'pyomo')() File "/usr/lib/python3/dist-packages/pyomo/scripting/pyomo_main.py", line 83, in main retval = _options.func(_options, _unparsed) File "/usr/lib/python3/dist-packages/pyomo/scripting/plugins/solve.py", line 181, in solve_exec config = opt.config_block() File "/usr/lib/python3/dist-packages/pyomo/opt/base/solvers.py", line 139, in __getattr__ self._solver_error(attr) File "/usr/lib/python3/dist-packages/pyomo/opt/base/solvers.py", line 153, in _solver_error + "\n\toptions: %s" % ( self.options, ) ) RuntimeError: Attempting to use an unavailable solver. The SolverFactory was unable to create the solver "glp" and returned an UnknownSolver object. This error is raised at the point where the UnknownSolver object was used as if it were valid (by calling method "config_block"). The original solver was created with the following parameters: type: glp _args: () options: {} </cut> Until this is fixed, users can use the clc solver instead: <cut> $ pyomo solve --solver=cbc diet1.py diet.dat --summary [ 0.00] Setting up Pyomo environment [ 0.00] Applying Pyomo preprocessing actions [ 0.00] Creating model [ 0.08] Applying solver [ 0.22] Processing results Number of solutions: 1 Solution Information Gap: 0.0 Status: optimal Function Value: 2.81 Solver results file: results.yml ========================================================== Solution Summary ========================================================== Model unknown Variables: Buy : Size=9, Index=FOOD, Domain=NonNegativeIntegers Key : Lower : Value : Upper : Fixed : Stale 1% Lowfat Milk : 0.0 : 1 : 20.0 : False : False Big Mac : 0.0 : 0 : 20.0 : False : False Filet-O-Fish : 0.0 : 1 : 20.0 : False : False Fries, small : 0.0 : 1 : 20.0 : False : False McGrilled Chicken : 0.0 : 0 : 20.0 : False : False McLean Deluxe w Cheese : 0.0 : 0 : 20.0 : False : False Orange Juice : 0.0 : 0 : 20.0 : False : False Quarter Pounder w Cheese : 0.0 : 0 : 20.0 : False : False Sausage McMuffin : 0.0 : 0 : 20.0 : False : False Objectives: Total_Cost : Size=1, Index=None, Active=True Key : Active : Value None : True : 2.81 Constraints: Entree : Size=1 Key : Lower : Body : Upper None : 1.0 : 1 : None Side : Size=1 Key : Lower : Body : Upper None : 1.0 : 1 : None Drink : Size=1 Key : Lower : Body : Upper None : 1.0 : 1 : None [ 0.23] Applying Pyomo postprocessing actions [ 0.23] Pyomo Finished </cut> Thanks, DS -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages pyomo depends on: ii python3-appdirs 1.4.0-2 ii python3-nose 1.3.7-1 ii python3-ply 3.7-1 ii python3-pyutilib 5.3.2-1 ii python3-six 1.10.0-3 ii python3-yaml 3.11-3+b1 pn python3:any <none> Versions of packages pyomo recommends: ii coinor-cbc 2.8.12-1+b1 ii glpk-utils 4.58-2 pyomo suggests no packages. -- no debconf information