Created
April 10, 2012 01:41
-
-
Save noahgift/2347838 to your computer and use it in GitHub Desktop.
Wyndor trackeback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Day-Walker.local:/Users/noahgift/Downloads pyomo --debug wyndor1.py | |
[ 0.00] Setting up Pyomo environment | |
[ 0.00] Applying Pyomo preprocessing actions | |
DEBUG: "[base]/coopr/pyomo/base/sets.py", 263, construct | |
Constructing _SetContainer, name=WeeklyProd_index, from data=None | |
DEBUG: "[base]/coopr/pyomo/base/var.py", 479, construct | |
Constructing Variable, name=WeeklyProd, from data=None | |
DEBUG: "[base]/coopr/pyomo/base/objective.py", 223, construct | |
Constructing objective obj | |
DEBUG: "[base]/coopr/pyomo/base/sets.py", 263, construct | |
Constructing _SetContainer, name=Capacity_index, from data=None | |
DEBUG: "[base]/coopr/pyomo/base/constraint.py", 302, construct | |
Constructing constraint Capacity | |
DEBUG: "[base]/coopr/pyomo/base/constraint.py", 341, construct | |
Constructing constraint index Door Fab | |
ERROR: "[base]/pyutilib.misc-5.1-py2.7.egg/pyutilib/misc/import_file.py", 84, import_file | |
Failed to load python module=wyndor1.py: | |
('Doors', <Plugin ConcreteModel 'unknown'>) | |
ERROR: "[base]/coopr/pyomo/scripting/util.py", 200, pyomo_excepthook | |
Unexpected exception while loading model wyndor1.py | |
'Doors', <Plugin ConcreteModel 'unknown'> | |
Traceback (most recent call last): | |
File "/usr/local/bin/pyomo", line 8, in <module> | |
load_entry_point('coopr.pyomo==3.0.1', 'console_scripts', 'pyomo')() | |
File "/Library/Python/2.7/site-packages/coopr.pyomo-3.0.1-py2.7.egg/coopr/pyomo/scripting/pyomo.py", line 352, in main | |
ans = run(args) | |
File "/Library/Python/2.7/site-packages/coopr.pyomo-3.0.1-py2.7.egg/coopr/pyomo/scripting/pyomo.py", line 348, in run | |
result = util.run_command(run_pyomo, create_parser(), args=args, name='pyomo') | |
File "/Library/Python/2.7/site-packages/coopr.pyomo-3.0.1-py2.7.egg/coopr/pyomo/scripting/util.py", line 795, in run_command | |
ans = command(options=options, parser=parser) | |
File "/Library/Python/2.7/site-packages/coopr.pyomo-3.0.1-py2.7.egg/coopr/pyomo/scripting/pyomo.py", line 318, in run_pyomo | |
if not util.apply_preprocessing(options, parser): | |
File "/Library/Python/2.7/site-packages/coopr.pyomo-3.0.1-py2.7.egg/coopr/pyomo/scripting/util.py", line 256, in apply_preprocessing | |
options.usermodel = pyutilib.misc.import_file(options.model_file) | |
File "/Library/Python/2.7/site-packages/pyutilib.misc-5.1-py2.7.egg/pyutilib/misc/import_file.py", line 78, in import_file | |
module = imp.load_source( name, filename ) | |
File "wyndor1.py", line 24, in <module> | |
model.Capacity = Constraint(Plants, rule = CapacityRule) | |
File "/Library/Python/2.7/site-packages/coopr.pyomo-3.0.1-py2.7.egg/coopr/pyomo/base/block.py", line 545, in __setattr__ | |
self._add_component(name,val) | |
File "/Library/Python/2.7/site-packages/coopr.pyomo-3.0.1-py2.7.egg/coopr/pyomo/base/block.py", line 507, in _add_component | |
val.construct(None) | |
File "/Library/Python/2.7/site-packages/coopr.pyomo-3.0.1-py2.7.egg/coopr/pyomo/base/constraint.py", line 343, in construct | |
_self_model, index ) ) | |
File "/Library/Python/2.7/site-packages/coopr.pyomo-3.0.1-py2.7.egg/coopr/pyomo/base/misc.py", line 41, in apply_indexed_rule | |
return rule(model, index) | |
File "wyndor1.py", line 22, in CapacityRule | |
return sum(HoursPerUnit[i,p] * model.WeeklyProd[i] for i in Products) <= HoursAvailable[p] | |
File "wyndor1.py", line 22, in <genexpr> | |
return sum(HoursPerUnit[i,p] * model.WeeklyProd[i] for i in Products) <= HoursAvailable[p] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment