Manufacturing problem refactoring

7 views
Skip to first unread message

Bence Bagi

unread,
Jan 14, 2017, 12:02:44 PM1/14/17
to AMPL Modeling Language

Hello,

 

I have a small manufacturing optimization problem and a model which works fine, giving me a feasible solution (I have several products each requiring the use of various resources, the goal is to maximize profit). What I'd like is to make this a little more elegant, and create a separate model and data file. Could you please give me a hand how to approach this?

 

I've included the model file (I've intentionally renamed to variable and resource names and removed comments to avoid confusion). I'm just getting to know AMPL, that's why the initially utterly simple model so please excuse me for that.


Thank you,


Ben

mproblem_int.mod

Robert Fourer

unread,
Jan 15, 2017, 6:13:38 PM1/15/17
to am...@googlegroups.com
Chapter 1 of the AMPL book describes maximum-profit production models and shows how to go from an explicit formulation like yours to a more general formulation using index sets, symbolic parameters, and data files. Since this is the first chapter of the book's tutorial, it starts from a very basic level and includes a lot of explanation. At the end of the chapter is an example showing how to handle multiple products and resources. (Note that the resources are called stages in the example.)

Bob Fourer
am...@googlegroups.com

=======

Bence Bagi

unread,
Jan 16, 2017, 1:52:00 AM1/16/17
to AMPL Modeling Language

Thank you very much, Dr. Bob!

I wasn't quite sure how to use that example as a base for my model, because I don't have hourly constraints while manufacturing. The amounts in the constraints are the limits, the usual quantities that get used in a month.

I'll take another look, then!

Ben

pravin jagannath nikumbh

unread,
Jan 16, 2017, 3:01:02 AM1/16/17
to am...@googlegroups.com

Hello

May i know if you are using a linear program problem model.
Regards

Dr. Pravin Nikumbh



From: "Bence Bagi"iben...@gmail.com
Sent:Sat, 14 Jan 2017 22:32:49 +0530
To: AMPL Modeling Language am...@googlegroups.com
Subject: [AMPL 13360] Manufacturing problem refactoring
--
> You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
> To post to this group, send email to am...@googlegroups.com.
> Visit this group at https://groups.google.com/group/ampl.
> For more options, visit https://groups.google.com/d/optout.
>

Bence Bagi

unread,
Jan 16, 2017, 3:08:52 AM1/16/17
to AMPL Modeling Language

Hello,

Yes, I am, my problem is a typical profit maximization model.

pravin jagannath nikumbh

unread,
Jan 16, 2017, 3:52:54 AM1/16/17
to am...@googlegroups.com

I hv used evolutionary algorithm for optimization in product mix problem.

Pravin


Dr. Pravin Nikumbh


From: "Bence Bagi"iben...@gmail.com
Sent:Mon, 16 Jan 2017 13:38:55 +0530
To: AMPL Modeling Language am...@googlegroups.com

Bence Bagi

unread,
Jan 16, 2017, 4:12:37 AM1/16/17
to AMPL Modeling Language

I think my problem is simpler than that, but thank you, I really appreciate your help. :-)
Reply all
Reply to author
Forward
0 new messages