/////////////////////////////////////////////////////////////////////////////////
//                                                                             //
//                                                                             //
// RDDL MDP version of Wildlife Preserve instance #03 for IPC 2018 by Fei Fang //
// (feifang [at] cmu.edu), Thanh Hong Nguyen (thanhhng [at] umich.edu) and     //
// Thomas Keller (tho.keller [at] unibas.ch), based on the papers "When        //
// Security Games Go Green: Designing Defender Strategies to Prevent Poaching  //
// and Illegal Fishing" by Fei Fang, Peter Stone and Milind Tambe (IJCAI 2015) //
// and "Analyzing the Effectiveness of Adversary Modeling in Security Games"   //
// by Thanh H. Nguyen, Rong Yang, Amos Azaria, Sarit Kraus and Milind Tambe    //
// (AAAI 2013).                                                                //
//                                                                             //
//                                                                             //
/////////////////////////////////////////////////////////////////////////////////

instance wildlife-preserve_inst_mdp__03 {
    domain = wildlife-preserve_03_mdp;

    objects {
        ranger  : { r1 };
        poacher : { p1 };
    };

    non-fluents {
        DEFENDER-REWARD(@a1) = 11.36;
        DEFENDER-PENALTY(@a1) = -9.68;
        DEFENDER-REWARD(@a2) = 5.60;
        DEFENDER-PENALTY(@a2) = -8.30;
        DEFENDER-REWARD(@a3) = 0.25;
        DEFENDER-PENALTY(@a3) = -8.80;
        DEFENDER-REWARD(@a4) = 6.16;
        DEFENDER-PENALTY(@a4) = -10.35;
        DEFENDER-REWARD(@a5) = 10.68;
        DEFENDER-PENALTY(@a5) = -6.83;

        // correlation between attacker reward and defender penalty as well as
        // attacker penalty and defender reward is 1.00 for all poachers and all areas

        // weights for poacher p1 are: w1 = -14.57, w2 = 0.50, w3 = 0.28
        // reward for poacher p1 in area @a1 is: 9.68
        // penalty for poacher p1 in area @a1 is: -11.36
        // reward for poacher p1 in area @a2 is: 8.30
        // penalty for poacher p1 in area @a2 is: -5.60
        // reward for poacher p1 in area @a3 is: 8.80
        // penalty for poacher p1 in area @a3 is: -0.25
        // reward for poacher p1 in area @a4 is: 10.35
        // penalty for poacher p1 in area @a4 is: -6.16
        // reward for poacher p1 in area @a5 is: 6.83
        // penalty for poacher p1 in area @a5 is: -10.68

        ATTACK-WEIGHT_0(p1, @a1) = 4.85928;
        ATTACK-WEIGHT_1(p1, @a1) = 0.00000;
        ATTACK-WEIGHT_0(p1, @a2) = 12.50186;
        ATTACK-WEIGHT_1(p1, @a2) = 0.00001;
        ATTACK-WEIGHT_0(p1, @a3) = 72.64893;
        ATTACK-WEIGHT_1(p1, @a3) = 0.00003;
        ATTACK-WEIGHT_0(p1, @a4) = 29.44157;
        ATTACK-WEIGHT_1(p1, @a4) = 0.00001;
        ATTACK-WEIGHT_0(p1, @a5) = 1.43656;
        ATTACK-WEIGHT_1(p1, @a5) = 0.00000;

        POACHER-REMEMBERS(p1, @1);

    };

    init-state {
        ~was-defended(@a1,@1);
    };

    horizon = 60;

    discount = 1.0;
}