Skip to content
Snippets Groups Projects
Commit cab29f8f authored by Pierre-Alexandre Leziart's avatar Pierre-Alexandre Leziart
Browse files

Without warm start, set all nodes to initial state

parent 56a10ae8
No related branches found
No related tags found
1 merge request!32Draft: Reverse-merge casadi-walking into new WBC devel branch
......@@ -280,6 +280,8 @@ class OCP:
print("Got warm start")
except:
print("Can't load warm start")
for x in self.xs:
self.opti.set_initial(x, x0)
def get_results(self):
xs_sol = [self.opti.value(x) for x in self.xs]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment