Skip to content

Commit

Permalink
Prepare release v0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fdabrandao committed May 21, 2024
1 parent e27346e commit e8bab63
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## 0.14.0 - 2024-05-##
## 0.14.0 - 2024-05-21
- Allow assigning values to indexed sets from a dictionary with the lists of members
for every index.
- Add AMPL.get_iis() to return dictionaries with variables and constraints in IIS.
Expand Down
2 changes: 1 addition & 1 deletion amplpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
except Exception:
pass

__version__ = "0.14.0b0"
__version__ = "0.14.0"


def _list_aliases():
Expand Down
6 changes: 3 additions & 3 deletions amplpy/ampl.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,17 +919,17 @@ def get_iis(self):
var_iis, con_iis = ampl.get_iis()
print(var_iis, con_iis)
"""
df_var = dict(
iis_var = dict(
self.get_data(
"{i in 1.._nvars: _var[i].iis != 'non'} (_varname[i], _var[i].iis)"
).to_list(skip_index=True)
)
df_con = dict(
iis_con = dict(
self.get_data(
"{i in 1.._ncons: _con[i].iis != 'non'} (_conname[i], _con[i].iis)"
).to_list(skip_index=True)
)
return df_var, df_con
return iis_var, iis_con

def get_solution(self, flat=True, zeros=False):
"""
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
amplpy==0.13.3
amplpy==0.14.0
ampl-sphinx-theme @ git+https://github.com/ampl/ampl.github.io.git#subdirectory=ampl-sphinx-theme
sphinx==4.2.0
myst_parser>=0.17.0
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def link_args():

setup(
name="amplpy",
version="0.14.0b0",
version="0.14.0",
description="Python API for AMPL",
long_description=__doc__,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit e8bab63

Please sign in to comment.