Equation established condition as shown in figure, want to ask a code to solve this equation and equation of sample conditions are as follows, please, bosses,
A=[37.8621049415179, 18.0223073116109, 67.7963323479758
44.3257623658989, 13.6837473820214, 99.4198235771591
37.3123018577995, 6.72216595594122, 91.1103612722458
46.6479353678082, 26.3797869619709, 89.4350413852602
37.2176451846401, 22.4804742270502, 81.8669446258369
54.7860579433870, 8.85691208612306, 78.0112543007224
45.0701056677502, 8.56411078877474, 74.8797371388033
42.0348831428025, 23.0427212617366, 88.4033889366021
40.1794341805992, 12.3021760577289, 92.0788138306838
49.7785804581136, 13.9483849983227, 83.6883569906216
46.2737437255765, 22.4592101927702, 68.2486309282444
45.1071690976149, 16.8746839856509, 87.7607027748431
51.6290562287699, 26.2384725753462, 83.8025077799438
48.2684301809024, 18.2500117036197, 69.3220158431797
42.3231373984491, 10.7862603732049, 93.7145664812193
37.6348735710808, 15.3710116000817, 73.0036267474269
53.0334049090673, 8.03285853601843, 87.2383943690550
43.3910501526603, 11.1341127223806, 78.3051789504543
50.5235488923028, 25.2502652070204, 96.9601994585799
53.5451957866413, 11.9471332684403, 91.3720466580286]
B=[40.4098711869892, 7.60501281411260, 73.2572594464062
51.6496729318383, 5.81278627366154, 83.1527537749921
52.7862025329460, 13.7506968978669, 77.2287352762562
51.6890527804622, 12.5810092792059, 73.3974238133832
42.6223761015915, 15.2198768322516, 82.4538438742795
57.1466547674859, 16.6147169902295, 79.4287416645921
52.8806168241072, 15.7646777926463, 81.6339927361171
40.3690178409904, 14.9754565308726, 81.4272647386899
57.2102250375848, 18.5425794809684, 82.2118927662877
49.7370249206914, 5.98044209626571, 80.6274420413267
45.2510102745590, 5.64621445543640, 77.9973829330068
60.9296854596679, 13.3755282855268, 80.7057159974170
60.7110625921924, 12.0944788853493, 75.5366417153935
57.2518879831913, 17.2242150756718, 71.2604838153771
40.0614243071440, 15.0300223628947, 83.4060539616881
43.3242008006003, 16.3386582306269, 70.9446820982538
51.4623407806654, 19.6369533531041, 83.1509866147980
58.0391583678457, 1.90260982061016, 74.8158248080726
64.2284827529718, 15.6756870590786, 82.0351544384717
38.2910946202096, 3.83394281765484, 78.4202916432967]
A=p (n) * a (n)
B=q (m) * b (m, :)
The sum (p)=1
The sum (q)=1
Jl=a - b
For the minimum value of jl