summaryrefslogtreecommitdiff
path: root/prolog/problems/clp_r/turkey_3/common.py
blob: b7bc7f46c5340dc788266cb6b96ac61406219ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# coding=utf-8

id = 161
number = 64
visible = True
facts = None

solution = '''\
turkey(Brand1, Brand2, Cost) :-
    {Cost = Brand1*0.20 + Brand2*0.30,
      A = Brand1*5 + Brand2*10,
      B = Brand1*4 + Brand2*3,
      C = Brand1*0.5,
      A >= 90, B >= 48, C >= 1.5},
    minimize(Cost).
'''