OptimalAssignment:

Path: FormationFlying/Guidance

% Compute the optimal configuration for a group of objects.

--------------------------------------------------------------------------
   Form:
   [optOrder, optPhi, optCost] = OptimalAssignment( 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 matching phase offsets with 
                               unique variable states

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

Back to the FormationFlying Module page