Update app.py
Browse files
app.py
CHANGED
|
@@ -281,7 +281,7 @@ st.latex(r"""
|
|
| 281 |
""")
|
| 282 |
st.markdown("""
|
| 283 |
where:
|
| 284 |
-
- $\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),
|
| 285 |
- ${Optimal\, Cost}$ is the minimum cost obtained from the initial optimization.
|
| 286 |
|
| 287 |
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.
|
|
@@ -289,7 +289,7 @@ This constraint allows for flexibility in cost, enabling the exploration of solu
|
|
| 289 |
|
| 290 |
st.markdown("""
|
| 291 |
### MGA Process in This Application
|
| 292 |
-
1. **Initial Optimization**: First, we solve for the optimal solution to obtain the minimal total cost, referred to as $
|
| 293 |
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.
|
| 294 |
3. **Minimizing and Maximizing Capacities**: For each selected technology (e.g., solar, wind, hydro), we attempt to:
|
| 295 |
- **Minimize the installed capacity** within the allowed cost threshold, identifying configurations with the lowest feasible capacity for that technology.
|
|
@@ -298,24 +298,24 @@ st.markdown("""
|
|
| 298 |
These steps generate a set of **alternative solutions** that are close in cost but vary significantly in their reliance on each technology, revealing **flexibility** and **trade-offs** in the renewable energy system configuration.
|
| 299 |
""")
|
| 300 |
|
| 301 |
-
st.write("## Interpreting the Cost Threshold ($
|
| 302 |
st.markdown("""
|
| 303 |
-
The cost threshold parameter ($epsilon$ ) is crucial in MGA, as it determines the range within which we consider solutions to be "near-optimal." For example:
|
| 304 |
-
- **$epsilon = 0% $**: Only the exact optimal solution is considered.
|
| 305 |
-
- **$epsilon = 5% $**: Solutions within 5% of the optimal cost are considered acceptable, allowing for slightly more flexibility in technology choice.
|
| 306 |
-
- **$epsilon = 10% $**: Solutions within 10% of the optimal cost are allowed, providing even greater flexibility.
|
| 307 |
|
| 308 |
-
By exploring a range of $epsilon$ values, we can see how the system configuration changes as we relax the cost constraint, offering a broader view of feasible solutions.
|
| 309 |
""")
|
| 310 |
|
| 311 |
st.markdown("""
|
| 312 |
## Visualization of Results
|
| 313 |
- **Cost Breakdown**: The total cost of each solution, broken down by technology, helps us see the contribution of each technology to the total cost.
|
| 314 |
-
- **Capacity Ranges**: For each technology, we plot the minimum and maximum capacities across different $epsilon$ values, showing the flexibility in system design as cost thresholds change.
|
| 315 |
|
| 316 |
This visualization provides insights into:
|
| 317 |
-
- Which technologies are essential (appear consistently in solutions across all $epsilon$ values),
|
| 318 |
-
- Which technologies offer flexibility (capacities vary widely as $epsilon$ increases),
|
| 319 |
- The cost impact of relying more or less on specific technologies.
|
| 320 |
|
| 321 |
Through MGA, we can make more **informed decisions** about the renewable energy mix and identify robust, flexible strategies that align with broader goals beyond cost minimization.
|
|
|
|
| 281 |
""")
|
| 282 |
st.markdown("""
|
| 283 |
where:
|
| 284 |
+
- $\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),
|
| 285 |
- ${Optimal\, Cost}$ is the minimum cost obtained from the initial optimization.
|
| 286 |
|
| 287 |
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.
|
|
|
|
| 289 |
|
| 290 |
st.markdown("""
|
| 291 |
### MGA Process in This Application
|
| 292 |
+
1. **Initial Optimization**: First, we solve for the optimal solution to obtain the minimal total cost, referred to as ${Optimal\, Cost}$.
|
| 293 |
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.
|
| 294 |
3. **Minimizing and Maximizing Capacities**: For each selected technology (e.g., solar, wind, hydro), we attempt to:
|
| 295 |
- **Minimize the installed capacity** within the allowed cost threshold, identifying configurations with the lowest feasible capacity for that technology.
|
|
|
|
| 298 |
These steps generate a set of **alternative solutions** that are close in cost but vary significantly in their reliance on each technology, revealing **flexibility** and **trade-offs** in the renewable energy system configuration.
|
| 299 |
""")
|
| 300 |
|
| 301 |
+
st.write("## Interpreting the Cost Threshold ($\epsilon$ )")
|
| 302 |
st.markdown("""
|
| 303 |
+
The cost threshold parameter ($\epsilon$ ) is crucial in MGA, as it determines the range within which we consider solutions to be "near-optimal." For example:
|
| 304 |
+
- **$\epsilon = 0% $**: Only the exact optimal solution is considered.
|
| 305 |
+
- **$\epsilon = 5% $**: Solutions within 5% of the optimal cost are considered acceptable, allowing for slightly more flexibility in technology choice.
|
| 306 |
+
- **$\epsilon = 10% $**: Solutions within 10% of the optimal cost are allowed, providing even greater flexibility.
|
| 307 |
|
| 308 |
+
By exploring a range of $\epsilon$ values, we can see how the system configuration changes as we relax the cost constraint, offering a broader view of feasible solutions.
|
| 309 |
""")
|
| 310 |
|
| 311 |
st.markdown("""
|
| 312 |
## Visualization of Results
|
| 313 |
- **Cost Breakdown**: The total cost of each solution, broken down by technology, helps us see the contribution of each technology to the total cost.
|
| 314 |
+
- **Capacity Ranges**: For each technology, we plot the minimum and maximum capacities across different $\epsilon$ values, showing the flexibility in system design as cost thresholds change.
|
| 315 |
|
| 316 |
This visualization provides insights into:
|
| 317 |
+
- Which technologies are essential (appear consistently in solutions across all $\epsilon$ values),
|
| 318 |
+
- Which technologies offer flexibility (capacities vary widely as $\epsilon$ increases),
|
| 319 |
- The cost impact of relying more or less on specific technologies.
|
| 320 |
|
| 321 |
Through MGA, we can make more **informed decisions** about the renewable energy mix and identify robust, flexible strategies that align with broader goals beyond cost minimization.
|