Commit 179f8d9c authored by Tjerk Vreeken's avatar Tjerk Vreeken

Fix results extraction

parent 959d41f6
......@@ -1255,9 +1255,7 @@ class CollocatedIntegratedOptimizationProblem(OptimizationProblem, metaclass = A
# elimination.
f = Function('f', [self.solver_input], [
vertcat(*self.integrators_mx)])
f.setInput(X[0:])
f.evaluate()
integrators_output = f.getOutput()
integrators_output = f(X)
j = 0
for variable in self.integrated_states:
n = self.integrators[variable].size1()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment