yaocptool.methods package

Submodules

yaocptool.methods.augmented_lagrangian module

Created on Sat Oct 22 16:53:36 2016

@author: marco

class AugmentedLagrangian(problem, ocp_solver_class, solver_options=None, **kwargs)[source]

Bases: yaocptool.methods.base.solutionmethodsbase.SolutionMethodsBase

For a minimization problem in the form
min f(x,u) = int L(x,u) dt s.t.: dot{x} = f(x,u), g_ineq (x,u) leq 0
Transforms the problem in a sequence of solution of the problem
min f(x,u) = int L(x,u) -mu sum log(-g_ineq(x,u)) dt s.t.: dot{x} = f(x,u),
__init__(problem, ocp_solver_class, solver_options=None, **kwargs)[source]
Augmented Lagrange Method (Aguiar 2016)
Parameters:
  • yaocptool.modelling.OptimalControlProblem – Optimal Control Problem
  • ocp_solver_class (type) – Class of Solution Method (Direct/Indirect Method)
  • solver_options – Options for the Solution Method class given
  • relax_algebraic_index – Index for the algebraic equations that will be relaxed, if not given all the algebraic equations will be relaxed
  • relax_algebraic_var_index – Index for the algebraic variables that will be relaxed, if not given it will be assumed the same as the ‘relax_algebraic_index’
  • relax_state_bounds – This relax the states bounds and put then in the objective, via an algebraic variable
  • kwargs
call_solver(initial_guess=None, p=None, theta=None, x_0=None, last_u=None, initial_guess_dict=None)[source]
create_nu_initial_guess()[source]
create_optimization_problem()[source]
create_optimization_result(raw_solution_dict, p=None, theta=None, x_0=None)[source]
discretizer
static join_nu_to_theta(theta, nu)[source]
model
Return type:yaocptool.modelling.SystemModel
time_interpolation_nu

yaocptool.methods.distributed_solution module

class DistributedSolution(subsystem_classes_list, parameters_list, connection_list, main_to_subsystems_list=None, **kwargs)[source]

Bases: object

__init__(subsystem_classes_list, parameters_list, connection_list, main_to_subsystems_list=None, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

initialize()[source]
kill()[source]
n_subsystems
solve(initial_guess=None, p=None, theta=None, x_0=None, last_u=None, initial_guess_dict=None)[source]
start()[source]

Module contents