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

id = 161
group = 'clp_r'
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).
'''