Module Expr Str ImportFrom alias alias alias Import alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore CompareEq NameLoad Num Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore CompareLt NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore CompareGt NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore CompareEq NameLoad Num Assign NameStore UnaryOpInvert NameLoad Assign TupleStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpMult Num Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Num If CompareEq NameLoad Num body Expr Call NameLoad While CompareGt AttributeLoad NameLoad attr Num body If CompareEq NameLoad Num body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Assign NameStore SubscriptLoad Call NameLoad NameLoad NameLoad Index Num Assign NameStore CompareLt NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore CompareGt NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpBitOr NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Num If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore SubscriptLoad NameLoad Index UnaryOpInvert NameLoad Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index UnaryOpInvert NameLoad Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpMult Num Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad BinOpSub SubscriptLoad NameLoad Index NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index UnaryOpInvert NameLoad orelse Break If CompareIs NameLoad NameLoad body Assign NameStore NameLoad AugAssignAdd NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad For NameStore Call NameLoad NameLoad NameLoad body If CompareEq NameLoad Num body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If CompareLt NameLoad NameLoad body Assign NameStore Num If CompareIsNot NameLoad NameLoad body Break Assign NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore CompareEq NameLoad Num Assign NameStore UnaryOpInvert NameLoad Assign TupleStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Assign NameStore SubscriptLoad Call NameLoad NameLoad NameLoad Index Num Assign TupleStore NameStore Call AttributeLoad NameLoad attr CompareLt NameLoad NameLoad Assign TupleStore NameStore Call AttributeLoad NameLoad attr CompareGt NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If CompareGt AttributeLoad NameLoad attr Num body Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr TupleLoad BinOpSub SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad BinOpSub SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad BinOpSub SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignMult NameStore BinOpSub Num NameLoad AugAssignAdd NameStore BinOpMult NameLoad NameLoad If CompareLt NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index NameLoad Num orelse Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index NameLoad Num orelse Assign NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call NameLoad BinOpSub NameLoad NameLoad Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpMult Num Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad If CompareLt NameLoad BinOpMult NameLoad NameLoad body Assign NameStore Num Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Num Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword BinOpAdd NameLoad Num keyword NameLoad keyword NameLoad decorator_list
N/A N/A Bounded-Variable Least-Squares algorithm. __future__ division print_function absolute_import N/A numpy np numpy.linalg norm lstsq scipy.optimize OptimizeResult common print_header_linear print_iteration_linear compute_kkt_optimality N/A N/A g on_bound N/A N/A N/A Compute the maximum violation of KKT conditions. N/A g_kkt N/A g on_bound N/A free_set N/A on_bound 0 N/A N/A g_kkt N/A free_set N/A N/A np abs N/A g N/A free_set N/A N/A N/A np max g_kkt N/A bvls N/A N/A A b x_lsq lb ub tol max_iter verbose N/A N/A N/A N/A m n N/A A shape N/A x N/A N/A x_lsq copy N/A on_bound N/A N/A np zeros n N/A mask N/A x lb N/A N/A x N/A mask N/A lb N/A mask N/A N/A on_bound N/A mask -1 N/A mask N/A x ub N/A N/A x N/A mask N/A ub N/A mask N/A N/A on_bound N/A mask 1 N/A free_set N/A on_bound 0 N/A active_set N/A free_set N/A N/A free_set N/A N/A np where free_set N/A r N/A N/A N/A A dot x b N/A cost N/A 0.5 N/A N/A np dot r r N/A initial_cost cost N/A g N/A N/A N/A A T dot r N/A cost_change None N/A step_norm None N/A iteration 0 N/A N/A verbose 2 N/A N/A N/A print_header_linear N/A N/A N/A free_set size 0 N/A N/A N/A verbose 2 N/A N/A optimality N/A compute_kkt_optimality g on_bound N/A N/A print_iteration_linear iteration cost cost_change step_norm optimality N/A iteration 1 N/A x_free_old N/A N/A N/A x N/A free_set copy N/A A_free N/A A N/A N/A N/A free_set N/A b_free N/A b N/A N/A A dot N/A x active_set N/A z N/A N/A lstsq A_free b_free N/A 0 N/A lbv N/A z N/A lb N/A free_set N/A ubv N/A z N/A ub N/A free_set N/A v N/A lbv ubv N/A N/A N/A np any lbv N/A N/A ind N/A free_set N/A lbv N/A N/A x N/A ind N/A lb N/A ind N/A N/A active_set N/A ind True N/A N/A on_bound N/A ind -1 N/A N/A N/A np any ubv N/A N/A ind N/A free_set N/A ubv N/A N/A x N/A ind N/A ub N/A ind N/A N/A active_set N/A ind True N/A N/A on_bound N/A ind 1 N/A ind N/A free_set N/A N/A v N/A N/A x N/A ind N/A z N/A N/A v N/A r N/A N/A N/A A dot x b N/A cost_new N/A 0.5 N/A N/A np dot r r N/A cost_change N/A cost cost_new N/A cost cost_new N/A g N/A N/A N/A A T dot r N/A step_norm N/A norm N/A N/A x N/A free_set x_free_old N/A N/A N/A np any v N/A N/A free_set N/A free_set N/A N/A v N/A N/A N/A N/A max_iter None N/A N/A max_iter n N/A max_iter iteration N/A termination_status None N/A optimality N/A compute_kkt_optimality g on_bound N/A iteration N/A range iteration max_iter N/A N/A N/A verbose 2 N/A N/A N/A print_iteration_linear iteration cost cost_change step_norm optimality N/A N/A optimality tol N/A N/A termination_status 1 N/A N/A termination_status None N/A N/A N/A move_to_free N/A N/A np argmax N/A g on_bound N/A N/A on_bound N/A move_to_free 0 N/A free_set N/A on_bound 0 N/A active_set N/A free_set N/A N/A free_set N/A N/A np nonzero free_set N/A x_free N/A x N/A free_set N/A x_free_old N/A N/A x_free copy N/A lb_free N/A lb N/A free_set N/A ub_free N/A ub N/A free_set N/A A_free N/A A N/A N/A N/A free_set N/A b_free N/A b N/A N/A A dot N/A x active_set N/A z N/A N/A lstsq A_free b_free N/A 0 N/A N/A lbv N/A N/A np nonzero N/A z lb_free N/A N/A ubv N/A N/A np nonzero N/A z ub_free N/A v N/A N/A np hstack N/A lbv ubv N/A N/A N/A v size 0 N/A N/A alphas N/A N/A N/A np hstack N/A N/A N/A lb_free N/A lbv N/A x_free N/A lbv N/A N/A ub_free N/A ubv N/A x_free N/A ubv N/A N/A z N/A v N/A x_free N/A v N/A i N/A N/A np argmin alphas N/A i_free N/A v N/A i N/A alpha N/A alphas N/A i N/A x_free N/A 1 alpha N/A x_free N/A alpha z N/A N/A i N/A lbv size N/A N/A N/A on_bound N/A N/A free_set N/A i_free -1 N/A N/A N/A on_bound N/A N/A free_set N/A i_free 1 N/A N/A x_free z N/A N/A x N/A free_set x_free N/A step_norm N/A norm N/A x_free x_free_old N/A r N/A N/A N/A A dot x b N/A cost_new N/A 0.5 N/A N/A np dot r r N/A cost_change N/A cost cost_new N/A N/A cost_change N/A tol cost N/A N/A termination_status 2 N/A cost cost_new N/A g N/A N/A N/A A T dot r N/A optimality N/A compute_kkt_optimality g on_bound N/A N/A termination_status None N/A N/A termination_status 0 N/A N/A OptimizeResult x x fun r cost cost optimality optimality active_mask on_bound nit N/A iteration 1 status termination_status initial_cost initial_cost N/A