Jump to content



Featured Articles

Check out the latest featured articles.

File Library

Check out the latest downloads available in the File Library.

New Article

Product Viscosity vs. Shear

Featured File

Vertical Tank Selection

New Blog Entry

Low Flow in Pipes- posted in Ankur's blog

0

Filling Optimization Of Product - Problem.

solver optimization linear nonlinear math fillling

3 replies to this topic
Share this topic:
| More

#1 ADMGYP

ADMGYP

    Brand New Member

  • Members
  • 2 posts

Posted 13 April 2022 - 06:13 AM

Hello everyone,

I am quite confused, I need to do an optimization of a warehouse filling that depends on prices.
That is, when it is cheap I fill it and when it is expensive I take it out to sell, two types of restrictions must be met:
Have a minimum and maximum filling on specific dates and
the maximum and minimum value that the variable can take in injection or extraction:
Xi<0 extraction, Xi>0 injection.

The fact is that Xi has limits:

Xi<H

Where H is the maximum injection that can occur in one day and is calculated as:

MINIMUM between a constant and a function that depends on the filling the previous day:

Xi < H, where H= MIN (Constant, f(Vi-1)).

To eliminate functions like the Minimum, binary variables can be used, but for it to choose the minimum, I have to introduce non-linear conditions in the objetive function that the solver does not accept.

Do you know how I can solve this problem with some other software?

All the best,


ADM.



#2 Pilesar

Pilesar

    Gold Member

  • Members
  • 1,390 posts

Posted 13 April 2022 - 06:27 AM

Does your software have an 'if' command? Nested 'if's can be ugly but seem to work.



#3 ADMGYP

ADMGYP

    Brand New Member

  • Members
  • 2 posts

Posted 13 April 2022 - 06:51 AM

Hello pilesar,

Thanks, but I'm using OpenSolver which is an add-in and extension of excel solver that allows more variables and constraints.
I have tried with the IF but it detects that it is a non-linear model.

 

Thank you!

 

If anyone can give me a hand I would be very grateful.



#4 breizh

breizh

    Gold Member

  • Admin
  • 6,355 posts

Posted 13 April 2022 - 07:10 AM

Hi,

You may find pointers here :

https://cheguide.com...rogramming.html

Breizh






Similar Topics