Changeset c979dc3 in tol
- Timestamp:
- Sep 30, 2009, 3:24:48 PM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- a561555
- Parents:
- 70d5bcf
- File:
-
- 1 edited
-
tol/stdlib/math/optim/LP/polytope.tol (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/math/optim/LP/polytope.tol
r70d5bcf rc979dc3 37 37 Region region = region_; 38 38 VMatrix x = x_; 39 Real drop = region::r*region::n*1.E-15; 39 40 Real isFinite = (VMatSum(IsFinite(x))==VRows(x)); 40 41 VMatrix g = region::evalBorderDistance(x); 41 Real match = Point::EnsureKnown(1+VMatMax(g)-1<=0, 0); 42 Real match = Point::EnsureKnown(VMatMax(g)<= 43 drop, 0); 42 44 VMatrix G = GT(g, region::zero); 43 45 VMatrix h = Max(region::zero,g); 44 Real f = Point::EnsureKnown(VMatSum(RPow(h,2)), 1/0) 46 Real f = 47 { 48 Real aux = Point::EnsureKnown(VMatSum(RPow(h,2)), 1/0); 49 Max(aux,drop^2) 50 } 45 51 ]]; 46 52 new
Note: See TracChangeset
for help on using the changeset viewer.
