python - Pyomo + asNMPC framework -


i'm trying work pyomo , external framework allows asnmpc optimization (from paper).

i installed version of pyomo tested (v 4.1.10519) , made changes core pyomo files requested following error when try run 1 of test files (penicillin_asnmpc.py):

file "/opt/local/library/frameworks/python.framework/versions/2.7/lib    /python2.7/site-packages/pyomo/dae/plugins/colloc.py", line 482, in     reduce_collocation_points   if diffset.type() not differentialset: nameerror: global name 'differentialset' not defined 

comparing version of pyomo comments online seems indicated there used file called differential.py may have been renamed contset.py. meaning 'differentialset' changed variable 'continuousset'. however, since followed requested changes , i'm using recommend version of pyomo, figured should not having problem.

just wondering if has had issues using framework/has helpful advice.

thanks!

based on error you're seeing guess old version of pyomo not uninstalled completely. should uninstall pyomo using script mentioned in this blog post , reinstall new version.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -