![]() |
OpTaS
1.0.7
An optimization-based task specification library for trajectory optimization and model predictive control.
|
CVXOPT solver interface. More...


Public Member Functions | |
| def | setup (self, Dict solver_settings={}) |
| Setup the cvxopt solver interface. More... | |
| def | reset_parameters (self, Dict[str, ArrayType] p) |
| Reset the parameters. More... | |
| def | stats (self) |
| Statistics relating to the previous call to solve. More... | |
| def | did_solve (self) |
| Returns True when the problem was solved. More... | |
| def | number_of_iterations (self) |
| Number of iterations it took the solver to converge. More... | |
Public Member Functions inherited from optas.solver.Solver | |
| def | __init__ (self, Optimization optimization, bool error_on_fail=False) |
| Constructor for the base Solver class. More... | |
| type | opt_type (self) |
| Optimization type. More... | |
| def | setup (self, *args, **kwargs) |
| Setup solver, note this method must return self. More... | |
| None | reset_initial_seed (self, Dict[str, ArrayType] x0) |
| Reset initial seed for the optimization problem. More... | |
| Dict | solve (self) |
| Solve the optimization problem. More... | |
| Tuple | violated_constraints (self, Dict[str, ArrayType] x, Dict[str, ArrayType] p) |
| Indicate the violated constraints. More... | |
| CasADiArrayType | evaluate_cost (self, Dict[str, ArrayType] x, Dict[str, ArrayType] p) |
| Evaluates the cost function for given decision variables x and parameters p. More... | |
| List | evaluate_cost_terms (self, Dict[str, ArrayType] x, Dict[str, ArrayType] p) |
| Evaluates each cost term for given decision variables and parameters. More... | |
Private Member Functions | |
| def | _reset_parameters (self) |
| Internal method to reset parameters. More... | |
| CasADiArrayType | _solve (self) |
| Solve the optimization problem using CVXOPT. More... | |
Private Attributes | |
| _solver_input | |
| Input to the solver. More... | |
| _solution | |
Additional Inherited Members | |
Static Public Member Functions inherited from optas.solver.Solver | |
| interp1d | interpolate (cs.DM traj, float T, **interp_args) |
| Interpolate a trajectory. More... | |
Public Attributes inherited from optas.solver.Solver | |
| opt | |
| Instance of the optimization problem. More... | |
| x0 | |
| Initial guess for the optimization problem (set using reset_initial_seed). More... | |
| p | |
| Parameter vector. More... | |
CVXOPT solver interface.
|
private |
Internal method to reset parameters.
|
private |
Solve the optimization problem using CVXOPT.
@return The solution of the optimization problem.
Reimplemented from optas.solver.Solver.
| def optas.solver.CVXOPTSolver.did_solve | ( | self | ) |
Returns True when the problem was solved.
@return Boolean indicating if the solver converged.
Reimplemented from optas.solver.Solver.
| def optas.solver.CVXOPTSolver.number_of_iterations | ( | self | ) |
Number of iterations it took the solver to converge.
@return Number of iterations.
Reimplemented from optas.solver.Solver.
| def optas.solver.CVXOPTSolver.reset_parameters | ( | self, | |
| Dict[str, ArrayType] | p | ||
| ) |
Reset the parameters.
@param p The values for the parameters.
Reimplemented from optas.solver.Solver.
| def optas.solver.CVXOPTSolver.setup | ( | self, | |
| Dict | solver_settings = {} |
||
| ) |
Setup the cvxopt solver interface.
@param solver_settings Settings passed to the CVXOPT solver. @return The instance of the solve (i.e. self).
| def optas.solver.CVXOPTSolver.stats | ( | self | ) |
Statistics relating to the previous call to solve.
@return Dictionary containing the statistics.
Reimplemented from optas.solver.Solver.
|
private |
|
private |
Input to the solver.