CGAL::make_quadratic_program_from_iterators

#include <CGAL/QP_models.h>

This template function creates an instance of Quadratic_program_from_iterators<A_it, B_it, R_it, FL_it, L_it, FU_it, U_it, D_it, C_it> from given iterators. This function can be useful if the types of these iterators are too complicated (or of too little interest for you) to write them down explicitly.

template < A_it, B_it, R_it, FL_it, L_it, FU_it, U_it, D_it, C_it >
Quadratic_program_from_iterators<A_it, B_it, R_it, FL_it, L_it, FU_it, U_it, D_it, C_it>
make_quadratic_program_from_iterators ( int n,
int m,
A_it a,
B_it b,
R_it r,
FL_it fl,
L_it l,
FU_it fu,
U_it u,
D_it d,
C_it c,
std::iterator_traits<C_it>::value_type c0 = std::iterator_traits<C_it>::value_type(0))
returns an instance of Quadratic_program_from_iterators<A_it, B_it, R_it, FL_it, L_it, FU_it, U_it, D_it, C_it>, constructed from the given iterators.

Example

The following example demonstrates the typical usage of makers with the simpler function make_nonnegative_linear_program_from_iterators.

QP_solver/solve_convex_hull_containment_lp2.h
QP_solver/convex_hull_containment2.cpp

See Also

Quadratic_program_from_iterators<A_it, B_it, R_it, FL_it, L_it, FU_it, U_it, D_it, C_it>