@Test public void testWithMarginApplyBasecase() throws Exception { float margin = 3; checkOriginalNetworkLimits(); String stateId = "0"; network.getStateManager().cloneState(StateManagerConstants.INITIAL_STATE_ID, stateId); network.getStateManager().setWorkingState(stateId); checkOriginalNetworkLimits(); ConstraintsModifier constraintsModifier = new ConstraintsModifier(network, config); constraintsModifier.looseConstraints(stateId, margin, true); checkModifiedNetworkLimits(margin); network.getStateManager().setWorkingState(StateManagerConstants.INITIAL_STATE_ID); checkModifiedNetworkLimits(margin); network.getStateManager().removeState(stateId); }
public void looseConstraints(String stateId) { looseConstraints(stateId, 0f, false); }
ConstraintsModifier { public void looseConstraints(String stateId) { looseConstraints(stateId, 0f, false); } }
ConstraintsModifier { public void looseConstraints(String stateId) { looseConstraints(stateId, 0f, false); } ConstraintsModifier(Network network);  ConstraintsModifier(Network network, ConstraintsModifierConfig config); }
ConstraintsModifier { public void looseConstraints(String stateId) { looseConstraints(stateId, 0f, false); } ConstraintsModifier(Network network);  ConstraintsModifier(Network network, ConstraintsModifierConfig config); void looseConstraints(String stateId); void looseConstraints(String stateId, float margin); void looseConstraints(String stateId, float margin, boolean applyToBaseCase); void looseConstraints(String stateId, List<LimitViolation> violations); void looseConstraints(String stateId, List<LimitViolation> violations, float margin); void looseConstraints(String stateId, List<LimitViolation> violations, float margin, boolean applyToBaseCase); }
ConstraintsModifier { public void looseConstraints(String stateId) { looseConstraints(stateId, 0f, false); } ConstraintsModifier(Network network);  ConstraintsModifier(Network network, ConstraintsModifierConfig config); void looseConstraints(String stateId); void looseConstraints(String stateId, float margin); void looseConstraints(String stateId, float margin, boolean applyToBaseCase); void looseConstraints(String stateId, List<LimitViolation> violations); void looseConstraints(String stateId, List<LimitViolation> violations, float margin); void looseConstraints(String stateId, List<LimitViolation> violations, float margin, boolean applyToBaseCase);  }