omegalpes.actor package

Subpackages

Submodules

omegalpes.actor.actor module

This modules define the basic Actor object

Few methods are available:

  • add_external_constraint

  • add_external_dynamic_constraint

  • add_objective

class omegalpes.actor.actor.Actor(name, no_warn=True, verbose=True)[source]

Bases: OptObject

Description

Actor class is the basic class to model an actor. The basic actor is defined by its name and description. An actor is then defined by its constraints and objectives.

Attributes

  • description : description as an Actor OptObject

add_actor_constraint(cst_name, exp)[source]

Enable to add an external constraint linked with an actor

Parameters:
  • cst_name – name of the constraint

  • exp – expression of the constraint

add_actor_dynamic_constraint(cst_name, exp_t, t_range='for t in time.I')[source]

Enable to add an external dynamic constraint linked with an actor. A dynamic constraint changes over time

Parameters:
  • cst_name – name of the constraint

  • exp – expression of the constraint depending on the time

  • t_range – expression of time for the constraint

add_objective(obj_name, exp)[source]

Enable to add an objective linked with an actor

Parameters:
  • obj_name – name of the objective

  • exp – expression of the objective

remove_actor_constraints(ext_cst_name_list=None)[source]

Enable to remove an external constraint linked with an actor

Parameters:

ext_cst_name_list – list of external constraint that would be removed

Module contents