Skip to content

Commit

Permalink
Merge pull request #16 from ami-iit/to_function
Browse files Browse the repository at this point in the history
Added possibility to output opti problems to functions
  • Loading branch information
S-Dafarra authored Jul 5, 2024
2 parents 845ab09 + fee7b98 commit 3cd1f2f
Show file tree
Hide file tree
Showing 17 changed files with 1,237 additions and 675 deletions.
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

0 comments on commit 3cd1f2f

Please sign in to comment.