I have given names to my variables in Fusion. What would be the easiest way to get a numpy vector with the solution values for the variable called "x" from a Task object? The best I can come up with is
_, start = task.getvarnameindex("x[0,0]")
_, end = task.getvarnameindex("x[99,99]")
x_sol = np.empty(end - start + 1)
task.getxxslice(mosek.soltype.itr, start, end + 1, opt_res)
Best
Alex