Skip to content

Commit 683935b

Browse files
committed
chore: fix math formula.
1 parent f6f12e3 commit 683935b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This engineering practice is similar to <strong><em>Object-Oriented Design</em><
4848
Building upon the concept of arithmetic intermediate expressions, ospf can also encapsulate non-arithmetic expressions such as logical operations into intermediate expressions.
4949

5050
$$
51-
FuncSymbol = \bigvee_{i} x_{i} = Or(x_{1}, \, x_{2}, \, .. \, , \, x_{i})
51+
FuncSymbol = \bigvee_{i} x_{i} = Or(x_{1}, \\, x_{2}, \\, .. \\, , \\, x_{i})
5252
$$
5353

5454
$$
@@ -69,7 +69,7 @@ $$
6969
$$
7070

7171
$$
72-
y \leq \sum_{i} x_{i}, \; \forall i
72+
y \leq \sum_{i} x_{i}, \\; \forall i
7373
$$
7474

7575
$$

README_ch.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ospf 会在将模型翻译到具体求解器的接口时,自动将把每个算
4747
基于算术中间值的思想,ospf 同样可以把类似逻辑运算表达式等非算术表达式封装到中间值中。
4848

4949
$$
50-
FuncSymbol = \bigvee_{i} x_{i} = Or(x_{1}, \, x_{2}, \, .. \, , \, x_{i})
50+
FuncSymbol = \bigvee_{i} x_{i} = Or(x_{1}, \\, x_{2}, \\, .. \\, , \\, x_{i})
5151
$$
5252

5353
$$
@@ -68,7 +68,7 @@ $$
6868
$$
6969

7070
$$
71-
y \leq \sum_{i} x_{i}, \; \forall i
71+
y \leq \sum_{i} x_{i}, \\; \forall i
7272
$$
7373

7474
$$

examples/ospf-kotlin-example/src/main/fuookami/ospf/kotlin/example/core_demo/doc.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ $$
105105
##### (2) 企业是否被指派
106106

107107
$$
108-
Assignment^{Company}_{c} = \sum_{p \in P}x_{cp}, \; \forall c \in C
108+
Assignment^{Company}_{c} = \sum_{p \in P}x_{cp}, \\; \forall c \in C
109109
$$
110110

111111
##### (3) 产品是否被指派
112112

113113
$$
114-
Assignment^{Product}_{p} = \sum_{p \in P}x_{cp}, \; \forall p \in P
114+
Assignment^{Product}_{p} = \sum_{p \in P}x_{cp}, \\; \forall p \in P
115115
$$
116116

117117
#### 3) 目标函数
@@ -127,13 +127,13 @@ $$
127127
##### (1) 每个企业最多生产一个产品
128128

129129
$$
130-
s.t. \quad Assignment^{Company}_{c} \leq 1, \; \forall c \in C
130+
s.t. \quad Assignment^{Company}_{c} \leq 1, \\; \forall c \in C
131131
$$
132132

133133
##### (2) 每个产品必须要被生产
134134

135135
$$
136-
s.t. \quad Assignment^{Product}_{p} = 1, \; \forall p \in P
136+
s.t. \quad Assignment^{Product}_{p} = 1, \\; \forall p \in P
137137
$$
138138

139139
### 3. 期望结果

0 commit comments

Comments
 (0)