I'd like to know how it's possible to obtain the lagrange multipliers from an optimal solution in a Concrete model solved with glpk?
Thanks!
I'd like to know how it's possible to obtain the lagrange multipliers from an optimal solution in a Concrete model solved with glpk?
Thanks!
--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-forum...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyomo-forum/90bc04de-f135-4f40-b847-2723b78319aen%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyomo-forum/CAERj1nWHv%2B3SXZUZ0wGEObXMm43kVOZBp9vg7NTNVYYyP49B8w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyomo-forum/CACkU_%3D80-ts23xtCzep%3DF9yAMNvefoqeBa_bCo%2BYJm_d4BYfmA%40mail.gmail.com.
Duals Constraint Carga
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) C:\Users\Daniel Rueda\.conda\envs\Tesis\lib\site-packages\pyomo\common\collections\component_map.py in __getitem__(self, obj) 99 try: --> 100 return self._dict[id(obj)][1] 101 except KeyError: KeyError: 1947256489064 During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) <ipython-input-41-cf302eb9ef0a> in <module> 4 print (" Constraint",c) 5 for index in c: ----> 6 print (" ", index, model.dual[c[index]]) 7 C:\Users\Daniel Rueda\.conda\envs\Tesis\lib\site-packages\pyomo\common\collections\component_map.py in __getitem__(self, obj) 101 except KeyError: 102 raise KeyError("Component with id '%s': %s" --> 103 % (id(obj), str(obj))) 104 105 def __setitem__(self, obj, val): KeyError: "Component with id '1947256489064': Carga[Bus_0001,1]"
You received this message because you are subscribed to a topic in the Google Groups "Pyomo Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyomo-forum/W2sLo7a532I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyomo-forum...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyomo-forum/CAERj1nWHv%2B3SXZUZ0wGEObXMm43kVOZBp9vg7NTNVYYyP49B8w%40mail.gmail.com.