MCPcopy Create free account
hub / github.com/LiangliangNan/PolyFit / create_n_variables

Method create_n_variables

code/math/linear_program.cpp:294–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292
293
294std::vector<Variable*> LinearProgram::create_n_variables(std::size_t n) {
295 std::vector<Variable*> variables;
296 for (std::size_t i = 0; i < n; ++i) {
297 Variable* v = create_variable();
298 variables.push_back(v);
299 }
300 return variables;
301}
302
303
304LinearConstraint* LinearProgram::create_constraint(

Callers 2

optimizeMethod · 0.80
re_orientMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected