OpTaS  1.0.7
An optimization-based task specification library for trajectory optimization and model predictive control.
Public Member Functions | Private Member Functions | Private Attributes | List of all members
optas.solver.CVXOPTSolver Class Reference

CVXOPT solver interface. More...

Inheritance diagram for optas.solver.CVXOPTSolver:
Inheritance graph
[legend]
Collaboration diagram for optas.solver.CVXOPTSolver:
Collaboration graph
[legend]

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...
 

Detailed Description

CVXOPT solver interface.

Member Function Documentation

◆ _reset_parameters()

def optas.solver.CVXOPTSolver._reset_parameters (   self)
private

Internal method to reset parameters.

◆ _solve()

CasADiArrayType optas.solver.CVXOPTSolver._solve (   self)
private

Solve the optimization problem using CVXOPT.

   @return The solution of the optimization problem.

Reimplemented from optas.solver.Solver.

◆ did_solve()

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.

◆ number_of_iterations()

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.

◆ reset_parameters()

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.

◆ setup()

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).

◆ stats()

def optas.solver.CVXOPTSolver.stats (   self)

Statistics relating to the previous call to solve.

   @return Dictionary containing the statistics.

Reimplemented from optas.solver.Solver.

Member Data Documentation

◆ _solution

optas.solver.CVXOPTSolver._solution
private

◆ _solver_input

optas.solver.CVXOPTSolver._solver_input
private

Input to the solver.


The documentation for this class was generated from the following file: