PrivilegedAssignment:

Path: FormationFlying/Guidance

% Assign target states to satellites using the privileged assignment method.

--------------------------------------------------------------------------
   Form:
   [optOrder, optPhi, optCost] = PrivilegedAssignment( N, P, Pu, Q, f, phi, u );
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   N                (1)      Number of objects
   P                (1)      Number of variable states
   Pu               (1)      Number of unique variable states
   Q                (1)      Number of points over which variable states are 
                                discretized
   f            (M+Pu*Q,N)   Set of weighted cost vectors, where M is number of 
                                fixed states
   phi             (1,P)     Array of initial phase offsets for variable states
   u               (1,P)     Array of indeces that map phase offsets to unique
                               variable states
   method           (1)      Flag indicating which method to use.
                               (1) prioritize based on the highest minimum cost 
                               (2) prioritize based on the highest average cost

   -------
   Outputs
   -------
   optOrder        (1,N)     Optimal order of the target states
   optPhi          (1,N)     Optimal phases for variable states
   optCost          (1)      Total cost to achieve the optimal configuration

--------------------------------------------------------------------------

Children:

FormationFlying: Guidance/FindMinSet
FormationFlying: Guidance/OptimalAssignment

Back to the FormationFlying Module page