You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The snakemake workflow ends at at creating the lp file. We need to add in rules for actually solving the model. There will probably be two branches for this, one using CBC (so there is a workflow in place for full open-source) and one for CPLEX (as its way faster!). The general steps are shown below for both. Double check exact commands, these are off the top of my head!
Solve via CBC
CBC solve command
use otoole to convert cbc results to folder of csvs (otoole results –input_datapackage datapackage.json –input_datafile <datafile.txt> cbc csv <cbcResults.sol> <resultsFolder>)
Solve via CPLEX
CPLEX solve command to get a *.sol file (might be worth writing out solution quality at this point as well)
Run the transformation script on the *.sol file as described in "Using OSeMOSYS with CPLEX Solver" section here
Run the sort command (sort original.sol > sorted.sol)
Run the convert cplex to cbc results script found on the Osemosys GitHub here . Make sure to input the correct start and end year when executing the script
use otoole to create a folder of csvs (otoole results –input_datapackage datapackage.json –input_datafile <datafile.txt> cbc csv <cbcResults.sol> <resultsFolder>)
The text was updated successfully, but these errors were encountered:
I think there were issues with getting the folder of CSVs at the end using CPLEX, so some trial and error will probably be needed to sort that out. Right now, we only use Rate of Activity and New Capacity (as thats all we could get to print out) then manually calculate the other variables we need in the result jupyter notebooks
The snakemake workflow ends at at creating the lp file. We need to add in rules for actually solving the model. There will probably be two branches for this, one using CBC (so there is a workflow in place for full open-source) and one for CPLEX (as its way faster!). The general steps are shown below for both. Double check exact commands, these are off the top of my head!
otoole results –input_datapackage datapackage.json –input_datafile <datafile.txt> cbc csv <cbcResults.sol> <resultsFolder>
)sort original.sol > sorted.sol
)otoole results –input_datapackage datapackage.json –input_datafile <datafile.txt> cbc csv <cbcResults.sol> <resultsFolder>
)The text was updated successfully, but these errors were encountered: