327 lines
67 KiB
XML
327 lines
67 KiB
XML
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
|
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.6">
|
|
<compounddef id="min-max-channel_8hpp" kind="file">
|
|
<compoundname>min-max-channel.hpp</compoundname>
|
|
<includes local="no">cmath</includes>
|
|
<includedby refid="float_2arithmetic_8hh" local="no">/usr/include/gecode/float/arithmetic.hh</includedby>
|
|
<incdepgraph>
|
|
<node id="1567">
|
|
<label>cmath</label>
|
|
</node>
|
|
<node id="1566">
|
|
<label>/usr/include/gecode/float/arithmetic/min-max-channel.hpp</label>
|
|
<link refid="min-max-channel.hpp"/>
|
|
<childnode refid="1567" relation="include">
|
|
</childnode>
|
|
</node>
|
|
</incdepgraph>
|
|
<invincdepgraph>
|
|
<node id="1568">
|
|
<label>/usr/include/gecode/float/arithmetic/min-max-channel.hpp</label>
|
|
<link refid="min-max-channel.hpp"/>
|
|
<childnode refid="1569" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="1569">
|
|
<label>/usr/include/gecode/float/arithmetic.hh</label>
|
|
<link refid="float_2arithmetic_8hh_source"/>
|
|
</node>
|
|
</invincdepgraph>
|
|
<innernamespace refid="namespaceGecode">Gecode</innernamespace>
|
|
<innernamespace refid="namespaceGecode_1_1Float">Gecode::Float</innernamespace>
|
|
<innernamespace refid="namespaceGecode_1_1Float_1_1Arithmetic">Gecode::Float::Arithmetic</innernamespace>
|
|
<briefdescription>
|
|
</briefdescription>
|
|
<detaileddescription>
|
|
</detaileddescription>
|
|
<programlisting>
|
|
<codeline lineno="1"><highlight class="comment">/*<sp/>-*-<sp/>mode:<sp/>C++;<sp/>c-basic-offset:<sp/>2;<sp/>indent-tabs-mode:<sp/>nil<sp/>-*-<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="comment">/*</highlight></codeline>
|
|
<codeline lineno="3"><highlight class="comment"><sp/>*<sp/><sp/>Main<sp/>authors:</highlight></codeline>
|
|
<codeline lineno="4"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Christian<sp/>Schulte<sp/><schulte@gecode.org></highlight></codeline>
|
|
<codeline lineno="5"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Vincent<sp/>Barichard<sp/><Vincent.Barichard@univ-angers.fr></highlight></codeline>
|
|
<codeline lineno="6"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/><sp/>Copyright:</highlight></codeline>
|
|
<codeline lineno="8"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Christian<sp/>Schulte,<sp/>2004</highlight></codeline>
|
|
<codeline lineno="9"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Vincent<sp/>Barichard,<sp/>2012</highlight></codeline>
|
|
<codeline lineno="10"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/>Last<sp/>modified:</highlight></codeline>
|
|
<codeline lineno="12"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Date:<sp/>2013-02-14<sp/>16:29:11<sp/>+0100<sp/>(Thu,<sp/>14<sp/>Feb<sp/>2013)<sp/>$<sp/>by<sp/>$Author:<sp/>schulte<sp/>$</highlight></codeline>
|
|
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Revision:<sp/>13292<sp/>$</highlight></codeline>
|
|
<codeline lineno="14"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="15"><highlight class="comment"><sp/>*<sp/><sp/>This<sp/>file<sp/>is<sp/>part<sp/>of<sp/>Gecode,<sp/>the<sp/>generic<sp/>constraint</highlight></codeline>
|
|
<codeline lineno="16"><highlight class="comment"><sp/>*<sp/><sp/>development<sp/>environment:</highlight></codeline>
|
|
<codeline lineno="17"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>http://www.gecode.org</highlight></codeline>
|
|
<codeline lineno="18"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="19"><highlight class="comment"><sp/>*<sp/><sp/>Permission<sp/>is<sp/>hereby<sp/>granted,<sp/>free<sp/>of<sp/>charge,<sp/>to<sp/>any<sp/>person<sp/>obtaining</highlight></codeline>
|
|
<codeline lineno="20"><highlight class="comment"><sp/>*<sp/><sp/>a<sp/>copy<sp/>of<sp/>this<sp/>software<sp/>and<sp/>associated<sp/>documentation<sp/>files<sp/>(the</highlight></codeline>
|
|
<codeline lineno="21"><highlight class="comment"><sp/>*<sp/><sp/>"Software"),<sp/>to<sp/>deal<sp/>in<sp/>the<sp/>Software<sp/>without<sp/>restriction,<sp/>including</highlight></codeline>
|
|
<codeline lineno="22"><highlight class="comment"><sp/>*<sp/><sp/>without<sp/>limitation<sp/>the<sp/>rights<sp/>to<sp/>use,<sp/>copy,<sp/>modify,<sp/>merge,<sp/>publish,</highlight></codeline>
|
|
<codeline lineno="23"><highlight class="comment"><sp/>*<sp/><sp/>distribute,<sp/>sublicense,<sp/>and/or<sp/>sell<sp/>copies<sp/>of<sp/>the<sp/>Software,<sp/>and<sp/>to</highlight></codeline>
|
|
<codeline lineno="24"><highlight class="comment"><sp/>*<sp/><sp/>permit<sp/>persons<sp/>to<sp/>whom<sp/>the<sp/>Software<sp/>is<sp/>furnished<sp/>to<sp/>do<sp/>so,<sp/>subject<sp/>to</highlight></codeline>
|
|
<codeline lineno="25"><highlight class="comment"><sp/>*<sp/><sp/>the<sp/>following<sp/>conditions:</highlight></codeline>
|
|
<codeline lineno="26"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="27"><highlight class="comment"><sp/>*<sp/><sp/>The<sp/>above<sp/>copyright<sp/>notice<sp/>and<sp/>this<sp/>permission<sp/>notice<sp/>shall<sp/>be</highlight></codeline>
|
|
<codeline lineno="28"><highlight class="comment"><sp/>*<sp/><sp/>included<sp/>in<sp/>all<sp/>copies<sp/>or<sp/>substantial<sp/>portions<sp/>of<sp/>the<sp/>Software.</highlight></codeline>
|
|
<codeline lineno="29"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="30"><highlight class="comment"><sp/>*<sp/><sp/>THE<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>"AS<sp/>IS",<sp/>WITHOUT<sp/>WARRANTY<sp/>OF<sp/>ANY<sp/>KIND,</highlight></codeline>
|
|
<codeline lineno="31"><highlight class="comment"><sp/>*<sp/><sp/>EXPRESS<sp/>OR<sp/>IMPLIED,<sp/>INCLUDING<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO<sp/>THE<sp/>WARRANTIES<sp/>OF</highlight></codeline>
|
|
<codeline lineno="32"><highlight class="comment"><sp/>*<sp/><sp/>MERCHANTABILITY,<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>AND</highlight></codeline>
|
|
<codeline lineno="33"><highlight class="comment"><sp/>*<sp/><sp/>NONINFRINGEMENT.<sp/>IN<sp/>NO<sp/>EVENT<sp/>SHALL<sp/>THE<sp/>AUTHORS<sp/>OR<sp/>COPYRIGHT<sp/>HOLDERS<sp/>BE</highlight></codeline>
|
|
<codeline lineno="34"><highlight class="comment"><sp/>*<sp/><sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>CLAIM,<sp/>DAMAGES<sp/>OR<sp/>OTHER<sp/>LIABILITY,<sp/>WHETHER<sp/>IN<sp/>AN<sp/>ACTION</highlight></codeline>
|
|
<codeline lineno="35"><highlight class="comment"><sp/>*<sp/><sp/>OF<sp/>CONTRACT,<sp/>TORT<sp/>OR<sp/>OTHERWISE,<sp/>ARISING<sp/>FROM,<sp/>OUT<sp/>OF<sp/>OR<sp/>IN<sp/>CONNECTION</highlight></codeline>
|
|
<codeline lineno="36"><highlight class="comment"><sp/>*<sp/><sp/>WITH<sp/>THE<sp/>SOFTWARE<sp/>OR<sp/>THE<sp/>USE<sp/>OR<sp/>OTHER<sp/>DEALINGS<sp/>IN<sp/>THE<sp/>SOFTWARE.</highlight></codeline>
|
|
<codeline lineno="37"><highlight class="comment"><sp/>*</highlight></codeline>
|
|
<codeline lineno="38"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="39"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="40"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Gecode<sp/>{<sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Float<sp/>{<sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Arithmetic<sp/>{</highlight></codeline>
|
|
<codeline lineno="41"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="42"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><cmath></highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="43"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
|
|
<codeline lineno="44"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Bounds<sp/>consistent<sp/>min<sp/>operator</highlight></codeline>
|
|
<codeline lineno="45"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
|
|
<codeline lineno="46"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="47"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>C></highlight></codeline>
|
|
<codeline lineno="48"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="49" refid="classGecode_1_1Float_1_1Arithmetic_1_1Min_1a9062f0fcfa97b93e9f17bb568499a11d" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Min_1a4a8f4ad485bc0a072d6c91159499ae6a" kindref="member">Min<A,B,C>::Min</ref>(<ref refid="classGecode_1_1Home" kindref="compound">Home</ref><sp/>home,<sp/>A<sp/>x0,<sp/>B<sp/>x1,<sp/>C<sp/>x2)</highlight></codeline>
|
|
<codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1MixTernaryPropagator" kindref="compound">MixTernaryPropagator</ref><A,PC_FLOAT_BND,B,PC_FLOAT_BND,C,PC_FLOAT_BND>(home,x0,x1,x2)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="51"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="52"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>C></highlight></codeline>
|
|
<codeline lineno="53"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="54" refid="classGecode_1_1Float_1_1Arithmetic_1_1Min_1a4a8f4ad485bc0a072d6c91159499ae6a" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Min_1a4a8f4ad485bc0a072d6c91159499ae6a" kindref="member">Min<A,B,C>::Min</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share,<sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Min" kindref="compound">Min<A,B,C></ref>&<sp/>p)</highlight></codeline>
|
|
<codeline lineno="55"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1MixTernaryPropagator" kindref="compound">MixTernaryPropagator</ref><A,PC_FLOAT_BND,B,PC_FLOAT_BND,C,PC_FLOAT_BND>(home,share,p)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="56"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="57"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>C></highlight></codeline>
|
|
<codeline lineno="58"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="59" refid="classGecode_1_1Float_1_1Arithmetic_1_1Min_1afc3729d82748406f6e41f1a65a0cdf86" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Min_1a4a8f4ad485bc0a072d6c91159499ae6a" kindref="member">Min<A,B,C>::Min</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share,<sp/><ref refid="classGecode_1_1Propagator" kindref="compound">Propagator</ref>&<sp/>p,</highlight></codeline>
|
|
<codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>A<sp/>x0,<sp/>B<sp/>x1,<sp/>C<sp/>x2)</highlight></codeline>
|
|
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1MixTernaryPropagator" kindref="compound">MixTernaryPropagator</ref><A,PC_FLOAT_BND,B,PC_FLOAT_BND,C,PC_FLOAT_BND>(home,share,p,x0,x1,x2)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="62"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="63"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>C></highlight></codeline>
|
|
<codeline lineno="64"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Actor" kindref="compound">Actor</ref>*</highlight></codeline>
|
|
<codeline lineno="65" refid="classGecode_1_1Float_1_1Arithmetic_1_1Min_1a1bd0c1133c14e0bb14790478e7378896" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Min_1a1bd0c1133c14e0bb14790478e7378896" kindref="member">Min<A,B,C>::copy</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share)<sp/>{</highlight></codeline>
|
|
<codeline lineno="66"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Min" kindref="compound">Min<A,B,C></ref>(home,share,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="67"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="68"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="69"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>C></highlight></codeline>
|
|
<codeline lineno="70"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="71" refid="classGecode_1_1Float_1_1Arithmetic_1_1Min_1a9347d55d9fafc6f9fc58c67391e1b4a8" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Min_1a9347d55d9fafc6f9fc58c67391e1b4a8" kindref="member">Min<A,B,C>::post</ref>(<ref refid="classGecode_1_1Home" kindref="compound">Home</ref><sp/>home,<sp/>A<sp/>x0,<sp/>B<sp/>x1,<sp/>C<sp/>x2)<sp/>{</highlight></codeline>
|
|
<codeline lineno="72"><highlight class="normal"><sp/><sp/><sp/><sp/>(void)<sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Min" kindref="compound">Min<A,B,C></ref>(home,x0,x1,x2);</highlight></codeline>
|
|
<codeline lineno="73"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a01d6fb1ec70479e8e413d5ecfd63e303" kindref="member">ES_OK</ref>;</highlight></codeline>
|
|
<codeline lineno="74"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="75"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="76"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>C></highlight></codeline>
|
|
<codeline lineno="77"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="78" refid="classGecode_1_1Float_1_1Arithmetic_1_1Min_1ac1fcf95027c7b2806fa11fb63b6e7d85" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Min_1ac1fcf95027c7b2806fa11fb63b6e7d85" kindref="member">Min<A,B,C>::propagate</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a129e41c1d037528010d7b6706495a560" kindref="member">ModEventDelta</ref>&)<sp/>{</highlight></codeline>
|
|
<codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x2.eq(home,min(x0.domain(),x1.domain())));</highlight></codeline>
|
|
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x0.gq(home,x2.min()));</highlight></codeline>
|
|
<codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x1.gq(home,x2.min()));</highlight></codeline>
|
|
<codeline lineno="82"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="namespaceGecode_1ac39fd7326a3f6b96950c67c54307c6d5" kindref="member">same</ref>(x0,x1))<sp/>{</highlight></codeline>
|
|
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x0.lq(home,x2.max()));</highlight></codeline>
|
|
<codeline lineno="84"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
|
<codeline lineno="85"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!overlap(x1.val(),x2.val()))<sp/>GECODE_ME_CHECK(x0.lq(home,x2.max()));</highlight></codeline>
|
|
<codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!overlap(x0.val(),x2.val()))<sp/>GECODE_ME_CHECK(x1.lq(home,x2.max()));</highlight></codeline>
|
|
<codeline lineno="87"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="88"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(x0.assigned()<sp/>&&<sp/>x1.assigned())<sp/>?<sp/>home.<ref refid="group__TaskActorStatus_1gafc19cbf71ed90a9e0b414b875103f4c7" kindref="member">ES_SUBSUMED</ref>(*</highlight><highlight class="keyword">this</highlight><highlight class="normal">)<sp/>:<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a13bb69056fb9293e8df98c0e347ba634" kindref="member">ES_FIX</ref>;</highlight></codeline>
|
|
<codeline lineno="89"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="90"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="91"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
|
|
<codeline lineno="92"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Bounds<sp/>consistent<sp/>max<sp/>operator</highlight></codeline>
|
|
<codeline lineno="93"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
|
|
<codeline lineno="94"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="95"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="96"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>C></highlight></codeline>
|
|
<codeline lineno="97"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="98" refid="classGecode_1_1Float_1_1Arithmetic_1_1Max_1ae5b76eab02c0a66ec911074198380bc7" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Max_1a203c720b4f86ee60decc163c045042a6" kindref="member">Max<A,B,C>::Max</ref>(<ref refid="classGecode_1_1Home" kindref="compound">Home</ref><sp/>home,<sp/>A<sp/>x0,<sp/>B<sp/>x1,<sp/>C<sp/>x2)</highlight></codeline>
|
|
<codeline lineno="99"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1MixTernaryPropagator" kindref="compound">MixTernaryPropagator</ref><A,PC_FLOAT_BND,B,PC_FLOAT_BND,C,PC_FLOAT_BND>(home,x0,x1,x2)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="100"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="101"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>C></highlight></codeline>
|
|
<codeline lineno="102"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="103" refid="classGecode_1_1Float_1_1Arithmetic_1_1Max_1a203c720b4f86ee60decc163c045042a6" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Max_1a203c720b4f86ee60decc163c045042a6" kindref="member">Max<A,B,C>::Max</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share,<sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Max" kindref="compound">Max<A,B,C></ref>&<sp/>p)</highlight></codeline>
|
|
<codeline lineno="104"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1MixTernaryPropagator" kindref="compound">MixTernaryPropagator</ref><A,PC_FLOAT_BND,B,PC_FLOAT_BND,C,PC_FLOAT_BND>(home,share,p)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="105"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="106"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>C></highlight></codeline>
|
|
<codeline lineno="107"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="108" refid="classGecode_1_1Float_1_1Arithmetic_1_1Max_1a6a51f1fa792e7330bb68199bc3decc3c" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Max_1a203c720b4f86ee60decc163c045042a6" kindref="member">Max<A,B,C>::Max</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share,<sp/><ref refid="classGecode_1_1Propagator" kindref="compound">Propagator</ref>&<sp/>p,</highlight></codeline>
|
|
<codeline lineno="109"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>A<sp/>x0,<sp/>B<sp/>x1,<sp/>C<sp/>x2)</highlight></codeline>
|
|
<codeline lineno="110"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1MixTernaryPropagator" kindref="compound">MixTernaryPropagator</ref><A,PC_FLOAT_BND,B,PC_FLOAT_BND,C,PC_FLOAT_BND>(home,share,p,x0,x1,x2)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="111"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="112"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>C></highlight></codeline>
|
|
<codeline lineno="113"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Actor" kindref="compound">Actor</ref>*</highlight></codeline>
|
|
<codeline lineno="114" refid="classGecode_1_1Float_1_1Arithmetic_1_1Max_1a6855c4e742168011d29d00dd13e35c36" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Max_1a6855c4e742168011d29d00dd13e35c36" kindref="member">Max<A,B,C>::copy</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share)<sp/>{</highlight></codeline>
|
|
<codeline lineno="115"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Max" kindref="compound">Max<A,B,C></ref>(home,share,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="116"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="117"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="118"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>C></highlight></codeline>
|
|
<codeline lineno="119"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="120" refid="classGecode_1_1Float_1_1Arithmetic_1_1Max_1a563022106fb0318f2d667ef06c241738" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Max_1a563022106fb0318f2d667ef06c241738" kindref="member">Max<A,B,C>::post</ref>(<ref refid="classGecode_1_1Home" kindref="compound">Home</ref><sp/>home,<sp/>A<sp/>x0,<sp/>B<sp/>x1,<sp/>C<sp/>x2)<sp/>{</highlight></codeline>
|
|
<codeline lineno="121"><highlight class="normal"><sp/><sp/><sp/><sp/>(void)<sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Max" kindref="compound">Max<A,B,C></ref>(home,x0,x1,x2);</highlight></codeline>
|
|
<codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a01d6fb1ec70479e8e413d5ecfd63e303" kindref="member">ES_OK</ref>;</highlight></codeline>
|
|
<codeline lineno="123"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="124"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="125"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>C></highlight></codeline>
|
|
<codeline lineno="126"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="127" refid="classGecode_1_1Float_1_1Arithmetic_1_1Max_1a923d590671a96c3e01234ec521682466" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Max_1a923d590671a96c3e01234ec521682466" kindref="member">Max<A,B,C>::propagate</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a129e41c1d037528010d7b6706495a560" kindref="member">ModEventDelta</ref>&)<sp/>{</highlight></codeline>
|
|
<codeline lineno="128"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x2.eq(home,max(x0.domain(),x1.domain())));</highlight></codeline>
|
|
<codeline lineno="129"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x0.lq(home,x2.max()));</highlight></codeline>
|
|
<codeline lineno="130"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x1.lq(home,x2.max()));</highlight></codeline>
|
|
<codeline lineno="131"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="namespaceGecode_1ac39fd7326a3f6b96950c67c54307c6d5" kindref="member">same</ref>(x0,x1))<sp/>{</highlight></codeline>
|
|
<codeline lineno="132"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x0.gq(home,x2.min()));</highlight></codeline>
|
|
<codeline lineno="133"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
|
<codeline lineno="134"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!overlap(x1.val(),x2.val()))<sp/>GECODE_ME_CHECK(x0.gq(home,x2.min()));</highlight></codeline>
|
|
<codeline lineno="135"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!overlap(x0.val(),x2.val()))<sp/>GECODE_ME_CHECK(x1.gq(home,x2.min()));</highlight></codeline>
|
|
<codeline lineno="136"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="137"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(x0.assigned()<sp/>&&<sp/>x1.assigned())<sp/>?<sp/>home.<ref refid="group__TaskActorStatus_1gafc19cbf71ed90a9e0b414b875103f4c7" kindref="member">ES_SUBSUMED</ref>(*</highlight><highlight class="keyword">this</highlight><highlight class="normal">)<sp/>:<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a13bb69056fb9293e8df98c0e347ba634" kindref="member">ES_FIX</ref>;</highlight></codeline>
|
|
<codeline lineno="138"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="139"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="140"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
|
|
<codeline lineno="141"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Nary<sp/>bounds<sp/>consistent<sp/>maximum</highlight></codeline>
|
|
<codeline lineno="142"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
|
|
<codeline lineno="143"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="144"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="145"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View></highlight></codeline>
|
|
<codeline lineno="146"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="147" refid="classGecode_1_1Float_1_1Arithmetic_1_1NaryMax_1a092c4cabaa0c70068c9ab33d6dd05594" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1NaryMax_1a93f46f0493036af1f9e34d131e330506" kindref="member">NaryMax<View>::NaryMax</ref>(<ref refid="classGecode_1_1Home" kindref="compound">Home</ref><sp/>home,<sp/><ref refid="classGecode_1_1ViewArray" kindref="compound">ViewArray<View></ref>&<sp/>x,<sp/>View<sp/>y)</highlight></codeline>
|
|
<codeline lineno="148"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1NaryOnePropagator" kindref="compound">NaryOnePropagator</ref><View,PC_FLOAT_BND>(home,x,y)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="149"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="150"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View></highlight></codeline>
|
|
<codeline lineno="151"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="152" refid="classGecode_1_1Float_1_1Arithmetic_1_1NaryMax_1a920ef386cc4862c9cf73fac4360e7116" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1NaryMax_1a920ef386cc4862c9cf73fac4360e7116" kindref="member">NaryMax<View>::post</ref>(<ref refid="classGecode_1_1Home" kindref="compound">Home</ref><sp/>home,<sp/><ref refid="classGecode_1_1ViewArray" kindref="compound">ViewArray<View></ref>&<sp/>x,<sp/>View<sp/>y)<sp/>{</highlight></codeline>
|
|
<codeline lineno="153"><highlight class="normal"><sp/><sp/><sp/><sp/>assert(x.<ref refid="classGecode_1_1ViewArray_1a65940b23e2457e97607475f8bd8f4ac6" kindref="member">size</ref>()<sp/>><sp/>0);</highlight></codeline>
|
|
<codeline lineno="154"><highlight class="normal"><sp/><sp/><sp/><sp/>x.<ref refid="classGecode_1_1ViewArray_1a76e383bb302d106fbbec6fcbe4901a4e" kindref="member">unique</ref>(home);</highlight></codeline>
|
|
<codeline lineno="155"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x.<ref refid="classGecode_1_1ViewArray_1a65940b23e2457e97607475f8bd8f4ac6" kindref="member">size</ref>()<sp/>==<sp/>1)</highlight></codeline>
|
|
<codeline lineno="156"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Float_1_1Rel_1_1Eq" kindref="compound">Rel::Eq<View,View>::post</ref>(home,x[0],y);</highlight></codeline>
|
|
<codeline lineno="157"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x.<ref refid="classGecode_1_1ViewArray_1a65940b23e2457e97607475f8bd8f4ac6" kindref="member">size</ref>()<sp/>==<sp/>2)</highlight></codeline>
|
|
<codeline lineno="158"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Max" kindref="compound">Max<View,View,View>::post</ref>(home,x[0],x[1],y);</highlight></codeline>
|
|
<codeline lineno="159"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>l<sp/>=<sp/><ref refid="namespaceGecode_1_1Float_1_1Limits_1a9f7f4f8a9c1084d5f1c14bb16b2cf467" kindref="member">Float::Limits::min</ref>;</highlight></codeline>
|
|
<codeline lineno="160"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>u<sp/>=<sp/><ref refid="namespaceGecode_1_1Float_1_1Limits_1a9f7f4f8a9c1084d5f1c14bb16b2cf467" kindref="member">Float::Limits::min</ref>;</highlight></codeline>
|
|
<codeline lineno="161"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=x.<ref refid="classGecode_1_1ViewArray_1a65940b23e2457e97607475f8bd8f4ac6" kindref="member">size</ref>();<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
|
|
<codeline lineno="162"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>l<sp/>=<sp/><ref refid="group__TaskModelFloatArith_1ga958cb25ae9754d6cc35c7c6e34ebc1e3" kindref="member">std::max</ref>(l,x[i].min());</highlight></codeline>
|
|
<codeline lineno="163"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>u<sp/>=<sp/><ref refid="group__TaskModelFloatArith_1ga958cb25ae9754d6cc35c7c6e34ebc1e3" kindref="member">std::max</ref>(u,x[i].max());</highlight></codeline>
|
|
<codeline lineno="164"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="165"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(y.gq(home,l));</highlight></codeline>
|
|
<codeline lineno="166"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(y.lq(home,u));</highlight></codeline>
|
|
<codeline lineno="167"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x.<ref refid="classGecode_1_1ViewArray_1afe47e93700a5c1d13757ea5ed1225d22" kindref="member">same</ref>(home,y))<sp/>{</highlight></codeline>
|
|
<codeline lineno="168"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Check<sp/>whether<sp/>y<sp/>occurs<sp/>in<sp/>x</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="169"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i=x.<ref refid="classGecode_1_1ViewArray_1a65940b23e2457e97607475f8bd8f4ac6" kindref="member">size</ref>();<sp/>i--;<sp/>)</highlight></codeline>
|
|
<codeline lineno="170"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GECODE_ES_CHECK((<ref refid="classGecode_1_1Float_1_1Rel_1_1Lq" kindref="compound">Rel::Lq<View>::post</ref>(home,x[i],y)));</highlight></codeline>
|
|
<codeline lineno="171"><highlight class="normal"><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
|
|
<codeline lineno="172"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>(void)<sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1NaryMax" kindref="compound">NaryMax<View></ref>(home,x,y);</highlight></codeline>
|
|
<codeline lineno="173"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="174"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a01d6fb1ec70479e8e413d5ecfd63e303" kindref="member">ES_OK</ref>;</highlight></codeline>
|
|
<codeline lineno="175"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="176"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="177"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View></highlight></codeline>
|
|
<codeline lineno="178"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="179" refid="classGecode_1_1Float_1_1Arithmetic_1_1NaryMax_1a93f46f0493036af1f9e34d131e330506" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1NaryMax_1a93f46f0493036af1f9e34d131e330506" kindref="member">NaryMax<View>::NaryMax</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share,<sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1NaryMax" kindref="compound">NaryMax<View></ref>&<sp/>p)</highlight></codeline>
|
|
<codeline lineno="180"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1NaryOnePropagator" kindref="compound">NaryOnePropagator</ref><View,PC_FLOAT_BND>(home,share,p)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="181"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="182"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View></highlight></codeline>
|
|
<codeline lineno="183"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Actor" kindref="compound">Actor</ref>*</highlight></codeline>
|
|
<codeline lineno="184" refid="classGecode_1_1Float_1_1Arithmetic_1_1NaryMax_1a508c50ee0986cb629df4ce4f90fcf4f3" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1NaryMax_1a508c50ee0986cb629df4ce4f90fcf4f3" kindref="member">NaryMax<View>::copy</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share)<sp/>{</highlight></codeline>
|
|
<codeline lineno="185"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x.size()<sp/>==<sp/>1)</highlight></codeline>
|
|
<codeline lineno="186"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1Float_1_1Rel_1_1Eq" kindref="compound">Rel::Eq<View,View></ref>(home,share,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,x[0],y);</highlight></codeline>
|
|
<codeline lineno="187"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x.<ref refid="classGecode_1_1Propagator_1a1781b5b0df38c39dddca4b44c3a00530" kindref="member">size</ref>()<sp/>==<sp/>2)</highlight></codeline>
|
|
<codeline lineno="188"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Max" kindref="compound">Max<View,View,View></ref>(home,share,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,x[0],x[1],y);</highlight></codeline>
|
|
<codeline lineno="189"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1NaryMax" kindref="compound">NaryMax<View></ref>(home,share,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="190"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="191"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="193" refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006a" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">enum</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006a" kindref="member">MaxPropStatus</ref><sp/>{</highlight></codeline>
|
|
<codeline lineno="194" refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006aa591167a954a8f3d3b33edeffd6419ec0" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006aa591167a954a8f3d3b33edeffd6419ec0" kindref="member">MPS_ASSIGNED</ref><sp/><sp/>=<sp/>1<<0,<sp/></highlight></codeline>
|
|
<codeline lineno="195" refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006aaba40c85f995f384842a23773d9689ae4" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006aaba40c85f995f384842a23773d9689ae4" kindref="member">MPS_REMOVED</ref><sp/><sp/><sp/>=<sp/>1<<1,<sp/></highlight></codeline>
|
|
<codeline lineno="196" refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006aaa8e999c46d2245bddca30fe990d22b4a" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006aaa8e999c46d2245bddca30fe990d22b4a" kindref="member">MPS_NEW_BOUND</ref><sp/>=<sp/>1<<2<sp/><sp/></highlight></codeline>
|
|
<codeline lineno="197"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
|
|
<codeline lineno="198"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="199"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View></highlight></codeline>
|
|
<codeline lineno="200"><highlight class="normal"><sp/><sp/>forceinline<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="201"><highlight class="normal"><sp/><sp/>prop_nary_max(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/><ref refid="classGecode_1_1Propagator" kindref="compound">Propagator</ref>&<sp/>p,</highlight></codeline>
|
|
<codeline lineno="202"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1ViewArray" kindref="compound">ViewArray<View></ref>&<sp/>x,<sp/>View<sp/>y,<sp/><ref refid="group__TaskVarMEPC_1gad24536e327a507a903179b6a5efd2e3d" kindref="member">PropCond</ref><sp/>pc)<sp/>{</highlight></codeline>
|
|
<codeline lineno="203"><highlight class="normal"><sp/><sp/>rerun:</highlight></codeline>
|
|
<codeline lineno="204"><highlight class="normal"><sp/><sp/><sp/><sp/>assert(x.<ref refid="classGecode_1_1ViewArray_1a65940b23e2457e97607475f8bd8f4ac6" kindref="member">size</ref>()<sp/>><sp/>0);</highlight></codeline>
|
|
<codeline lineno="205"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>maxmax<sp/>=<sp/>x[x.<ref refid="classGecode_1_1ViewArray_1a65940b23e2457e97607475f8bd8f4ac6" kindref="member">size</ref>()-1].max();</highlight></codeline>
|
|
<codeline lineno="206"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1a89c8c05302dd9f5ca9b53d0c0d82cf45" kindref="member">FloatNum</ref><sp/>maxmin<sp/>=<sp/>x[x.<ref refid="classGecode_1_1ViewArray_1a65940b23e2457e97607475f8bd8f4ac6" kindref="member">size</ref>()-1].min();</highlight></codeline>
|
|
<codeline lineno="207"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>x.<ref refid="classGecode_1_1ViewArray_1a65940b23e2457e97607475f8bd8f4ac6" kindref="member">size</ref>()-1;<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
|
|
<codeline lineno="208"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>maxmax<sp/>=<sp/><ref refid="group__TaskModelFloatArith_1ga958cb25ae9754d6cc35c7c6e34ebc1e3" kindref="member">std::max</ref>(x[i].max(),maxmax);</highlight></codeline>
|
|
<codeline lineno="209"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>maxmin<sp/>=<sp/><ref refid="group__TaskModelFloatArith_1ga958cb25ae9754d6cc35c7c6e34ebc1e3" kindref="member">std::max</ref>(x[i].min(),maxmin);</highlight></codeline>
|
|
<codeline lineno="210"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="211"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(y.lq(home,maxmax));</highlight></codeline>
|
|
<codeline lineno="212"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(y.gq(home,maxmin));</highlight></codeline>
|
|
<codeline lineno="213"><highlight class="normal"><sp/><sp/><sp/><sp/>maxmin<sp/>=<sp/>y.min();</highlight></codeline>
|
|
<codeline lineno="214"><highlight class="normal"><sp/><sp/><sp/><sp/>maxmax<sp/>=<sp/>y.max();</highlight></codeline>
|
|
<codeline lineno="215"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>status<sp/>=<sp/><ref refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006aa591167a954a8f3d3b33edeffd6419ec0" kindref="member">MPS_ASSIGNED</ref>;</highlight></codeline>
|
|
<codeline lineno="216"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>x.<ref refid="classGecode_1_1ViewArray_1a65940b23e2457e97607475f8bd8f4ac6" kindref="member">size</ref>();<sp/>i--;<sp/>)<sp/>{</highlight></codeline>
|
|
<codeline lineno="217"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="group__TaskVarMEPC_1gafa985ae465bd12df08e29252cdb7519b" kindref="member">ModEvent</ref><sp/>me<sp/>=<sp/>x[i].lq(home,maxmax);</highlight></codeline>
|
|
<codeline lineno="218"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(me<sp/>==<sp/>ME_FLOAT_FAILED)</highlight></codeline>
|
|
<codeline lineno="219"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a839b40c2e7ccebb2e61e92e274833089" kindref="member">ES_FAILED</ref>;</highlight></codeline>
|
|
<codeline lineno="220"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="namespaceGecode_1ab0c2b67fac58a0d289893450d8a9b2bd" kindref="member">me_modified</ref>(me)<sp/>&&<sp/>(x[i].max()<sp/>!=<sp/>maxmax))</highlight></codeline>
|
|
<codeline lineno="221"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>status<sp/>|=<sp/><ref refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006aaa8e999c46d2245bddca30fe990d22b4a" kindref="member">MPS_NEW_BOUND</ref>;</highlight></codeline>
|
|
<codeline lineno="222"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x[i].max()<sp/><<sp/>maxmin)<sp/>{</highlight></codeline>
|
|
<codeline lineno="223"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>x.<ref refid="classGecode_1_1ViewArray_1a9c230669060fb3a42b73915db078f77e" kindref="member">move_lst</ref>(i,home,p,pc);</highlight></codeline>
|
|
<codeline lineno="224"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>status<sp/>|=<sp/><ref refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006aaba40c85f995f384842a23773d9689ae4" kindref="member">MPS_REMOVED</ref>;</highlight></codeline>
|
|
<codeline lineno="225"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!x[i].assigned())</highlight></codeline>
|
|
<codeline lineno="226"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>status<sp/>&=<sp/>~<ref refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006aa591167a954a8f3d3b33edeffd6419ec0" kindref="member">MPS_ASSIGNED</ref>;</highlight></codeline>
|
|
<codeline lineno="227"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="228"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(x.<ref refid="classGecode_1_1ViewArray_1a65940b23e2457e97607475f8bd8f4ac6" kindref="member">size</ref>()<sp/>==<sp/>0)</highlight></codeline>
|
|
<codeline lineno="229"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a839b40c2e7ccebb2e61e92e274833089" kindref="member">ES_FAILED</ref>;</highlight></codeline>
|
|
<codeline lineno="230"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((status<sp/>&<sp/><ref refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006aaba40c85f995f384842a23773d9689ae4" kindref="member">MPS_REMOVED</ref>)<sp/>!=<sp/>0)</highlight></codeline>
|
|
<codeline lineno="231"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">goto</highlight><highlight class="normal"><sp/>rerun;</highlight></codeline>
|
|
<codeline lineno="232"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(((status<sp/>&<sp/><ref refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006aa591167a954a8f3d3b33edeffd6419ec0" kindref="member">MPS_ASSIGNED</ref>)<sp/>!=<sp/>0)<sp/>&&<sp/>y.assigned())</highlight></codeline>
|
|
<codeline lineno="233"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>home.<ref refid="group__TaskActorStatus_1gafc19cbf71ed90a9e0b414b875103f4c7" kindref="member">ES_SUBSUMED</ref>(p);</highlight></codeline>
|
|
<codeline lineno="234"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>((status<sp/>&<sp/><ref refid="namespaceGecode_1_1Float_1_1Arithmetic_1a44b61eb07096839c7a58f171d391006aaa8e999c46d2245bddca30fe990d22b4a" kindref="member">MPS_NEW_BOUND</ref>)<sp/>!=<sp/>0)<sp/>?<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5ac32341b682bca52b8617a8ad004023ef" kindref="member">ES_NOFIX</ref><sp/>:<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a13bb69056fb9293e8df98c0e347ba634" kindref="member">ES_FIX</ref>;</highlight></codeline>
|
|
<codeline lineno="235"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="236"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="237"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>View></highlight></codeline>
|
|
<codeline lineno="238"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="239" refid="classGecode_1_1Float_1_1Arithmetic_1_1NaryMax_1a989f31511dfe8d270c55c52d3261390a" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1NaryMax_1a989f31511dfe8d270c55c52d3261390a" kindref="member">NaryMax<View>::propagate</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a129e41c1d037528010d7b6706495a560" kindref="member">ModEventDelta</ref>&)<sp/>{</highlight></codeline>
|
|
<codeline lineno="240"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>prop_nary_max(home,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">,x,y,PC_FLOAT_BND);</highlight></codeline>
|
|
<codeline lineno="241"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="242"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="243"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="244"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
|
|
<codeline lineno="245"><highlight class="comment"><sp/><sp/><sp/>*<sp/>Bounds<sp/>consistent<sp/>interger<sp/>part<sp/>operator</highlight></codeline>
|
|
<codeline lineno="246"><highlight class="comment"><sp/><sp/><sp/>*</highlight></codeline>
|
|
<codeline lineno="247"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="248"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="249"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B></highlight></codeline>
|
|
<codeline lineno="250"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="251" refid="classGecode_1_1Float_1_1Arithmetic_1_1Channel_1ae25f363867a41161604432ecd167c270" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Channel_1a7dea30ec8e49de58e799d88935028b0e" kindref="member">Channel<A,B>::Channel</ref>(<ref refid="classGecode_1_1Home" kindref="compound">Home</ref><sp/>home,<sp/>A<sp/>x0,<sp/>B<sp/>x1)</highlight></codeline>
|
|
<codeline lineno="252"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1MixBinaryPropagator" kindref="compound">MixBinaryPropagator</ref><A,PC_FLOAT_BND,B,Int::PC_INT_BND>(home,x0,x1)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="253"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="254"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B></highlight></codeline>
|
|
<codeline lineno="255"><highlight class="normal"><sp/><sp/>forceinline</highlight></codeline>
|
|
<codeline lineno="256" refid="classGecode_1_1Float_1_1Arithmetic_1_1Channel_1a7dea30ec8e49de58e799d88935028b0e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Channel_1a7dea30ec8e49de58e799d88935028b0e" kindref="member">Channel<A,B>::Channel</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share,<sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Channel" kindref="compound">Channel<A,B></ref>&<sp/>p)</highlight></codeline>
|
|
<codeline lineno="257"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/><ref refid="classGecode_1_1MixBinaryPropagator" kindref="compound">MixBinaryPropagator</ref><A,PC_FLOAT_BND,B,Int::PC_INT_BND>(home,share,p)<sp/>{}</highlight></codeline>
|
|
<codeline lineno="258"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="259"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B></highlight></codeline>
|
|
<codeline lineno="260"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Actor" kindref="compound">Actor</ref>*</highlight></codeline>
|
|
<codeline lineno="261" refid="classGecode_1_1Float_1_1Arithmetic_1_1Channel_1a482e26c7258b76d5914b93ee9b8d5c2a" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Channel_1a482e26c7258b76d5914b93ee9b8d5c2a" kindref="member">Channel<A,B>::copy</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>share)<sp/>{</highlight></codeline>
|
|
<codeline lineno="262"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Channel" kindref="compound">Channel<A,B></ref>(home,share,*</highlight><highlight class="keyword">this</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="263"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="264"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="265"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B></highlight></codeline>
|
|
<codeline lineno="266"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="267" refid="classGecode_1_1Float_1_1Arithmetic_1_1Channel_1af52521c715105ff8370f37b8ea6d17a4" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Channel_1af52521c715105ff8370f37b8ea6d17a4" kindref="member">Channel<A,B>::post</ref>(<ref refid="classGecode_1_1Home" kindref="compound">Home</ref><sp/>home,<sp/>A<sp/>x0,<sp/>B<sp/>x1)<sp/>{</highlight></codeline>
|
|
<codeline lineno="268"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x0.eq(home,<ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(<ref refid="namespaceGecode_1_1Int_1_1Limits_1a866b451d77425f6d442aa9f114e1424c" kindref="member">Int::Limits::min</ref>,</highlight></codeline>
|
|
<codeline lineno="269"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="namespaceGecode_1_1Int_1_1Limits_1ad2fea399ca2de529a8b294fefe37e177" kindref="member">Int::Limits::max</ref>)));</highlight></codeline>
|
|
<codeline lineno="270"><highlight class="normal"><sp/><sp/><sp/><sp/>(void)<sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>(home)<sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Channel" kindref="compound">Channel<A,B></ref>(home,x0,x1);</highlight></codeline>
|
|
<codeline lineno="271"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a01d6fb1ec70479e8e413d5ecfd63e303" kindref="member">ES_OK</ref>;</highlight></codeline>
|
|
<codeline lineno="272"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="273"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="274"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>A,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>B></highlight></codeline>
|
|
<codeline lineno="275"><highlight class="normal"><sp/><sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5" kindref="member">ExecStatus</ref></highlight></codeline>
|
|
<codeline lineno="276" refid="classGecode_1_1Float_1_1Arithmetic_1_1Channel_1af805514c0d56b0f96f2ff7d4636261fd" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Float_1_1Arithmetic_1_1Channel_1af805514c0d56b0f96f2ff7d4636261fd" kindref="member">Channel<A,B>::propagate</ref>(<ref refid="classGecode_1_1Space" kindref="compound">Space</ref>&<sp/>home,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="namespaceGecode_1a129e41c1d037528010d7b6706495a560" kindref="member">ModEventDelta</ref>&)<sp/>{</highlight></codeline>
|
|
<codeline lineno="277"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x1.gq(home,static_cast<int>(std::ceil(x0.min()))));</highlight></codeline>
|
|
<codeline lineno="278"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x1.lq(home,static_cast<int>(std::floor(x0.max()))));</highlight></codeline>
|
|
<codeline lineno="279"><highlight class="normal"><sp/><sp/><sp/><sp/>GECODE_ME_CHECK(x0.eq(home,<ref refid="classGecode_1_1FloatVal" kindref="compound">FloatVal</ref>(x1.min(),x1.max())));</highlight></codeline>
|
|
<codeline lineno="280"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x0.assigned()<sp/>?<sp/>home.<ref refid="group__TaskActorStatus_1gafc19cbf71ed90a9e0b414b875103f4c7" kindref="member">ES_SUBSUMED</ref>(*</highlight><highlight class="keyword">this</highlight><highlight class="normal">)<sp/>:<sp/><ref refid="namespaceGecode_1ab278aee34126d2f13c5429ee3c4ed3b5a13bb69056fb9293e8df98c0e347ba634" kindref="member">ES_FIX</ref>;</highlight></codeline>
|
|
<codeline lineno="281"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="282"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="283"><highlight class="normal">}}}</highlight></codeline>
|
|
<codeline lineno="284"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="285"><highlight class="normal"></highlight><highlight class="comment">//<sp/>STATISTICS:<sp/>float-prop</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="286"><highlight class="normal"></highlight></codeline>
|
|
</programlisting>
|
|
<location file="/usr/include/gecode/float/arithmetic/min-max-channel.hpp"/>
|
|
</compounddef>
|
|
</doxygen>
|