Allow editing of set elements through end user UI

146 views
Skip to first unread message

Jeff_Cox

unread,
Sep 30, 2010, 12:18:19 PM9/30/10
to AIMMS - The Modeling System
Hi.

I am pursuing different possibilities for managaging data for an end-
user model. I like the idea of doing this through the Aimms GUI
(rather than interfacing with Excel), because I think for this model
it simplifies maintenance and model delivery. Working with parameters
and variables and such is straightforward. What I can't quite figure
out at the moment is how to allow end users to modify sets. I
understand that the set editor that you get when click on the "data"
option from the Identifier tree is a GUI element. This element would
be fine for my purpose. What I don't know is how to add such an
element to my own page. What I want to be able to do is allow users
to add (and maybe delete) elements from sets.

Thanks,
Jeff

Vijay Hanagandi

unread,
Sep 30, 2010, 12:34:44 PM9/30/10
to aimms, jeff.cox
Jeff:

Your problem of Adding/Deleting elements to/from sets via an AIMMS GUI
can be accomplished using existing AIMMS functions. Just look at this
AIMMS functional ref manual (sets section) and you should get pointers
there.

We were faced with similar problem in our Real Time Optimization
product - we rolled our own interface to the AIMMS engine - we
essentially allow the end-user to modify model identifiers (not only
sets but ALL AIMMS identifiers) via our GUI, capture that in a .AIM
file and pass it to AIMMS. This is cumbersome but had to be done to
give this flexibility to the end-user. I hear that the latest version
of AIMMS has this more streamlined. However, I am not familiar with
these latest features.

-vijay
_____________
Vijay Hanagandi
Optimal Solutions, Inc.,
17 Kershaw Ct.,
Bridgewater, NJ 08807

Phones:
(908) 393 1316 (Land)
(812) 205 8551 (Cell)

> --
> You received this message because you are subscribed to the Google Groups "AIMMS - The Modeling System" group.
> To post to this group, send email to ai...@googlegroups.com.
> To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/aimms?hl=en.
>
>

Guido Diepen

unread,
Oct 1, 2010, 3:44:01 AM10/1/10
to AIMMS - The Modeling System
Hi Jeff,

You are right that the set editor you see when you open the data page
of a set is just a regular GUI element.

There are two ways that you can put this page object on one of your
own pages:
1) Copy the page object from a data page to your page
2) Add the object from scratch to your page

For option 1, you can just open the data page of the set you want to
add to your page. Since data pages are just regular pages, you can
press F4 to go into edit mode. Then you can select the set editor
object and copy it to the clipboard. After that, you can open your own
page in edit mode and paste the object from the clipboard.

The second option is to manually add the object to your page. The set
editor is actually just an instance of the "Selection Object". You can
add the set editor to your page with the following steps:
* Open page in edit mode
* Add new Selection Object
* Select Listbox under Single Item Selection
* Select Set as the type of data
* In the bottom, enter the set you want to use
* Press OK to close the dialog
* Open properties of the newly created Selection Object
* Set "Edit field" property to "At Top" or "At Bottom"
* Enable checkbox "Add / Remove buttons"

Now you should have a page object that allows end users to add/remove
elements from the set in the same way it works on the data pages.

Guido Diepen
AIMMS Specialist

Jeff_Cox

unread,
Oct 1, 2010, 2:15:50 PM10/1/10
to AIMMS - The Modeling System
Hi Guido,

Thanks for this. I was so close - I had done everything in option 2
but I didn't know about setting the "Edit Field". Now I'm off and
running.

Thanks,
Jeff
> > Jeff- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages