codac 1.5.6
Loading...
Searching...
No Matches
codac_CtcSegment.h
1//============================================================================
2// P Y I B E X
3// Author : Benoit Desrochers, Gilles Chabert
4// Copyright : Benoit Desrochers
5// License : See the LICENSE file
6// Created : Mar 24, 2014
7// Last Update : Jun 29, 2017
8//============================================================================
9
10#ifndef __IBEX_CTC_SEGMENT_H__
11#define __IBEX_CTC_SEGMENT_H__
12
13#include "ibex_IntervalVector.h"
14#include "ibex_NumConstraint.h"
15#include "ibex_CtcFwdBwd.h"
16
17
18namespace codac {
19
20
21using ibex::Interval;
22using ibex::IntervalVector;
23using ibex::Ctc;
24using ibex::NumConstraint;
25using ibex::CtcFwdBwd;
26
32class CtcSegment : public Ctc {
33
34public:
48 CtcSegment(double ax, double ay, double bx, double by);
49
60
61 CtcSegment(const CtcSegment& ctc);
62
67 virtual void contract(IntervalVector& box);
68
73
74protected:
77 IntervalVector X_with_params;
78
81 NumConstraint *ncf, *ncg;
82
84 CtcFwdBwd *ctc_f, *ctc_g;
85
86private:
91 void init();
92};
93
94} // end namespace
95
96#endif // __IBEX_CTC_SEGMENT_H__
Minimal contractor for a segment.
Definition codac_CtcSegment.h:32
CtcSegment(double ax, double ay, double bx, double by)
create the contractor for a fixed segment.
IntervalVector X_with_params
Definition codac_CtcSegment.h:77
CtcFwdBwd * ctc_f
Definition codac_CtcSegment.h:84
virtual void contract(IntervalVector &box)
Contract a box.
~CtcSegment()
Delete this.
CtcSegment()
create the contractor for "x in a segment [a,b]".
NumConstraint * ncf
Definition codac_CtcSegment.h:81
FixPoint of a separator The fixpoint of a separator is computed by calling the "::"separate function ...
Definition codac_capd_helpers.h:9