diff options
Diffstat (limited to '2510/CH26/EX26.11/Ex26_11.sce')
-rwxr-xr-x | 2510/CH26/EX26.11/Ex26_11.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/2510/CH26/EX26.11/Ex26_11.sce b/2510/CH26/EX26.11/Ex26_11.sce new file mode 100755 index 000000000..01209cd9e --- /dev/null +++ b/2510/CH26/EX26.11/Ex26_11.sce @@ -0,0 +1,14 @@ +//Key: +//f(x) : Objective Function +//ci(x)'s : Constraints + +//Variable Declaration: +function [a] = f(x) + a = -2.0*x(1) - 1.6*x(2) +endfunction + +//Calculation +X = [16820,1152] + +//Result: +printf("Maximum Profit is $ %.0f /day or $ %f /year",-f(X),-365*f(X)) |