Dear all,
I want to know how to code linear programming model in VB.NET (v1.1)
anybody can do this in VB.net pls reply me.
example:
A Toy problem
A local furniture shop makes chairs and tables. The projected profits for the two products are, respectively $20 per chair and $30 per table. The projected demands for chairs and tables are 400 and 100, respectively. each chair requires 2 cubic feet of wood while each table reqires 4 cubic feet. The shop has a total amount of 1000 cubic feet of wood in store. How many chairs and tables should the shop make in order to maximize its profit?
let x1 be the number of chairs and x2 the number of tables to be made. There are the two variables, or unknowns, for this problem. The shop wants to maximize its total profit, 20x1+30x2, subject to the constraints that (a) the total amount of wood used to make the two products can not exceed the 500 cubic feet available, and (b) the number of chairs and tables to be made should not exceed the demands. In additional, we should not forget that the number of chairs and tables made to be nonnegative. Putting all these together, we have an optimization problem:
max 20x1 + 30x2
subject to
2x1 + 4x2 ≤ 1000
0 ≤ x1 ≤ 400
0 ≤ x2 ≤ 1000
anybody can do this in VB.net pls reply me.
I want to know how to code linear programming model in VB.NET (v1.1)
anybody can do this in VB.net pls reply me.
example:
A Toy problem
A local furniture shop makes chairs and tables. The projected profits for the two products are, respectively $20 per chair and $30 per table. The projected demands for chairs and tables are 400 and 100, respectively. each chair requires 2 cubic feet of wood while each table reqires 4 cubic feet. The shop has a total amount of 1000 cubic feet of wood in store. How many chairs and tables should the shop make in order to maximize its profit?
let x1 be the number of chairs and x2 the number of tables to be made. There are the two variables, or unknowns, for this problem. The shop wants to maximize its total profit, 20x1+30x2, subject to the constraints that (a) the total amount of wood used to make the two products can not exceed the 500 cubic feet available, and (b) the number of chairs and tables to be made should not exceed the demands. In additional, we should not forget that the number of chairs and tables made to be nonnegative. Putting all these together, we have an optimization problem:
max 20x1 + 30x2
subject to
2x1 + 4x2 ≤ 1000
0 ≤ x1 ≤ 400
0 ≤ x2 ≤ 1000
anybody can do this in VB.net pls reply me.