diff options
Diffstat (limited to 'prolog/problems/clp_r/linear_opt_3')
-rw-r--r-- | prolog/problems/clp_r/linear_opt_3/sl.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/prolog/problems/clp_r/linear_opt_3/sl.py b/prolog/problems/clp_r/linear_opt_3/sl.py new file mode 100644 index 0000000..512c6b8 --- /dev/null +++ b/prolog/problems/clp_r/linear_opt_3/sl.py @@ -0,0 +1,17 @@ +# coding=utf-8 + +name = 'linear_opt/3' +slug = 'linearna optimizacija' + +description = '''\ +<p>Množica točk v ravnini je podana z naslednjimi neenačbami:</p> +<ul> + <li>0 ≤ <code>X</code> ≤ 5,</li> + <li><code>Y</code> ≥ 0,</li> + <li><code>X</code> + <code>Y</code> ≤ 7,</li> + <li><code>X</code> + 2*<code>Y</code> ≥ 4 ter</li> + <li><code>Y</code> ≤ <code>X</code> + 5.</li> +</ul> +<p>Predikat <code>linear_opt(X, Y, MaxE)</code> naj vrne točko (<code>X</code>, <code>Y</code>) v kateri ima izraz <code>E = -0.4*X + 3.2*Y</code> največjo vrednost.</p>''' + +hint = {} |