Professional Documents
Culture Documents
(XLS SVY 20) SolvingNetworkAdjustmentWithSolver R1
(XLS SVY 20) SolvingNetworkAdjustmentWithSolver R1
By: zainul_ulum
A. BACKGROUND
Included with standard Excel is an add-in, called Solver, which is tool for optimization and solving equations. The
Standard Solver was developed by Frontline System; Inc. Frontline System also has developed several more
powerful solver packages for Excel. One of these, called Premium Solver which is not included in standard excel.
To check or to activate Standard Solver add-In on Excel 2007, follow these steps:
Once the Solver Add-In is activated or installed, it is ready for optimization and solving equation.
In this article, Solver Add-in is implemented for optimizing or adjusting on survey measurements as an alternative
method instead of least square adjustment using matrices.
Basically, least square adjustment is a method of how to analyze and adjust survey measurements in order to
obtain minimum corrections on survey measurements. Since the corrections could result in minus (negative) or
plus (positive), they have to be squared to obtain positive value. It can be concluded that the good observation will
have a minimum sum of squared corrections. If V1, V2, V3, V4,….,Vn are identified as correction for observation
number 1, 2, 3, 4, …,n, then the criterion for least square is as follow:
In which W1, W2, W3, W4,….Wn are the weight of the corresponding observations.
Three methods of least square have been applied on survey measurement:
All methods require advanced knowledge on matrices operation such as inverse, transpose & derivative and
calculus such as linearization and derivatives.
The condition method or adjustment of observations only (method #1) is implemented in Solver Model. With this
Solver Add-In, there is no requirement of knowledge for matrices, inverse matrices, derivative and linearization.
Basic steps to perform adjustment with Solver Add-In according to least square method #1 are:
𝑟 =𝑛−𝑢
After conditions equations are modeled, the constraints can be identified. The constraints from example above
are 180 and 0
Solver model of measurements on three inner angles on triangle S1, S2 and S3 with no weight:
Redundancy (r=n-u)=1
S1+V1+S2+V2+S3+V3=180
Solver add-in will calculate values on range [C2:C4] iteratively until minimum value on cell [D5] is obtained.
Solver parameters can be set by activating the solver program with the following steps:
Conditional equations can be written clearer by naming cells (called range name) rather than using cell reference.
For example, formula/equation in cell F48 is more comprehensive expressed by =La_1-La_3+La_2 instead of
=G37-G39+G38. Individual cell on G37:G42 can be named according to list on H37:H42 with the following:
3. Solver Parameters
• Select [Data] ribbon
• In the group of [Analysis], click [Solver]
• Set parameters as shown below
• Click [Solve]
• “Solver found a solution” means all constraints and conditions are correct.
• click [OK]
Solver model after optimization:
4. Statistical Testing
After optimization, sample variance (s2) can be obtained from target cell (F44) with the equation s2 = sum(V2W)/(n-
u) = F44/3. Statically, the value of sample variance (s2) can be tested with Chi-Square distribution using 95%
Confidence Interval or 5% significant level.
(𝑛−𝑢)𝑠 2 𝑠𝑢𝑚(𝑉 2 𝑊)
𝜒 2 𝑐𝑎𝑙𝑐𝑢𝑙𝑎𝑡𝑒𝑑 = = if population variance (σ2) =1, 𝜒 2 𝑐𝑎𝑙𝑐𝑢𝑙𝑎𝑡𝑒𝑑 = 𝑠𝑢𝑚(𝑉 2 𝑊)
𝜎2 𝜎2
Optimization result:
4. Statistical Testing
3. Solver Parameters
Optimization result:
4. Statistical Testing
Traverse surveying observes/collects two types of observation; they are horizontal angle and distance observations
thereby traverse surveying obtains 2 (two) metric units: “decimal degree” for horizontal angle and “meter” for
distance. Considering that optimization process (process to minimize corrections) involves two different units, the
ρ number is required to convert seconds to radians on standard deviation of horizontal angles. The ρ calculated
from =2*PI()/(360*60*60).
As depicted on sample of traverse net, the net can be divided into 2 (two) loops named as Loop#1 and Loop#2.
Loop#1 follows on stations BM.1, BM.2 POL.1, POL.2, BM.5 and BM.6 while for Loop#2 follows BM.1, BM.2, POL.3,
POL.4, POL.5, BM.5 and BM.6.
Solver add-in will optimize or adjust Loop#1 and Loop#2 in one process. Coordinates on Loop#1 are not derived
from Loop#2 or Loop#2 is derived conversely from Loop#1.
CELL FORMULA REMARK
L40 =IF(I40="A",K40*$C$60,K40) Standard deviation is multiplied by $C$60 (ρ) for Angle
Observation
M40 =1/(L40^2) Copy formula on L40:M40 down to L54:M57
O40 =N40^2*M40
P40 =IF(I40="A",N40/$C$60,N40) Correction is divided by $C$60 (ρ) for angle
observations. Unit for angle correction is second and for
distance is meter
Q40 =J40+IF(I40="A",P40/3600,P40) Adjusted observations.. Unit for adjusted observations
is degree and for distance is meter.
R40 =IF(I40="A", Format angle display as dd° mm' ss.00"
TEXT(Q40/24,"[h]° mm\' ss.00\"""),Q40) Copy formula on O40:R40 down to O57:R57
O58 =SUM(O40:O57) Set target to minimum
CELL FORMULA REMARK
Q70 =DEGREES(ATAN2((P71-P69),(O71- Calculate azimuth from BM.1 to BM.2
O69)))+IF(ATAN2((P71-P69),(O71-O69))<0,360)
I70 =Q70
I72 =I70+G71-180+IF(I70+G71-180<0,360,IF(I70+G71- Calculate azimuth base on previous azimuth
180>360,-360)) and measured horizontal angle
Copy formula I72 to I74, I76 and I78
J72 =$H72*SIN(RADIANS($I72))
K72 =$H72*COS(RADIANS($I72)) Copy formula J72:K72 to J74:K74 and
J76:K76
L71 =O71
M71 =P71
L73 =L71+J72
M73 =M71+K72 Copy formula L73:M73 to L75:M75 and
L77:M77
The same method is applied on Loop#1
3. Solver Parameters
Optimization result:
4. Statistical Testing