Re: [eclipse-clp-users] simple eplex question

From: Sergey Dymchenko <kit1980_at_...6...>
Date: Fri, 7 Sep 2012 00:54:36 +0300
Hello,

I think that the problem is that dot product will not work for arrays,
only for lists.
Try "P $>= [](1,2)*[](3,4)" and you'll get the same error.

Sergey.

On Fri, Sep 7, 2012 at 12:03 AM, Kostas Oikonomou <ko@...308...> wrote:
> By reading the Constraint Library manual  section 9.2.2, I
> believe that the following
> code should work
>
> :- lib(eplex).
>
> tst :-
> eplex_solver_setup(min(P)),
> A = []([](1,2,3), [](4,5,6)),
> B = []([](6,7,8), [](9,10,11)),
> P :: 0.0..1000.0,
> %P $>= [1,2]*[3,4],           % works
> P $>= A[1..2,3]*B[1..2,3], % produces run-time error
> eplex_solve(_),
> eplex_get(typed_solution,Val),
> write("P = "), writeln(Val)
> .
>
> but it doesn't.  I don't understand why.
>
>                              Kostas
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> ECLiPSe-CLP-Users mailing list
> ECLiPSe-CLP-Users_at_lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/eclipse-clp-users
Received on Thu Sep 06 2012 - 21:54:43 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 09 2018 - 02:05:29 CEST