energy_system_optimization/main.py

20 lines
414 B
Python
Raw Permalink Normal View History

2023-06-07 10:33:44 -04:00
"""
API for running Energy Optimization with Pyomo.
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2023 Project Author Alireza Adli alireza.adli@concordia.ca
"""
from flask import Flask
from flask_restful import Api
from energy_optimization_pyomo import EnergyOptimizationPyomo
app = Flask(__name__)
api = Api(app)
api.add_resource(EnergyOptimizationPyomo, '/result')
app.run(debug=False)