<div id="find.json" class="method">
  <div class="method_name"><code><%= method_name %>(data, operation, altruistic_chain_length)</code></div>
  <div class="method_descr">
    Finds an allocation of kidney donors to potential recipients. The data returned is in <%= out_format %> format
    and is described in more detail in the <%= link_to 'Output Formats', {:action => 'output_format'} %> section.
  </div>
  <div class="method_details">
    <div class="param"><code>data</code></div>
    <div class="param_descr">Holds a list of matched source patients, and their donors, to
      compatible target patients. The data must also include the score between donors and target patients
      and the donor's age. The various formats that the data can take are described in detail on the
      <%= link_to 'Input Formats', {:action => 'input_format'} %> page.
    </div>
    <div class="param"><code>operation</code></div>
    <div class="param_descr">
      This controls what type of allocation is returned. There are four possible parameters:
      <dl>
        <dt><strong>optimal</strong></dt>
        <dd>returns a solution that is defined as optimal in the
          <%= link_to 'optimality criteria', {:action => 'optimality'} %> section.
        </dd>

        <dt><strong>maxcard</strong></dt>
        <dd>returns a solution that has maximum cardinality and subject to this maximum weight,
          i.e. is not constraint by maximising the effective
          number of pairwise exchanges. More details of this can be found in the maxcard
          sub-section of the <%= link_to 'optimality criteria', {:action => 'optimality'} %> section.
        </dd>

        <dt><strong>pairs</strong></dt>
        <dd>returns an optimal solution involving only pairwise exchanges.</dd>
      </dl>
    </div>
    <div class="param"><code>altruistic_chain_length</code></div>
    <div class="param_descr">
      Indicates the length of a chain in an altruistic cycle. Valid values are 1 or 2. The default is 1.
    </div>

  </div>
</div>
