Naev

Module equipopt.optimize

Equips pilots based on mixed integer linear programming.

Functions

optimize (p[, cores=nil], outfit_list[, params=nil]) Equips a pilot with cores and outfits chosen from a list through optimization.


Functions

optimize (p[, cores=nil], outfit_list[, params=nil])
Equips a pilot with cores and outfits chosen from a list through optimization.

Parameters:

  • p Pilot Pilot to equip.
  • cores table or nil Table of core outfits (by name) to equip. They will replace existing outfits, or set to nil to use defaults. (default nil)
  • outfit_list table List of outfits to try to equip (by name). There can be duplicates in the list, and only outfits that can be equipped are considered.
  • params table or nil Parameter list to use or nil for defaults. (default nil)

Returns:

    boolean Whether or not the pilot was properly equipped
generated by LDoc 1.4.6 Last updated 2021-10-20 12:25:39