Register

New Contributor

## Cost Optimization for 2 plants

If I am doing cost optimization for 2 plants where I have demand & Supply for the 2 plants seperately. For a specific time period if my constraints are getting satisfied for plant and not for other plant, I am not getting the optimal solution for that plant with satisfied constraints. Can I get the solution for only that plant even when the constraints are not satisfied for other plant?
4 REPLIES 4
Contributor

## Re: Cost Optimization for 2 plants

Hello

All the constraints have to be met for the solution to be feasible. A solution that is not feasible can not be optimal.

With Optimizer we resolve the problem in its globality. Which means we don't look for a solution plant by plant, we look for a solution that optimises the objective function.

if one of the constraints are not met, you need to find a new way to write your constraint. Because, if you leave it that way, you will have infeasiblities, which means no solution

Regards

Dihya Atmani

Certified Master Anaplanner

## Re: Cost Optimization for 2 plants

When you are running optimizer to solve for a problem, it might stop (as in this case) if the constraints are not satisfied completely. Depending on the planar, it can stop without giving an optimal solution for the other plant as well. You will not get an optimal result. If the optimizer fails, it is not recommended to use the values it might have changed during the iterations. I will recommend to run solutions for individual plants if there are no overlap between the two.

Thanks
Anik
Not applicable

## Re: Cost Optimization for 2 plants

@anikdas wrote:

When you are running optimizer to solve for a problem, it might stop (as in this case) if the constraints are not satisfied completely. Depending on the planar, it can stop without giving an optimal solution for the other plant as well. You will not get an optimal result. If the optimizer fails, it is not recommended to use the values it might have changed during the iterations. I will recommend to run solutions for individual plants if there are no overlap between the two.

Agree +1

Master Anaplanner/Community Boss

## Re: Cost Optimization for 2 plants

Even though more nuance would be welcome for a better understanding, I think these are the most likely reasons for your outcome:

1. Settings: Make sure that you set the optimiser to look for an optimal solution (as opposed to a "feasible" and sub optimal solution)

2. Approach: There are quite a lot of candidates to be causing the issue here:

Since you mentioned that the variables (supply and demand) are independent per Plant, I am wondering how do your constraints, other variables and objective function look like, since they could be disconnected too.

For instance; if your objective function is to minimise the total aggregated inventory cost of both plants (I assume) but you do not specify a constraint that both plants must satisfy their respective demands, the Optimiser will just assign more stock to the most "cost-effective" plant, ignoring the demand of the most "expensive" one.

I hope that this "brain storm" will help you to approach your problem in a different way and get closer to a solution. Else, I am afraid that more details from your side would be necessary.

Cheers!

Alex