# Ampl MILP Model

**URL:** <https://discuss.ampl.com/t/ampl-milp-model/992>\
**Category:** Support\
**Created:** [March 9, 2024, 11:03pm UTC](https://discuss.ampl.com/t/ampl-milp-model/992 "2024-03-09T23:03:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shajida\_rahman](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/shajida_rahman/32/685_2.png) [@shajida\_rahman](https://discuss.ampl.com/u/shajida_rahman)\
**Post date:** [March 9, 2024, 11:03pm UTC](https://discuss.ampl.com/t/ampl-milp-model/992/1 "2024-03-09T23:03:53Z")

</div>

Hi,

I am creating a MILP Model to minimise energy consumption using this paper: [https://eprints.whiterose.ac.uk/164934/8/09181536.pdf](https://eprints.whiterose.ac.uk/164934/8/09181536.pdf). I have began making my .mod and .dat files using the constraints and information from the paper attached but am struggling to resolve the errors I have got. I do not have much experience in using AMPL so if anyone is able to provide any assistance at all I would greatly appreciate it. Thank you!  
[Milp.mod](https://discuss.ampl.com/uploads/short-url/4ghYchREBZpSzC64kQ5OuJMxwKK.mod) (11.3 KB)

 ![errc](https://us1.discourse-cdn.com/flex019/uploads/ampl/original/1X/31ceeba9bcbba71f9746c88eef19e3bdea6b134b.jpeg)
