UNPKG

battleship-search

Version:

maximize an n-dimensional landscape using the battleship search algorithm

13 lines (11 loc) 253 B
var anneal = require('./anneal/index.js'); var results = []; module.exports = function (domain, cost) { anneal({ domain: domain, temperature: 100000, costf: function (pt) { return -cost(pt); } }); };