If Then Else condition

Use this forum to post Vensim related questions.
Post Reply
Karthik
Junior Member
Posts: 3
Joined: Thu Jan 12, 2017 11:31 am
Vensim version: PLE

If Then Else condition

Post by Karthik »

Hello,

I have created the attached model on Vensim PLE.My aim is to optimise the transport costs by altering the weight and volume of the shipment.
Here are my queries :
1.Can two different variables with different units be used with a If Then Else statement.(Ex: in Volumetic weight).When I run the simulation,the graph is a constant for volumetric weight(parallel to x axis).
2.Is Shipment = Volume * weight? or some other relation?
Since this is my first attempt at creating a model,please provide me with your suggestions for the equations behind the variables as well and model structure.

Thanks,
Attachments
new Model.mdl
(3.39 KiB) Downloaded 152 times
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: If Then Else condition

Post by Administrator »

Karthik wrote:1.Can two different variables with different units be used with a If Then Else statement.(Ex: in Volumetic weight).
You can do something like "IF (time > 10 , x , y)", x and y must be the same units. But the "time > 0" can be different. The equation for "Volumetic weight" in your model is a little strange, what are you trying to do here?
Karthik wrote:2.Is Shipment = Volume * weight? or some other relation?
It should be measured in "articles/month". I don't understand what you are trying to work out in the model so cannot comment any further.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Karthik
Junior Member
Posts: 3
Joined: Thu Jan 12, 2017 11:31 am
Vensim version: PLE

Re: If Then Else condition

Post by Karthik »

the thing is if volume of the shipment is greater than 1 cubic metre ,then weight of shipment(kg) is multiplied by 200 and then the freight net is charged for this new weight(kg),if the volume is less than 1 cubic metre,the freight net is charged for the actual weight(kg) of the shipment
Karthik
Junior Member
Posts: 3
Joined: Thu Jan 12, 2017 11:31 am
Vensim version: PLE

Re: If Then Else condition

Post by Karthik »

shipment are the articles sent in cartons which have a weight and volume and transported in pallets,how can this be interpreted in the model?Please help
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: If Then Else condition

Post by Administrator »

Why don't you start with the "articles". Each one must have a weight, so multiply the number of articles to be shipped by the weight, this will give you the shipping cost.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Post Reply