# Difference: ForumOpsRes0006 (1 vs. 3)

#### Revision 32008-04-08 - MichaelOSullivan

Line: 1 to 1

 META TOPICPARENT name="ForumOpsRes"

# Forestry Problem

Line: 12 to 12
You use the set logical operator `in`, e.g., `(m, n) in CONVERSIONS`. This should be explained further in SetsInAMPL or LogicInAMPL.

-- MichaelOSullivan - 04 Apr 2008

Added:
>
>

Hint (Experts Only Task) Starting with the transportation.run file from The Transportation Problem in AMPL you need to:

1. Add the supplied model and data files (forestry_expert.mod and forestry.dat) to create the necessary AMPL data structures and fill them with the Forestry Problem data;
2. In place of a data file for transportation.mod, e.g., brewery.dat, add loops, script commands, etc to assign values to the transportation.mod data structures (see the examples from the Extra for Experts section);
3. After the automatic balancing, if there is more supply than demand, restrict the arcs taking goods to the dummy demand node to only allow those goods that are allowed to be disposed of, e.g., Waste Paper. If there is more demand than supply then see if there is a source for "buying in" more goods.

-- MichaelOSullivan - 08 Apr 2008

`<--/commentPlugin-->`

 META FORM name="DiscussionTopicForm"

#### Revision 22008-04-04 - MichaelOSullivan

Line: 1 to 1

 META TOPICPARENT name="ForumOpsRes"

# Forestry Problem

Line: 7 to 7
How do we check whether an element is within the CONVERSIONS set? For example, we have a material 'n' and a material 'm', how do we check whether this combination is within the CONVERSIONS set?

-- TWikiGuest - 03 Apr 2008

Added:
>
>

You use the set logical operator `in`, e.g., `(m, n) in CONVERSIONS`. This should be explained further in SetsInAMPL or LogicInAMPL.

-- MichaelOSullivan - 04 Apr 2008

`<--/commentPlugin-->`

 META FORM name="DiscussionTopicForm"

#### Revision 12008-04-03 - TWikiGuest

Line: 1 to 1
Added:
>
>
 META TOPICPARENT name="ForumOpsRes"

# Forestry Problem

How do we check whether an element is within the CONVERSIONS set? For example, we have a material 'n' and a material 'm', how do we check whether this combination is within the CONVERSIONS set?

-- TWikiGuest - 03 Apr 2008

`<--/commentPlugin-->`

 META FORM FORM FIELD Title name="DiscussionTopicForm" Title Forestry Problem Forum ForumOpsRes

Copyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback