Troubleshooting¶
Infeasible Model¶
Problem: Solver reports the model is infeasible.
Solutions:
- Check that supply can meet demand at all timesteps
- Verify capacity limits are sufficient
- Review storage initial/final states
Unbounded Model¶
Problem: Solver reports the model is unbounded.
Solutions:
- Add upper bounds to all flows
- Ensure investment parameters have maximum sizes
- Verify effect coefficients have correct signs
Unexpected Results¶
Debugging Steps:
-
Enable logging:
-
Start with a minimal model and add complexity incrementally
-
Check units are consistent
-
Visualize results to verify energy balances
Slow Solve Times¶
Solutions:
- Use longer timesteps or aggregate time periods
- Use Gurobi instead of HiGHS for large models
- Set solver options:
Getting Help¶
If you're stuck:
- Search GitHub Issues
- Open a new issue with:
- Minimal reproducible example
- flixopt and Python version
- Full error message