forked from watson-developer-cloud/python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtradeoff-expect3.txt
1 lines (1 loc) · 2.63 KB
/
tradeoff-expect3.txt
1
{"resolution": {"preferable_solutions": {"solution_refs": ["1", "2"], "score": 0.94}, "solutions": [{"solution_ref": "1", "status": "FRONT"}, {"solution_ref": "2", "status": "FRONT"}, {"solution_ref": "3", "status": "FRONT"}, {"excluded_by": [{"solution_ref": "1", "objectives": [{"key": "price", "difference": 100.0}, {"key": "weight", "difference": 5.0}]}], "solution_ref": "4", "status": "EXCLUDED"}, {"excluded_by": [{"solution_ref": "2", "objectives": [{"key": "price", "difference": 50.0}, {"key": "weight", "difference": 6.0}]}], "solution_ref": "5", "status": "EXCLUDED"}, {"solution_ref": "6", "status": "INCOMPLETE", "status_cause": {"error_code": "RANGE_MISMATCH", "tokens": ["price", "499", "[0.0,400.0]"], "message": "A column of a option is out of range. Option \"6\" has a value in column \"price\" which is:\"499\" while the column range\" is: [0.0,400.0]"}}, {"solution_ref": "7", "status": "DOES_NOT_MEET_PREFERENCE", "status_cause": {"error_code": "DOES_NOT_MEET_PREFERENCE", "tokens": ["brand"], "message": "Option \"7\" has a value that does not meet preference for column \"brand\""}}]}, "problem": {"options": [{"values": {"rDate": "2013-04-29T00:00:00Z", "price": 249, "weight": 130, "brand": "Samsung"}, "key": "1", "name": "Samsung Galaxy S4"}, {"values": {"rDate": "2012-09-21T00:00:00Z", "price": 349, "weight": 112, "brand": "Apple"}, "key": "2", "name": "Apple iPhone 5"}, {"values": {"rDate": "2013-03-01T00:00:00Z", "price": 299, "weight": 112, "brand": "HTC"}, "key": "3", "name": "HTC One"}, {"values": {"rDate": "2014-04-29T00:00:00Z", "price": 349, "weight": 135, "brand": "Samsung"}, "key": "4", "name": "Samsung Galaxy S5"}, {"values": {"rDate": "2013-09-21T00:00:00Z", "price": 399, "weight": 118, "brand": "Apple"}, "key": "5", "name": "Apple iPhone 6"}, {"values": {"rDate": "2014-09-21T00:00:00Z", "price": 499, "weight": 118, "brand": "Apple"}, "key": "6", "name": "Apple iPhone 7"}, {"values": {"rDate": "2014-08-21T00:00:00Z", "price": 199, "weight": 120, "brand": "Sony"}, "key": "7", "name": "Sony Xperia"}], "subject": "phones", "columns": [{"goal": "min", "type": "numeric", "format": "number:2", "key": "price", "full_name": "Price", "range": {"low": 0.0, "high": 400.0}, "is_objective": true}, {"goal": "min", "type": "numeric", "format": "number:0", "is_objective": true, "full_name": "Weight", "key": "weight"}, {"goal": "min", "type": "categorical", "key": "brand", "preference": ["Samsung", "Apple", "HTC"], "full_name": "Brand", "range": ["Apple", "HTC", "Samsung", "Sony"], "is_objective": true}, {"goal": "max", "type": "datetime", "format": "date: 'MMM dd, yyyy'", "is_objective": false, "full_name": "Release Date", "key": "rDate"}]}}