Skip to content

Commit

Permalink
Removed ortools from license and requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
SanPen committed Oct 10, 2024
1 parent aec152d commit 55f23a3
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 29 deletions.
25 changes: 11 additions & 14 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion doc/rst_source/license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ License of the dependencies
+--------------+------------------------------------------+
| pandas | Apache |
+--------------+------------------------------------------+
| ortools | Apache |
| pulp | MIT-like (permissive) |
+--------------+------------------------------------------+
| xlwt | BSD |
+--------------+------------------------------------------+
Expand Down
4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ networkx>=2.1
pandas>=1.1
xlwt>=1.3.0
xlrd>=1.1.0
# ortools>=9.10.0,
pulp
highspy
matplotlib>=2.1.1
qtconsole>=4.3.1
openpyxl>=2.4.9
Expand All @@ -21,8 +21,6 @@ pyproj
pyarrow>=15
fastparquet>=2024
darkdetect
# pyqtdarktheme
# qdarktheme
nptyping
windpowerlib
pvlib
Expand Down
2 changes: 1 addition & 1 deletion src/GridCal/LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ List of strict dependencies
+--------------+------------------------------------------+
| pandas | Apache |
+--------------+------------------------------------------+
| ortools | Apache |
| pulp | MIT-like |
+--------------+------------------------------------------+
| xlwt | BSD |
+--------------+------------------------------------------+
Expand Down
2 changes: 0 additions & 2 deletions src/GridCal/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
"scipy>=1.0.0",
"networkx>=2.1",
"pandas>=1.0",
"ortools>=9.8.0",
"xlwt>=1.3.0",
"xlrd>=1.1.0",
"matplotlib>=2.1.1",
Expand All @@ -98,7 +97,6 @@
"numba>=0.46", # to compile routines natively
'pyproj',
'pyarrow',
'ortools',
"darkdetect",
"pyqtdarktheme",
"nptyping",
Expand Down
2 changes: 1 addition & 1 deletion src/GridCalEngine/LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ List of strict dependencies
+--------------+------------------------------------------+
| pandas | Apache |
+--------------+------------------------------------------+
| ortools | Apache |
| pulp | MIT-like |
+--------------+------------------------------------------+
| xlwt | BSD |
+--------------+------------------------------------------+
Expand Down
2 changes: 1 addition & 1 deletion src/GridCalEngine/Simulations/OPF/linear_opf_ts.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ def add_linear_generation_formulation(t: Union[int, None],
:param time_array: complete time array
:param gen_data_t: GeneratorData structure
:param gen_vars: GenerationVars structure
:param prob: ORTools problem
:param prob: LpModel
:param unit_commitment: formulate unit commitment?
:param ramp_constraints: formulate ramp constraints?
:param skip_generation_limits: skip the generation limits?
Expand Down
4 changes: 2 additions & 2 deletions src/GridCalEngine/Utils/MIP/pulp_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

"""
This module abstracts the synthax of ORTOOLS out
This module abstracts the synthax of PuLP out
so that in the future it can be exchanged with some
other solver interface easily
"""
Expand Down Expand Up @@ -86,7 +86,7 @@ def set_var_bounds(var: LpVar, lb: float, ub: float):

class LpModel:
"""
LPModel implementation for ORTOOLS
LPModel implementation for PuLP
"""
OPTIMAL = pulp.LpStatusOptimal
INFINITY = 1e20
Expand Down
6 changes: 3 additions & 3 deletions src/GridCalEngine/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
"scipy>=1.0.0",
"networkx>=2.1",
"pandas>=1.0",
"ortools>=9.10.0",
# "ortools>=9.10.0",
"pulp",
"highspy",
"xlwt>=1.3.0",
"xlrd>=1.1.0",
"matplotlib>=2.1.1",
Expand All @@ -70,8 +72,6 @@
"numba>=0.46", # to compile routines natively
'pyproj',
'pyarrow>=15',
# 'ortools',
'pulp',
"nptyping",
"windpowerlib",
"pvlib",
Expand Down
2 changes: 1 addition & 1 deletion src/GridCalServer/LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ List of strict dependencies
+--------------+------------------------------------------+
| pandas | Apache |
+--------------+------------------------------------------+
| ortools | Apache |
| pulp | MIT-Like |
+--------------+------------------------------------------+
| xlwt | BSD |
+--------------+------------------------------------------+
Expand Down

0 comments on commit 55f23a3

Please sign in to comment.