Please refrain from posting animated GIFs, memes, joke videos and so on in discussions other than those in the off topic area.

Dismiss this message to confirm your acceptance of this additional forum term of use.
You must be 16 or over to participate in the Brickset Forum. Please read the announcements and rules before you join.


Hi Everyone! PLEASE READ THIS if you are interested in the Matlab cost minimization scripts. I'll be glad to send the latest distribution package to any email address you specify, but please do so in a PRIVATE MESSAGE to me. I only see this user wall here a few times a year, so any requests posted here may go unread for a long time. ALSO, as of March 2013, the forum software changed such that I am no longer notified of PM's from new contacts, but only those with whom I have corresponded before. Because I have to manually check this inbox, your new PM may go unread for a few days, but I do eventually get caught up with all requests. Thanks for your patience!


Last Active
  • Automated BrickLink cost minimization program available

    I am a frequent user of BrickLink, and often after creating a Wanted list, I would find no one vendor with everything I wanted in stock. The resulting manual search for the least expensive mix of vendors to purchase from was time-consuming. Therefore, I wrote an automated tool to do this search for me which I'd be happy to share.

    For a given Wanted list, my program downloads BrickLink pricing info for all desired pieces and does a search over all possible vendors to find the combination that fills the order at the least cost. It can also filter on New vs Used parts, specific or undefined color, US vs international sellers, and split partial quantities over multiple vendors if desired totals can be met.

    My solution is a package of Matlab scripts which I can share with anyone who asks; just send me a message. The tool does require Matlab, but I'm probably not the only Matlab-using engineer in this demographic, and I'd welcome any effort to make this into a stand-alone executable. The example for parsing a Brick Link Price Guide page might be helpful to programmers on its own, and I'd also be interested in hearing about any other solutions that solve the same problem.
Recent discussions Categories Privacy Policy

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!