Question: how to write this formulation as cplex code ? the data must be taken from cplex (no excel sheets) the first picture has the model,
how to write this formulation as cplex code ? the data must be taken from cplex (no excel sheets)
Parameters: N: Total number of fruits (N=3) COST: cost of fruit i, when i-1,...N PRICE: price of fruit i, when i-1....N SUPPLY: supply of fruit i, when i=1....N Decision variable: x: amount of fruit i, when i-1....N Objective function: Max Z= PRICE * x- (=1 Constraints: 0.5x +0.25x SUPPLY 0.25x2 + 0.4x2 S SUPPLY 0.5x3 + 0.5x3 + 0.6x3 SUPPLY3 x 0, Vi 1,.. N EcosTi i=1 + Data Strawberry Grape Apple Supply (lb.) 300 000 120 000 150 000 Table 2: Production data in lb. Cost ($/lb.) 0.1 0.05 0.045 Price ($/lb.) 0.8875 0.7925 1.92 I= Parameters: N: Total number of fruits (N=3) COST: cost of fruit i, when i-1,...N PRICE: price of fruit i, when i-1....N SUPPLY: supply of fruit i, when i=1....N Decision variable: x: amount of fruit i, when i-1....N Objective function: Max Z= PRICE * x- (=1 Constraints: 0.5x +0.25x SUPPLY 0.25x2 + 0.4x2 S SUPPLY 0.5x3 + 0.5x3 + 0.6x3 SUPPLY3 x 0, Vi 1,.. N EcosTi i=1 + Data Strawberry Grape Apple Supply (lb.) 300 000 120 000 150 000 Table 2: Production data in lb. Cost ($/lb.) 0.1 0.05 0.045 Price ($/lb.) 0.8875 0.7925 1.92 I=
the first picture has the model, and the second picture has the data

Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
