naohiro701 commited on
Commit
c9b1361
·
verified ·
1 Parent(s): 90f4000

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -253,14 +253,14 @@ In our renewable energy model, the **objective function** is to minimize the tot
253
  st.latex(r"""
254
  \text{Minimize } \quad \sum_{r, g} \text{Cost}_{g} \times \text{Capacity}_{r, g} + \text{Battery Cost} \times \text{Battery Capacity}
255
  """)
256
- st.markdown("""
257
  where:
258
- - \( r \) represents the region (in this case, a single region),
259
- - \( g \) represents the generation technology (solar, onshore wind, offshore wind, river),
260
- - \( \text{Cost}_{g} \) is the per-MW cost of technology \( g \),
261
- - \( \text{Capacity}_{r, g} \) is the installed capacity of technology \( g \) in region \( r \),
262
- - \( \text{Battery Cost} \) represents the cost per MWh of battery storage,
263
- - \( \text{Battery Capacity} \) is the total installed battery capacity.
264
  """)
265
 
266
  st.markdown("""
@@ -272,23 +272,23 @@ MGA addresses this need by generating **alternative solutions** that are close t
272
  """)
273
 
274
  st.write("## How MGA Works: Adding a Cost Constraint")
275
- st.markdown("""
276
- To generate alternatives, MGA introduces a **cost tolerance** parameter \\( \\epsilon \\), which represents the acceptable increase in total cost relative to the optimal solution. The cost constraint for alternative solutions is expressed as:
277
  """)
278
  st.latex(r"""
279
  \text{Total Cost} \leq (1 + \epsilon) \times \text{Optimal Cost}
280
  """)
281
- st.markdown("""
282
  where:
283
- - \\( \\epsilon \\) is the cost deviation percentage (e.g., if \\( \\epsilon = 0.05 \\), then the solution can be up to 5% more expensive than the optimal cost),
284
- - \\( \\text{Optimal Cost} \\) is the minimum cost obtained from the initial optimization.
285
  This constraint allows for flexibility in cost, enabling the exploration of solutions that are **near-optimal** but differ in terms of installed capacities for each technology.
286
  """)
287
 
288
  st.markdown("""
289
  ### MGA Process in This Application
290
- 1. **Initial Optimization**: First, we solve for the optimal solution to obtain the minimal total cost, referred to as \\( \\text{Optimal Cost} \\).
291
- 2. **Setting the Cost Threshold**: We introduce a range of \\( \\epsilon \\) values (0%, 5%, 10%, etc.) to explore how alternative solutions differ as we allow for higher costs.
292
  3. **Minimizing and Maximizing Capacities**: For each selected technology (e.g., solar, wind, hydro), we attempt to:
293
  - **Minimize the installed capacity** within the allowed cost threshold, identifying configurations with the lowest feasible capacity for that technology.
294
  - **Maximize the installed capacity** under the same conditions, exploring configurations with higher reliance on that technology.
 
253
  st.latex(r"""
254
  \text{Minimize } \quad \sum_{r, g} \text{Cost}_{g} \times \text{Capacity}_{r, g} + \text{Battery Cost} \times \text{Battery Capacity}
255
  """)
256
+ st.latex("""
257
  where:
258
+ - $r$ represents the region (in this case, a single region),
259
+ - $g$ represents the generation technology (solar, onshore wind, offshore wind, river),
260
+ - $\text{Cost}_{g}$ is the per-MW cost of technology $g$,
261
+ - $\text{Capacity}_{r, g}$ is the installed capacity of technology $g$ in region $r$,
262
+ - $\text{Battery Cost}$ represents the cost per MWh of battery storage,
263
+ - $\text{Battery Capacity}$ is the total installed battery capacity.
264
  """)
265
 
266
  st.markdown("""
 
272
  """)
273
 
274
  st.write("## How MGA Works: Adding a Cost Constraint")
275
+ st.latex("""
276
+ To generate alternatives, MGA introduces a **cost tolerance** parameter $\epsilon$, which represents the acceptable increase in total cost relative to the optimal solution. The cost constraint for alternative solutions is expressed as:
277
  """)
278
  st.latex(r"""
279
  \text{Total Cost} \leq (1 + \epsilon) \times \text{Optimal Cost}
280
  """)
281
+ st.latex("""
282
  where:
283
+ - $\epsilon$ is the cost deviation percentage (e.g., if $\epsilon = 0.05$ , then the solution can be up to 5% more expensive than the optimal cost),
284
+ - $\text{Optimal Cost}$ is the minimum cost obtained from the initial optimization.
285
  This constraint allows for flexibility in cost, enabling the exploration of solutions that are **near-optimal** but differ in terms of installed capacities for each technology.
286
  """)
287
 
288
  st.markdown("""
289
  ### MGA Process in This Application
290
+ 1. **Initial Optimization**: First, we solve for the optimal solution to obtain the minimal total cost, referred to as $\text{Optimal Cost}$ .
291
+ 2. **Setting the Cost Threshold**: We introduce a range of $\epsilon$ values (0%, 5%, 10%, etc.) to explore how alternative solutions differ as we allow for higher costs.
292
  3. **Minimizing and Maximizing Capacities**: For each selected technology (e.g., solar, wind, hydro), we attempt to:
293
  - **Minimize the installed capacity** within the allowed cost threshold, identifying configurations with the lowest feasible capacity for that technology.
294
  - **Maximize the installed capacity** under the same conditions, exploring configurations with higher reliance on that technology.