Searched refs:AddConstraint (Results 1 - 16 of 16) sorted by relevance

/haiku/src/tests/libs/linprog/
H A DProgram.cpp32 Constraint* c1 = ls.AddConstraint(1.0, x1, OperatorType(kLE), 108);
33 Constraint* c2 = ls.AddConstraint(1.0, x2, OperatorType(kGE), 113);
42 c2 = ls.AddConstraint(1.0, x2, OperatorType(kGE), 113);
61 Constraint* c1 = ls.AddConstraint(1, x1, kEQ, 0);
62 Constraint* c2 = ls.AddConstraint(1, x1, -1, x2, kLE, 0);
63 Constraint* c3 = ls.AddConstraint(1, x2, -1, x3, kLE, 0);
64 Constraint* c4 = ls.AddConstraint(1, x3, -1, x1, kEQ, 20);
66 Constraint* c5 = ls.AddConstraint(1, x2, -1, x1, kEQ, 10, 5, 5);
67 Constraint* c6 = ls.AddConstraint(1, x3, -1, x2, kEQ, 5, 5, 5);
93 Constraint* c1 = ls.AddConstraint(
[all...]
/haiku/src/libs/linprog/
H A DVariable.cpp200 return fLS->AddConstraint(1.0, this, -1.0, var, kEQ, 0.0);
216 return fLS->AddConstraint(1.0, this, -1.0, var, kLE, 0.0);
232 return fLS->AddConstraint(-1.0, var, 1.0, this, kGE, 0.0);
242 return fLS->AddConstraint(1.0, this, -1.0, var, kEQ, 0.0,
253 return fLS->AddConstraint(1.0, this, -1.0, var, kLE, 0.0, penaltyNeg,
264 return fLS->AddConstraint(-1.0, var, 1.0, this, kGE, 0.0, penaltyNeg,
H A DLinearSpec.cpp43 SolverInterface::AddConstraint(Constraint* constraint, bool notifyListener) function in class:SolverInterface
45 return fLinearSpec->AddConstraint(constraint, notifyListener);
245 LinearSpec::AddConstraint(Constraint* constraint) function in class:LinearSpec
247 return AddConstraint(constraint, true);
259 LinearSpec::AddConstraint(Constraint* constraint, bool notifyListener) function in class:LinearSpec
396 LinearSpec::AddConstraint(SummandList* summands, OperatorType op, function in class:LinearSpec
414 LinearSpec::AddConstraint(double coeff1, Variable* var1, function in class:LinearSpec
440 LinearSpec::AddConstraint(double coeff1, Variable* var1, function in class:LinearSpec
470 LinearSpec::AddConstraint(double coeff1, Variable* var1, function in class:LinearSpec
503 LinearSpec::AddConstraint(doubl function in class:LinearSpec
[all...]
H A DActiveSetSolver.cpp308 return spec->AddConstraint(1, var, kEQ, 0, 5, 5);
316 return spec->AddConstraint(1, var, kEQ, kHugeValue, 5, 5);
417 Constraint* helperConst = fLinearSpec->AddConstraint(1, variable,
562 constraintGE = fLinearSpec->AddConstraint(1, variable, kGE, 0);
570 constraintLE = fLinearSpec->AddConstraint(1, variable, kLE, 20000);
684 if (AddConstraint(constraint, false) == false)
/haiku/headers/libs/linprog/
H A DLinearSpec.h62 bool AddConstraint(Constraint* constraint,
102 bool AddConstraint(Constraint* constraint);
106 Constraint* AddConstraint(SummandList* summands,
110 Constraint* AddConstraint(double coeff1, Variable* var1,
114 Constraint* AddConstraint(double coeff1, Variable* var1,
119 Constraint* AddConstraint(double coeff1, Variable* var1,
125 Constraint* AddConstraint(double coeff1, Variable* var1,
163 bool AddConstraint(Constraint* constraint,
/haiku/src/kits/interface/layouter/
H A DLayoutOptimizer.h26 bool AddConstraint(int32 left, int32 right,
H A DLayoutOptimizer.cpp587 // AddConstraint
594 LayoutOptimizer::AddConstraint(int32 left, int32 right, double value, function in class:LayoutOptimizer
621 if (!AddConstraint(constraint->left, constraint->right,
646 AddConstraint(), the additional constraint \sum_{i=0}^{n-1} x_i = size,
669 if (!AddConstraint(-1, fVariableCount - 1, size, true))
H A DComplexLayouter.cpp489 success = fOptimizer->AddConstraint(constraint->start - 1,
495 success |= fOptimizer->AddConstraint(
500 success |= fOptimizer->AddConstraint(constraint->end,
/haiku/src/libs/alm/
H A DArea.cpp228 fContentAspectRatioC = fLS->AddConstraint(-1.0, fLeft, 1.0, fRight,
424 return fLS->AddConstraint(-1.0, fLeft, 1.0, fRight, factor, area->Left(),
439 return fLS->AddConstraint(-1.0, fTop, 1.0, fBottom, factor, area->Top(),
550 fMinContentWidth = ls->AddConstraint(-1.0, fLeft, 1.0, fRight, kGE, 0);
551 fMinContentHeight = ls->AddConstraint(-1.0, fTop, 1.0, fBottom, kGE, 0);
636 fMaxContentHeight = fLS->AddConstraint(-1.0, fTop, 1.0, fBottom,
654 fMaxContentWidth = fLS->AddConstraint(-1.0, fLeft, 1.0, fRight, kLE,
H A DRowColumnManager.cpp195 row->fPrefSizeConstraint = fLinearSpec->AddConstraint(1,
217 column->fPrefSizeConstraint = fLinearSpec->AddConstraint(1,
H A DALMLayout.cpp496 BALMLayout::AddConstraint(Constraint* constraint) function in class:BALMLayout
499 return Solver()->AddConstraint(constraint);
514 BALMLayout::AddConstraint(double coeff1, Variable* var1, OperatorType op, function in class:BALMLayout
517 Constraint* constraint = Solver()->AddConstraint(coeff1, var1, op,
525 BALMLayout::AddConstraint(double coeff1, Variable* var1, double coeff2, function in class:BALMLayout
529 Constraint* constraint = Solver()->AddConstraint(coeff1, var1, coeff2, var2,
536 BALMLayout::AddConstraint(double coeff1, Variable* var1, double coeff2, function in class:BALMLayout
540 Constraint* constraint = Solver()->AddConstraint(coeff1, var1, coeff2, var2,
548 BALMLayout::AddConstraint(double coeff1, Variable* var1, double coeff2, function in class:BALMLayout
553 Constraint* constraint = Solver()->AddConstraint(coeff
[all...]
H A DSharedSolver.cpp419 if (fLinearSpec.AddConstraint(summandList, (OperatorType)op, rightSide,
/haiku/headers/libs/alm/
H A DALMLayout.h70 bool AddConstraint(Constraint* constraint);
74 Constraint* AddConstraint(double coeff1, Variable* var1,
78 Constraint* AddConstraint(double coeff1, Variable* var1,
83 Constraint* AddConstraint(double coeff1, Variable* var1,
89 Constraint* AddConstraint(double coeff1, Variable* var1,
/haiku/src/tests/libs/alm/
H A DViews.cpp84 layout->Solver()->AddConstraint(2, layout->TopOf(menu1), -1,
H A DFriendLayout.cpp72 fLayout2->Solver()->AddConstraint(-1.0f, layout1->Left(), 1.0f, xTabs[0],
/haiku/src/servers/app/stackandtile/
H A DSATGroup.cpp78 fMinWidthConstraint = linearSpec->AddConstraint(1.0, RightVar(), -1.0,
80 fMinHeightConstraint = linearSpec->AddConstraint(1.0, BottomVar(), -1.0,
83 fMaxWidthConstraint = linearSpec->AddConstraint(1.0, RightVar(), -1.0,
85 fMaxHeightConstraint = linearSpec->AddConstraint(1.0, BottomVar(), -1.0,
89 fWidthConstraint = linearSpec->AddConstraint(1.0, RightVar(), -1.0,
92 fHeightConstraint = linearSpec->AddConstraint(-1.0, TopVar(), 1.0,
121 Constraint* leftConstraint = linearSpec->AddConstraint(1.0, LeftVar(),
123 Constraint* topConstraint = linearSpec->AddConstraint(1.0, TopVar(), kEQ,

Completed in 77 milliseconds