import json
import os
from os.path import join, dirname
from watson_developer_cloud import TradeoffAnalyticsV1


tradeoff_analytics = TradeoffAnalyticsV1(
    username='YOUR SERVICE USERNAME',
    password='<PASSWORD>')

with open(join(dirname(__file__), '../resources/problem.json')) as data_file:
    problem_data = json.load(data_file)
print(json.dumps(tradeoff_analytics.dilemmas(problem_data), indent=2))

import json
import os
from os.path import join, dirname
from watson_developer_cloud import TradeoffAnalyticsV1


tradeoff_analytics = TradeoffAnalyticsV1(
    username='YOUR SERVICE USERNAME',
    password='<PASSWORD>')

with open(join(dirname(__file__), '../resources/problem.json')) as data_file:
    problem_data = json.load(data_file)
print(json.dumps(tradeoff_analytics.dilemmas(problem_data), indent=2))
