python - Is it possible to import multi-set parameters via pyodbc in a Pyomo Abstract Model? -
has been successful in loading multiset parameter in pyomo using pyodbc?
example:
load "driver={postgresql};database=db;server=srv;user=user;" using='pyodbc' query="select a, b, c tbl": [a, b] c;
the corresponding entry in model
model.c = param(model.a,model.b)
loading one-dimensional sets , parameters work. query above results in 'abstractmodel' object has no attribute 'c' error
.
i solved issue converting abstract model concrete model , importing data via psycopg2 connections.
Comments
Post a Comment