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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -