![]() |
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
\ This file was automatically generated by Zimpl \ set constraint_names := { read FILE as "<1s>" use 3 comment "#" }; \ param constraint_values[constraint_names] := read FILE as "<1s> 2n" use 3 comment "#"; \ set items := { read FILE as "<1s>" skip 3 comment "#" }; \ param price[items] := read FILE as "<1s> 2n" skip 3 comment "#"; \ param cost[items] := read FILE as "<1s> 3n" skip 3 comment "#"; \ param hours[items] := read FILE as "<1s> 4n" skip 3 comment "#"; \ do print items; \ var x[items] >= 0; \ maximize profit: sum <i> in items: x[i] * price[i]; \ subto machine_hours: sum <i> in items : x[i] * hours[i] <= constraint_values["hours"]; \ subto max_money: sum <i> in items : x[i] * ( cost[i] - ( constraint_values["reuse"] / 100 * price[i] ) ) <= constraint_values["money"]; \Problem name: program.zpl Maximize profit: +5 x$bourbon +4.5 x$whiskey Subject to machine_hours_1: +4 x$whiskey +3 x$bourbon <= 20000 max_money_1: +0.2 x$whiskey + x$bourbon <= 4400 Bounds 0 <= x$bourbon <= +inf 0 <= x$whiskey <= +inf End |
Zitat
Original von nC_Des
Mein Problem: Ich nutze Windows (64bit) (Ich will ja irgendwie Age spielen können und Fernsehen gucken) und bin nicht bereit wegen diesem Programm Linux zu installieren und jedesmal zum Lösen der Probleme das Betriebssystem wechseln zu müssen.
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »AtroX_Worf« (22.10.2009, 16:25)