How can we model different receipt days in a location depending on the start-destination relationship in an optimizer run in SNP?

We have a business scenario where the receipt days for a location depends on the relationship between the Start-Destination Location. We need to include this constraint in an optimizer run with daily buckets.
Example:
Factory A (Start Location) ships to DC X (destination location) only on Mondays, with a lead time of 2 days. DC X should receive the stock from Factory A on Wednesday
Factory B (Start Location) ships to DC X (destination location) only on Thursdays, with a lead time of 1 day. DC X should receive the stock from Factory B on Saturday
Does anyone has been able to model this scenario?
I tried using transportation calendars(time stream) in the means of transport, having undesired results:
a) Transportation Lane A-X. Calendar 1A, only Monday is available
The system creates stock transfers on Monday on Week 1 and ends on Monday of Week 3.
b) Transportation Lane A-X. Calendar 2A, Monday and Wednesday are available
The system creates stock transfers on Monday and Wednesday on Week 1:
      The stock transfer that starts on Monday-Week 1 ends on Monday-Week 2.
      The stock transfer that starts on Wednesday-Week 1 ends on Wednesday-Week 2.
c) Transportation Lane A-X. Calendar 3A, Monday Tuesday and Wednesday are available
The system creates stock transfers on Monday, Tuesday and Wednesday on Week 1.
     The stock transfer that starts on Monday-Week 1 ends on Wednesday-Week 1. (this is actually what I need)
     The stock transfer that starts on Tuesday-Week 1 ends on Monday-Week 2.
     The stock transfer that starts on Wednesday-Week 1 ends on Tuesday-Week 2.
Regards

