AMPL model

37 views
Skip to first unread message

jiao janet

unread,
Feb 18, 2023, 12:51:19 PM2/18/23
to AMPL Modeling Language
Hi,

I am doing a maximization problem, but my code is saying 

error processing set M:

   no value for m

Don't know what to do with that.

These are my amps code



Screenshot 2023-02-18 at 1.17.48 AM.pngScreenshot 2023-02-18 at 1.17.43 AM.pngScreenshot 2023-02-18 at 1.18.01 AM.png

Screenshot 2023-02-18 at 1.17.53 AM.png

jiao janet

unread,
Feb 18, 2023, 2:39:28 PM2/18/23
to am...@googlegroups.com
Screenshot 2023-02-18 at 5.55.42 PM.png

jiao janet <janet.j...@gmail.com> 于2023年2月18日周六 17:51写道:
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/ampl/bbaff87a-1999-494b-8d78-5d6f25830647n%40googlegroups.com.

AMPL Google Group

unread,
Feb 19, 2023, 10:20:44 AM2/19/23
to AMPL Modeling Language
You are forgetting to read the data file. After "model S6Q11.mod" you need to give the command "data S6Q11.dat".


--
Robert Fourer
AMPL Forum
{#HS:2159876039-114075#}
Reply all
Reply to author
Forward
0 new messages