Hello all,
I want to optimize a simple unit commitment problem using PyPSA. The optimization is infeasible, and I am trying to find out which equations or variable bounds are causing the infeasibility.
To do so, I am trying to call the functions that are in the pyomo.util.infeasible module. But I am not certain, where/how/if they should be called!
In particular, I am trying something like:
...
import logging
logging.basicConfig(level=logging.ERROR)
...
pypsa.opf.logger.setLevel(logging.INFO)
from pyomo.util.infeasible import log_infeasible_constraints
...
network.lopf(network.snapshots)
log_infeasible_constraints(network)
but this does not return any log information regarding the infeasibility.
Next, I thought that maybe I should call the infeasibility functions within the opf.py file, maybe even within the network_lopf function, but that didn't work either.
Final trial I made was to change keep_files to True and search for the log files, but I was unable to read the files generated in raw and lp format...
It would be great if you could provide guidance as to where/how I should "ask" pyPSA to show me the infeasible constraints.
Thanks for taking the time to read my question!
Marilena
--
You received this message because you are subscribed to the Google Groups "pypsa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pypsa+un...@googlegroups.com.
To post to this group, send email to py...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pypsa/2f32bc4a-4c05-41d3-aca8-dad6b0172a29%40googlegroups.com.
If you are using network.lopf() I am not sure where to include the "options_string=solver_parameters", - maybe someone else in the forum can help?
To unsubscribe from this group and stop receiving emails from it, send an email to py...@googlegroups.com.