From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: fmincon fixed costs
Date: Fri, 10 May 2013 14:39:07 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <kmj0qb$2ju$>
References: <kmh2fd$ena$> <kminjb$1ul$> <kmip2u$6hg$> <kmiqe3$al0$> <kmiusf$pbp$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1368196747 2686 (10 May 2013 14:39:07 GMT)
NNTP-Posting-Date: Fri, 10 May 2013 14:39:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3799640
Xref: comp.soft-sys.matlab:795303

"Nivi" wrote in message <kmiusf$pbp$>...
> so there's a supply chain.... products moving along certain pathways from manufacturers to the retailers. when two companies undergo a merger or an acquisition, the supply chain merges.... now i use fmincon to optimize the flow, find the most economical path the products should take, but during mergers new links are created, say from manufacturer of firm A to warehouse of firm B, now there are costs associated with establishing these new links, what i call fixed costs, and variable costs which is a function of the flow along that path/link. i've modelled variable costs and optimized my results, but i am unable to incorporate the fixed costs which must be 0 if there is no flow on the new link and non-zero if there is ANY flow on that link because sometimes there could be an optimal solution if one link is not established AT ALL and the flow which is supposed to be on that link is 
> on another 

I think whether a link is estabished or not must be accounted for by a binary variable
(0 or 1). 
Thus your problem becomes a MINLP problem that you should not handle using fmincon. There are also no other MATLAB solvers available for this kind of problem.

Best wishes