Skip to content

Commit

Permalink
RefExplorer: no links from NL vars #232
Browse files Browse the repository at this point in the history
No reformulations of them currently, only in AMPL
  • Loading branch information
glebbelov committed Apr 4, 2024
1 parent b0e2648 commit 9084944
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion support/modelexplore/scripts/python/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def AddLinks(self, chunk):
for d in dest_nodes:
for sk, svL in s.items(): ## Actually just 1 key-value pair
for dk, dvL in d.items():
if not dk.startswith("dest_cons("): ## TODO extract group index
if not dk.startswith("dest_cons(") \
and "src_vars()"!=sk: ## No links from NL vars. TODO extract group index
ifsV = int==type(svL) ## Scalar
ifdV = int==type(dvL)
if ifsV and ifdV:
Expand Down

0 comments on commit 9084944

Please sign in to comment.