Skip to content

Commit 7b46a26

Browse files
committed
fixed braces error
1 parent 1962436 commit 7b46a26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/num_methods/simulated_annealing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class state{
136136
vector<pair<int,int>> points;
137137

138138
state(){
139-
points = { {0,0},{2,2},{0,2},{2,0},{0,1},{1,2},{2,1},{1,0} };
139+
{% raw %}points = {{0,0},{2,2},{0,2},{2,0},{0,1},{1,2},{2,1},{1,0}};{% endraw %}
140140
}
141141
state(state& s){
142142
points = s.points;
@@ -181,7 +181,7 @@ int main(){
181181

182182
- Add a time based exit condition to the while loop to prevent TLE
183183
- The Probability acceptance function given above, prefers accepting states which are lower in energy because of the $E_{next} - E$ factor in the numerator of the exponent. You can simply remove this factor, to make the PAF independent of the difference in energies.
184-
- The effect of the difference in energies, $E_{next} - E$ on the PAF can be increased/decreased by increasing/decreasing the base of the exponent as shown below:
184+
- The effect of the difference in energies, $E_{next} - E$, on the PAF can be increased/decreased by increasing/decreasing the base of the exponent as shown below:
185185
```cpp
186186
bool P(double E,double E_next,double T){
187187
double e = 2; // set e to any real number greater than 1

0 commit comments

Comments
 (0)