CJahns commited on
Commit
3e9e0cc
·
1 Parent(s): b36c2f1

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -236,9 +236,15 @@ with colb2:
236
 
237
 
238
  # %%
239
- df_Co2_price = m.constraints['CO2_limit'].dual.values
 
 
 
240
 
241
 
 
 
 
242
 
243
  import pandas as pd
244
  from io import BytesIO
@@ -256,7 +262,8 @@ with pd.ExcelWriter(output, engine='xlsxwriter') as writer:
256
  df_contr_marg.to_excel(writer, sheet_name='Contribution Margin', index=False)
257
  df_new_capacities.to_excel(writer, sheet_name='Capacities', index=False)
258
  df_production.to_excel(writer, sheet_name='Production', index=False)
259
-
 
260
 
261
  with col4:
262
  st.download_button(
 
236
 
237
 
238
  # %%
239
+ df_Co2_price = pd.DataFrame({'CO2_Price': [float(m.constraints['CO2_limit'].dual.values)]})
240
+
241
+ with colb2:
242
+ st.write('CO2 Price ' + str(df_Co2_price))
243
 
244
 
245
+ # %%
246
+ ((m.solution['y'] / eff_i) * co2_factor_i * dt).sum()
247
+ # %%
248
 
249
  import pandas as pd
250
  from io import BytesIO
 
262
  df_contr_marg.to_excel(writer, sheet_name='Contribution Margin', index=False)
263
  df_new_capacities.to_excel(writer, sheet_name='Capacities', index=False)
264
  df_production.to_excel(writer, sheet_name='Production', index=False)
265
+ df_Co2_price.to_excel(writer, sheet_name='CO2_Price', index=False)
266
+
267
 
268
  with col4:
269
  st.download_button(