you really don't need to post all that code, few people will read it, or try to compile/run it.
just a tree in a scrollpane in a frame is all you need, then add the method/problem to the basic,
and post that so its only 20 to 30 lines long.
here's your basic tree/scrollpane/frame, with an expandAll()
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class Testing
  public void buildGUI()
    JTree tree = new JTree();
    expandAll(tree);
    JFrame f = new JFrame();
    f.getContentPane().add(new JScrollPane(tree));
    f.pack();
    f.setLocationRelativeTo(null);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setVisible(true);
  public void expandAll(JTree tree)
    int row = 0;
    while (row < tree.getRowCount())
      tree.expandRow(row);
      row++;
  public static void main(String[] args)
    SwingUtilities.invokeLater(new Runnable(){
      public void run(){
        new Testing().buildGUI();
}so, is your problem with the expandAll(), or with reading the properties file?

Similar Messages

  • How can i sync different materials into my iPod and iPad on the same computer?

    i don't want iTunes to sync all the apps from my iPod to my iPad, what can i do?

    When the devices are attached to your computer's iTunes just select the apps that you want to have on each device on their apps tab. I manually manage the content on my iPad, iPhone, and iPod Touch so only the content that I select gets installed onto each device.
    You can also set up separate playlists for the two devices for music, or create separate iTunes libraries : http://support.apple.com/kb/HT1495

  • How can I use different iTunes accounts on one iPad?

    How can I use different iTunes accounts on one iPad?

    You can't, well not easily anyway.  The iPad is not meant as a multi account device. 
    You can Sign Out of your iTunes account in Settings->iTunes and App Stores->Apple ID->Sign Out
    However if you sign in with another ID and then download past purchases with it you will lock out the previous ID for 90 days. Which means it will not be able to be used on the iPad for 90 days. 

  • How can I combine different pdf files in one?

    How can I combine different pdf files in one?

    Sara,
    It is not working. I wish to decline in having the pdf pack. How can I give up this purchase? I definitely do not want the Adobe PDF Pack anymore.
    Who do I have to contact or what do I need to do to cancel this purchase?
    Flávia
    Enviado do Email do Windows
    De: Sara.Forsberg
    Enviado: terça-feira, 6 de maio de 2014 14:59
    Para: Eu
    How can I combine different pdf files in one?
    created by Sara.Forsberg in Adobe PDF Pack - View the full discussion 
    Hi Flávia,
    Adobe PDF Pack is an online subscription--it definitely allows you to combine several files into one PDF file. For more information about PDF Pack, see Reliably Create PDFs, Convert PDFs, & Merge PDFs Online | Adobe PDF Pack. If you don't have the full version of Acrobat, this is a great solution for combining PDF files.
    However, if you're using Acrobat (not Adobe Reader), you combine files by following these steps:
    Open a PDF file that you want to add pages to.
    Click the Pages pane on the Tools panel (on the right side of the application).
    Click Insert From File, and choose the file that you want to combine with the PDF that you opened in step 1.
    Make any changes necessary in the Insert Pages dialog box--these settings determine where the new file will be inserted.
    Click OK.
    Please let me know how it goes.
    Best,
    Sara
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6358990#6358990
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe PDF Pack by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How can I make different catalogs from the same image

    How can I make different catalogs from the same image where that image has been changed in some way between the catalogs. For instance if I wanted to have a catalogs for cropped images and have 3 catalogs one for 4x6 , 5x7 and 8x10 cropping. When I tried this , if I changed a file in one catalog that same image in the other would change also.

    Do not confuse the creation of the crops and the display in collections per crop ratio.
    Of course one virtual copy (VC) per crop ratio is needed. If the same image should be cropped in all 3 mentioned ratios there would be 3 VCs.
    The OP asked how to have/see a set of same-crop-ratios.
    After having created the virtual copies for whatever crop ratio he wants, the way to display this result in the fashion asked for is via smart collections, provided they can be found. Without a plugin the naming of the VC with the crop ratio applied is a straight way to achieve that.
    IF the wish is to get new crops automatically added. (See my answers 2+3)
    IF the wish is to creat static collections per crop ratio for a certain set of images, I'd go as follows:
    1. Select all images you want to have cropped in that way,.
    2. With this selection click on the + to add another collection and fill the dialog box like this:
    Then navigate into this newly created selection and perform the 4x6 crop - according to taste individually or by synchronizing the first crop.
    Cornelia

  • How can we assign different colours to different records(line items) in alv

    how can we assign different colours to different records(line items) in alv reporting?

    Hi Friend,
    Please see this SDN Wiki  for setting the color in ALV :[http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP-DevelopingInteractiveALVReportusing+OOABAP]
    There are so many SDN Wiki's on this  just try with search  Alv Color display in SDN,
    Regards,

  • How can I use different presets on the same instrument?

    I use Session Horns Pro with Kontakt Played in Mainstage 3.
    You can choose different presets within Session Horns without having to load additional samples and take up more memory.
    How can I create different patches that use the changes of Session Horn Patches without duplicating the samples in Kontakt?
    If I copy the channel strip and 'Paste as alias" changes made to one copy are the same as the alias. It seems there must be a way to "Automate" controls in an alias that is unique to each patch. I could also use to do this on instruments like Vintage Clav and Vintage B3 where I don't want to create duplicate instances of CPU hungry plug ins just to use different presets in different patches.
    Thanks in advance to anyone out there who knows of a workaround!
    Larry Ketchell

    Yes.  You can sync apps/music/etc to as many of your iphones/ipads/ipods as you like.
    Here is how to use the iphone without a wireless plan:
    Using an iPhone without a wireless service plan

  • How can i receive my receipt on the iphone 4 I purchased in August 2011

    How can i receive my receipt on the iphone 4 I purchased in August 2011

    No one here with a crystal ball or into mind reading! Who did you buy the iPhone from? You should be talking to them about the receipt.

  • How can I put different clips in the "DropZone"

    Hey,
    Just wondering how can I put different scenes in dropzones of a customized template in Idvd....
    I imported my film from IMOVIE its' not saved as a movie format such as .mov or .avi it's saved as a project file... so I dont know how I would be able to do have different scenes in different drop zones.. I can only import the whole thing in a dropzone...
    Cuz on customized template there is like 3 dropzones is there a way i can delete the other 2?
    Please help me out,
    JOey Dee

    Hello Joey,
    the dropzone is actually not meant to contain your main movie. If you want to import your iMovie project by drag'n drop, drop it just above the bottom of the preview window. Alternatively choose File > Import > Video from the menu and select your iMovie project.
    If you have 3 dropzones, you should create 3 short (30-45 sec) movies and/or slideshows to place in the dropzones.
    Have a look at this little tutorial:
    http://www.kenstone.net/fcphomepage/idvd_5stone.html
    hope this helps
    mish

  • How can i apply different color for each cell in jlist component?

    hi guys i need your help and sorry if my english is very bad..guys how can i apply different colors for each cell in jlist component? for example for the first cell i want to apply color blue, for the second cell i want red, etc... i need your answer guys tnx..
    Edited by: ryrene on Mar 21, 2010 12:13 AM

    ryrene wrote:
    hi guys i need your help and sorry if my english is very bad.
    ..guys how can i apply different colors for each cell in jlist component? for example for the first cell i want to apply color blue, for the second cell i want red, etc... i need your answer guys tnx..I'll see your tnx, and raise you dve bmbrs & nplm.

  • In KA02 screen how can I get different functional area like (Production, Sales, Adminstration etc)

    In KA02 screen how can I get different functional area like (Production, Sales, Adminstration etc)

    Hi,
    Please check below configuration for defining functional areas for cost elements
    SPRO> FI > FI Global settings> company code> cost of sales accounting>Functional area > enter functional area
    Regards,
    Jyoti

  • How can i print a receipt

    How can I print a receipt?

    Hi karenj38366577,
    Please see this document for information about how to print a receipt for your Adobe purchases: Print a payment receipt or invoice | Creative Cloud.
    Please let us know if you have additional questions.
    Best,
    Sara

  • How can i receive my receipt through email ? I lost my original receipt

    how can i receive my receipt through email ? I lost my original receipt

    To check yur warranty coverage enter the SN here:
    Apple - Support - Check Your Service and Support Coverage
    Yu should be able to prind out your invoice.
    Go to
    :http://store.apple.com/us
    Click on and sign into your account (upper right) and view order history.

  • How can I get email receipt for my ipad2?

    Hi I bought IPAD2 from rockingham park apple store at June 25, 2011 . But I didn't get email  receipt for my IPAD2. How can I get email receipt for my ipad2 ? 

    I'm out of Country. I need reciept email for my IPAD2

  • 3 ipad uses 1 apple id and 1icloud account, how can i make different icloud account so each ipad will have more icloud space?

    3 ipad uses 1 apple id and 1icloud account, how can i make different icloud account so each ipad will have more icloud space?

    All 3 iPads will have to share the same 5GB of free iCloud space. Buy more space if necessary.
    Suggest you give different name to each iPad to prevent confusion.
    Settings>General>About>Name

Maybe you are looking for

  • How to restore lost Finder preferences in 10.6.5?

    Running 10.6.5 on a MacBook Pro 2.4Ghz i5. In each Finder window, I had, over months and years, set up a specific setting according to my needs: Some windows had different background color; Some windows were set to list view, some to icon view; Some

  • Back light only after using thunderbolt display

    Hello, I have a new 2012 Macbook pro 17 and a 27 inch thunderbolt display. The Macbook was working great. Then I connected it to the thunderbolt display and did clamshell mode. That worked well too. But.. then I powered down the macbook, disconnected

  • Finding an older version of a document

    Hi...is there any way to find a previous version of a saved document if you have changed it and saved and didn't mean to? If so, can someone help me figure out how to do this? thanks! P.S. not sure of the exact version of the OS...I know it is OSx so

  • Need Count of Displayed records after suprresion

    Hi All, My question is looks very simple but it made me very tough to get it. pls help me if you have any clue. I have a report having 20 detail records from Database. I used some condition at Section expert to suppress some data, after that I have o

  • Logic Time Compression/Expansion vs. WAVES SoundShifter

    I'm considering upgrading my WAVES Platinum to the Diamond, largely because of the SoundShifter plug-in. Does anybody have any experience with the WAVES SoundShifter plug-in? Is it significantly better than what is already included in Logic 8? Thanks