Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added possibility to output opti problems to functions #16

Merged
merged 55 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
2ff833d
Added conversion of an optimization object to a dictionary
S-Dafarra Mar 21, 2024
6bfa5e7
Allowed to get metadata as dictionary as well
S-Dafarra Mar 21, 2024
0369a38
Added possibility to set OptimizationObject from dict
S-Dafarra Mar 21, 2024
3a79400
to_dict returns both the dictionary and the metadata
S-Dafarra Mar 21, 2024
69376e5
Added possibility to set name prefix in the conversions to dict
S-Dafarra Mar 21, 2024
d86175f
Added preliminary implementation (commented) to use the conversions t…
S-Dafarra Mar 21, 2024
fab2e6f
Handling the case the value is a list in the conversion from/to dict
S-Dafarra Mar 26, 2024
4b4134d
Using deepcopy when setting the descriptor of a ContactPointState
S-Dafarra Mar 26, 2024
4b81994
Removed unnecessary print
S-Dafarra Mar 26, 2024
02893c9
Moved to using dict conversion when generating optimization objects i…
S-Dafarra Mar 26, 2024
e8fcc66
Using conversion from dict when getting the opti solution
S-Dafarra Mar 26, 2024
caa568e
Separated methods to return only one or two dicts from OptimizationOb…
S-Dafarra Mar 26, 2024
9119230
Moved conversion to np.array in conversion to dict
S-Dafarra Mar 26, 2024
00e46a2
Converting to np array also when the input is an int.
S-Dafarra Mar 26, 2024
9991cbe
Simplified setting of guess using to_dict
S-Dafarra Mar 26, 2024
d807aac
Added to_function in opti solver
S-Dafarra Apr 11, 2024
c6a88d2
Fixed setting of cost function when using to_function
S-Dafarra Apr 11, 2024
97d921c
Added printing of logging messages in pyproject
S-Dafarra Apr 11, 2024
298ee7f
Added to_function methods in planners
S-Dafarra Apr 12, 2024
9a9f556
First draft of main file for sensitivity analysis
S-Dafarra Apr 12, 2024
c821809
Added workaround to avoid output not used variables when using to_fun…
S-Dafarra Apr 12, 2024
90ddd88
Added possibility to get the variables structure in the planners
S-Dafarra Apr 12, 2024
9e25768
Improved logic to check if a variable is used when using to_function()
S-Dafarra Apr 12, 2024
665eb61
First attempt to use_to_function() in periodic step sensitivity
S-Dafarra Apr 12, 2024
ae1e493
Using deep copies when setting and retrieving the guess in opti_solver
S-Dafarra Apr 15, 2024
160f80c
Removed from the input dictionary to the planner functions the terms …
S-Dafarra Apr 15, 2024
1240c49
Added possibility to retrieve the optimization structure from the solver
S-Dafarra Apr 15, 2024
f409d76
Added mass regularization when converting the kinodynamic planner to …
S-Dafarra Apr 15, 2024
4487036
Fixed problem in fps computation when the timestep is defined as list
S-Dafarra Apr 15, 2024
4d15127
Fixed visualization of parametric models in periodic gait sensitivity
S-Dafarra Apr 15, 2024
9bbca1e
Allow setting input prefix name when converting to function
S-Dafarra Apr 17, 2024
20cda11
Using output instead of initial guess to update the multipliers and d…
S-Dafarra Apr 17, 2024
585152a
Moved generation of guess to a function
S-Dafarra Apr 17, 2024
c0719f7
Avoid to cast interpolators inputs to numpy array
S-Dafarra Apr 17, 2024
a6473de
More modifications to use MX in the interpolators
S-Dafarra Apr 18, 2024
094fba5
Moved the guess generation to a function
S-Dafarra Apr 18, 2024
8637f4f
Fixed a regression in the computation of fps in the visualizer
S-Dafarra Apr 18, 2024
356acd2
Using a single function to generate the periodic walking given the in…
S-Dafarra Apr 18, 2024
54540e6
Fixed another issue with the visualizer when the timestep is a np arr…
S-Dafarra Apr 19, 2024
6eb0ae1
Draft of periodic step sensitivity with jacobian (not working)
S-Dafarra Apr 19, 2024
71caa29
Used another method to obtain the jacobian
S-Dafarra Apr 19, 2024
0ce2f3d
Allow changing opti options in planners
S-Dafarra Apr 23, 2024
a2e2d56
Changed the casting in the opti solution getter
S-Dafarra Apr 23, 2024
6818e9b
Attempt to use sqpmethod in series to ipopt output
S-Dafarra Apr 23, 2024
2dfd036
Added test to run sqp with the output of PoseFinder
S-Dafarra May 2, 2024
5c21a0a
Compute the jacobian of the CoM height wrt the link densities and len…
S-Dafarra May 3, 2024
991db20
Adding git in the conda dependencies in actions
S-Dafarra May 6, 2024
1411225
Added possibility to change link color.
S-Dafarra May 11, 2024
a137615
Added visualization of sensitivity by changing link color
S-Dafarra May 11, 2024
03fcb77
Added warning message and possibility to change model color in visual…
S-Dafarra May 17, 2024
8590aa9
Added png to pose finder git ignore
S-Dafarra May 17, 2024
cda37b4
Avoid to print save warnings fo every frame when creating a video
S-Dafarra May 17, 2024
c8e214c
Added possibility to filter values when outputting a dictionary from …
S-Dafarra May 17, 2024
944b987
Using function approach in periodic_step_parametric and removed perio…
S-Dafarra May 17, 2024
fee7b98
Added possibility to run conversions when converting from dict
S-Dafarra May 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Dependencies
shell: bash -l {0}
run: |
mamba install python=${{ matrix.python }} casadi pytest liecasadi adam-robotics idyntree meshcat-python ffmpeg-python matplotlib resolve-robotics-uri-py
mamba install python=${{ matrix.python }} casadi pytest liecasadi adam-robotics idyntree meshcat-python ffmpeg-python matplotlib resolve-robotics-uri-py git
mamba list

- name: Install
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ addopts = "-ra -q"
testpaths = [
"test",
]
log_cli = true
log_cli_level = "DEBUG"
log_cli_format = "%(message)s"
5 changes: 5 additions & 0 deletions src/hippopt/base/multiple_shooting_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,11 @@ def get_optimization_objects(
) -> TOptimizationObject | list[TOptimizationObject]:
return self._optimization_solver.get_optimization_objects()

def get_optimization_structure(
self,
) -> TOptimizationObject | list[TOptimizationObject]:
return self._optimization_solver.get_optimization_structure()

def register_problem(self, problem: Problem) -> None:
self._optimization_solver.register_problem(problem)

Expand Down
Loading
Loading