Skip to content

Commit

Permalink
try matlab.engine connection without specific name
Browse files Browse the repository at this point in the history
  • Loading branch information
mldiego committed Jul 7, 2024
1 parent f9d910e commit 20a5687
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions code/nnv/examples/Submission/VNN_COMP2024/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ def run_instance(category, onnx, vnnlib, timeout, outputlocation) -> None:
#eng = matlab.engine.start_matlab()
eng_name = matlab.engine.find_matlab()[0]
print("Looking for connections")
eng = matlab.engine.connect_matlab(name=eng_name)
#
print(f'Successfully connected to engine: {eng_name}.')
# eng = matlab.engine.connect_matlab(name=eng_name)
eng = matlab.engine.connect_matlab()

# print(f'Successfully connected to engine: {eng_name}.')

eng.addpath(os.getcwd())
eng.addpath(eng.genpath('/home/ubuntu/toolkit/code/nnv/'))
eng.addpath(eng.genpath('/root/Documents/MATLAB/SupportPackages/R2024a')) # This is where the support packages get installed from mpm
# eng.addpath(eng.genpath('/root/Documents/MATLAB/SupportPackages/R2024a')) # This is where the support packages get installed from mpm

status = 2 #initialize with an 'Unknown' status
#toc = time.perf_counter()
Expand Down

0 comments on commit 20a5687

Please sign in to comment.