lang-javascript"><code>var watson = require('watson-developer-cloud');

var tradeoff_analytics = watson.tradeoff_analytics({
  username: '&lt;username>',
  password: '&lt;password>',
  version: 'v1'
});

// From file
var params = require('./resources/problem.json');

tradeoff_analytics.dilemmas(params, function(err, res) {
  if (err)
    console.log(err);
  else
    console.log(JSON.stringify(res, null, 2));
});</code></pre><h3>Visual Insights</h3><p>Use the <a href="http://www.ibm.com/smarterplanet/us/en/i